0
Fork 0
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:
simeng-li 2023-02-20 11:41:35 +08:00 committed by GitHub
commit 34f1f55bba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 12 deletions

View file

@ -9,6 +9,7 @@
.createAccount {
margin-top: _.unit(2);
text-align: center;
margin-bottom: _.unit(4);
}
.placeHolder {

View file

@ -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>
);
};

View file

@ -10,6 +10,7 @@
.createAccount {
margin-top: _.unit(2);
text-align: center;
margin-bottom: _.unit(4);
}
.placeHolder {