fix(login): finished new login screen

This commit is contained in:
trashtemp
2021-12-25 19:48:48 +01:00
parent 7844c84fbe
commit a07a17d892
6 changed files with 152 additions and 43 deletions

View File

@@ -111,30 +111,28 @@ export function Form({ page, callback }: Props) {
<div className={styles.success}>
{configuration?.features.email ? (
<>
<Envelope size={72} />
<h2>
<Text id="login.check_mail" />
</h2>
<p className={styles.note}>
<Text id="login.email_delay" />
</p>
<div>
<div className={styles.title}>
<Text id="login.check_mail" />
</div>
<div className={styles.subtitle}>
<Text id="login.email_delay" />
</div>
</div>
<MailProvider email={success} />
</>
) : (
<>
<CheckCircle size={72} />
<h1>
<div className={styles.title}>
<Text id="login.successful_registration" />
</h1>
</div>
</>
)}
<span className={styles.footer}>
<Link to="/login">
<a>
<Text id="login.remembered" />
</a>
</Link>
</span>
<Link to="/login">
<a>
<Text id="login.remembered" />
</a>
</Link>
</div>
);
}
@@ -150,6 +148,7 @@ export function Form({ page, callback }: Props) {
</div>
<div className={styles.subtitle}>
<Text id="login.subtitle" />
<div>(app.revolt.chat)</div>
</div>
</div>