Skip to content

Commit

Permalink
feat(login-form): implement referral line for both builds
Browse files Browse the repository at this point in the history
- shift referral line to below login header
- style referral line to keep login header as main focus
- implement referral line for both edu and for builds
  • Loading branch information
orbitalsqwib committed May 4, 2021
1 parent 490501a commit a345b17
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
3 changes: 3 additions & 0 deletions public/locales/edu/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"shortUrlPrefix": "for.edu.sg/",
"appTitle": "for.edu.sg",
"officerType": "education",
"referralEmailDomain": "gov.sg",
"referralOfficerPhrase": "Public officers",
"referralLink": "go.gov.sg",
"appCatchphrase": {
"styled": "Trusted short links from <strong><i>education institutions</i></strong>",
"noStyle": "Trusted short links from education institutions"
Expand Down
3 changes: 3 additions & 0 deletions public/locales/gov/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"shortUrlPrefix": "go.gov.sg/",
"appTitle": "Go.gov.sg",
"officerType": "public",
"referralEmailDomain": "edu.sg",
"referralOfficerPhrase": "Staff from selected schools",
"referralLink": "for.edu.sg",
"appCatchphrase": {
"styled": "Trusted short links from <strong><i>public officers</i></strong>",
"noStyle": "Trusted short links from public officers"
Expand Down
23 changes: 19 additions & 4 deletions src/client/login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ const useStyles = makeStyles((theme) =>
},
loginHeader: {
marginTop: theme.spacing(1),
},
loginReferral: {
fontSize: '0.85rem',
marginBottom: theme.spacing(4),
},
textInputGroup: {
Expand Down Expand Up @@ -234,10 +237,22 @@ const LoginPage: FunctionComponent<LoginPageProps> = ({
Only available for use by{' '}
{i18next.t('general.officerType')} officers with an email
from <strong>{i18next.t('general.emailDomain')}</strong>.
Staff from selected schools can use their{' '}
<strong>edu.sg</strong> emails at{' '}
<Link href="https://for.edu.sg">for.edu.sg</Link> to
shorten links instead.
</Typography>
<Typography
className={classes.loginReferral}
variant="body1"
>
{i18next.t('general.referralOfficerPhrase')} can use their{' '}
<strong>
{i18next.t('general.referralEmailDomain')}
</strong>{' '}
emails at{' '}
<Link
href={`https://${i18next.t('general.referralLink')}`}
>
{i18next.t('general.referralLink')}
</Link>{' '}
to shorten links instead.
</Typography>
</span>
<span className={classes.textInputGroup}>
Expand Down

0 comments on commit a345b17

Please sign in to comment.