mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
Merge pull request #3142 from logto-io/simeng-log-5410-the-distance-blow-sign-increate-account
style(ui): adjust signin and register switch link pos
This commit is contained in:
commit
34f1f55bba
3 changed files with 10 additions and 12 deletions
|
@ -9,6 +9,7 @@
|
||||||
.createAccount {
|
.createAccount {
|
||||||
margin-top: _.unit(2);
|
margin-top: _.unit(2);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin-bottom: _.unit(4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.placeHolder {
|
.placeHolder {
|
||||||
|
|
|
@ -25,6 +25,14 @@ const Register = () => {
|
||||||
<IdentifierRegisterForm signUpMethods={signUpMethods} className={styles.main} />
|
<IdentifierRegisterForm signUpMethods={signUpMethods} className={styles.main} />
|
||||||
)}
|
)}
|
||||||
{signUpMethods.length === 0 && socialConnectors.length > 0 && <SocialSignIn />}
|
{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
|
// Social sign-in methods
|
||||||
signUpMethods.length > 0 && socialConnectors.length > 0 && (
|
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>
|
</LandingPageContainer>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
.createAccount {
|
.createAccount {
|
||||||
margin-top: _.unit(2);
|
margin-top: _.unit(2);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin-bottom: _.unit(4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.placeHolder {
|
.placeHolder {
|
||||||
|
|
Loading…
Reference in a new issue