-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
58 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,68 @@ | ||
import Link from 'next/link'; | ||
import { useRouter } from 'next/router'; | ||
import React from 'react'; | ||
import { FormattedMessage, useIntl } from 'react-intl'; | ||
|
||
import AndOnboarding from '~components/templates/andOnboarding'; | ||
import root from '~src/lib/routes'; | ||
import useLanguageRoute from '~src/lib/useLanguageRoute'; | ||
|
||
import Button from './button'; | ||
import SocialLogin from './socialLogin'; | ||
import styles from './socialLogin.module.scss'; | ||
|
||
export default function Login(): JSX.Element { | ||
//const languageRoute = useLanguageRoute(); | ||
//const router = useRouter(); | ||
const languageRoute = useLanguageRoute(); | ||
const intl = useIntl(); | ||
const router = useRouter(); | ||
return ( | ||
<AndOnboarding> | ||
<SocialLogin /> | ||
<div className={styles.buttonCol}> | ||
<p className={styles.centerText}> | ||
{intl.formatMessage({ | ||
id: 'socialLogin__loginOr', | ||
defaultMessage: 'Or', | ||
})} | ||
</p> | ||
<Button | ||
href={root.lang(languageRoute).account.register.get({ | ||
params: { | ||
back: router.asPath, | ||
}, | ||
})} | ||
className={styles.centerText} | ||
type="secondary" | ||
text={ | ||
<FormattedMessage | ||
id="molecule-button-SignUp" | ||
defaultMessage="Sign Up with Email" | ||
/> | ||
} | ||
/> | ||
|
||
<p className={styles.centerText}> | ||
{intl.formatMessage({ | ||
id: 'regularLogin__login', | ||
defaultMessage: 'Already have an account? ', | ||
})} | ||
<Link | ||
href={root.lang(languageRoute).account.login.get({ | ||
params: { | ||
back: router.asPath, | ||
}, | ||
})} | ||
legacyBehavior | ||
> | ||
<a> | ||
{intl.formatMessage({ | ||
id: 'regularLogin__loginTxt', | ||
defaultMessage: 'Log In', | ||
})} | ||
</a> | ||
</Link> | ||
</p> | ||
</div> | ||
</AndOnboarding> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters