remove showSubtitle option on registration page

pull/691/head
Audric Ackermann 5 years ago
parent 2cc7f3ed20
commit cca4b51c8f

@ -2356,10 +2356,6 @@
"beginYourSession": { "beginYourSession": {
"message": "Begin<br />your<br />Session." "message": "Begin<br />your<br />Session."
}, },
"ensuringPeaceOfMind...": {
"message":
" Ensuring <span class=\"redacted\">peace of</span> mind, one <span class=\"redacted\">session</span> at a time."
},
"welcomeToYourSession": { "welcomeToYourSession": {
"message": "Welcome to your Session!" "message": "Welcome to your Session!"
}, },

@ -24,24 +24,6 @@
font-weight: 700; font-weight: 700;
line-height: 120px; line-height: 120px;
} }
.subtitle {
font-size: 18px;
font-weight: 700;
.redacted {
background: $session-color-white;
white-space: nowrap;
transition: background-color $session-transition-duration ease;
border-radius: 100px;
padding-left: 7px;
padding-right: 7px;
&:hover {
background-color: $session-color-black;
}
}
}
} }
} }

@ -2,28 +2,10 @@ import React from 'react';
import { SessionHtmlRenderer } from './SessionHTMLRenderer'; import { SessionHtmlRenderer } from './SessionHTMLRenderer';
interface Props { export const AccentText: React.FC = () => (
showSubtitle?: boolean;
}
export class AccentText extends React.PureComponent<Props> {
constructor(props: any) {
super(props);
}
public render() {
const { showSubtitle } = this.props;
return (
<div className="session-content-accent-text"> <div className="session-content-accent-text">
<div className="session-content-accent-text title"> <div className="session-content-accent-text title">
<SessionHtmlRenderer html={window.i18n('beginYourSession')} /> <SessionHtmlRenderer html={window.i18n('beginYourSession')} />
</div> </div>
{showSubtitle && (
<div className="session-content-accent-text subtitle">
<SessionHtmlRenderer html={window.i18n('ensuringPeaceOfMind...')} />
</div>
)}
</div> </div>
); );
}
}

@ -3,28 +3,14 @@ import { AccentText } from './AccentText';
import { RegistrationTabs } from './RegistrationTabs'; import { RegistrationTabs } from './RegistrationTabs';
interface Props { export const SessionRegistrationView: React.FC = () => (
showSubtitle: boolean;
}
export class SessionRegistrationView extends React.Component<Props> {
constructor(props: Props) {
super(props);
}
public render() {
const { showSubtitle } = this.props;
return (
<div className="session-content"> <div className="session-content">
<div id="error" className="collapse" /> <div id="error" className="collapse" />
<div className="session-content-accent"> <div className="session-content-accent">
<AccentText showSubtitle={showSubtitle} /> <AccentText />
</div> </div>
<div className="session-content-registration"> <div className="session-content-registration">
<RegistrationTabs /> <RegistrationTabs />
</div> </div>
</div> </div>
); );
}
}

Loading…
Cancel
Save