mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
style(ui): adjust signin and register switch link pos
adjust signin and register switch link pos
This commit is contained in:
parent
4c384a7715
commit
73a03a4707
3 changed files with 10 additions and 12 deletions
|
@ -9,6 +9,7 @@
|
|||
.createAccount {
|
||||
margin-top: _.unit(2);
|
||||
text-align: center;
|
||||
margin-bottom: _.unit(4);
|
||||
}
|
||||
|
||||
.placeHolder {
|
||||
|
|
|
@ -25,6 +25,14 @@ const Register = () => {
|
|||
<IdentifierRegisterForm signUpMethods={signUpMethods} className={styles.main} />
|
||||
)}
|
||||
{signUpMethods.length === 0 && socialConnectors.length > 0 && <SocialSignIn />}
|
||||
{
|
||||
// SignIn footer
|
||||
signInMode === SignInMode.SignInAndRegister && signInMethods.length > 0 && (
|
||||
<div className={styles.createAccount}>
|
||||
{t('description.have_account')} <TextLink replace to="/sign-in" text="action.sign_in" />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
{
|
||||
// Social sign-in methods
|
||||
signUpMethods.length > 0 && socialConnectors.length > 0 && (
|
||||
|
@ -34,18 +42,6 @@ const Register = () => {
|
|||
</>
|
||||
)
|
||||
}
|
||||
{
|
||||
// SignIn footer
|
||||
signInMode === SignInMode.SignInAndRegister && signInMethods.length > 0 && (
|
||||
<>
|
||||
<div className={styles.placeHolder} />
|
||||
<div className={styles.createAccount}>
|
||||
{t('description.have_account')}{' '}
|
||||
<TextLink replace to="/sign-in" text="action.sign_in" />
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
</LandingPageContainer>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
.createAccount {
|
||||
margin-top: _.unit(2);
|
||||
text-align: center;
|
||||
margin-bottom: _.unit(4);
|
||||
}
|
||||
|
||||
.placeHolder {
|
||||
|
|
Loading…
Reference in a new issue