1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-12 01:17:04 +02:00

chore: improve demo auth screen (#9780)

https://linear.app/unleash/issue/2-2575/adjust-text-login-screen

Adjusts the text for the demo auth screen.

Also took some liberties to improve the visual design of this page (at
least, IMO).

### Before


![image](https://github.com/user-attachments/assets/c17a4378-a940-4e5f-ad79-00ae4514cba6)

### After


![image](https://github.com/user-attachments/assets/c77d7d43-648f-40ab-9eb6-07156af22a7f)
This commit is contained in:
Nuno Góis 2025-04-16 15:07:22 +01:00 committed by GitHub
parent f3a1da9d7e
commit 176e9d3187
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 3 deletions

View File

@ -1,5 +1,11 @@
.container {
width: 350px;
text-align: center;
}
.container > h2 {
margin-top: 16px;
margin-bottom: 16px;
}
.container > * {
@ -24,9 +30,15 @@
.button {
min-width: 150px;
margin: 1rem auto;
margin-top: 0.5rem;
display: block;
}
.terms {
margin-top: 32px;
font-size: 12px;
}
@media (max-width: 500px) {
.container {
width: 100%;

View File

@ -49,7 +49,11 @@ const DemoAuth: VFC<IDemoAuthProps> = ({ authDetails, redirect }) => {
<Logo className={styles.logo} aria-label='Unleash logo' />
<div className={styles.container}>
<h2>Access the Unleash demo instance</h2>
<p>No further data or Credit Card required</p>
<p>
Use your email to test out the demo
<br />
No further data or credit card required
</p>
<div className={styles.form}>
<TextField
value={email}
@ -73,10 +77,10 @@ const DemoAuth: VFC<IDemoAuthProps> = ({ authDetails, redirect }) => {
className={styles.button}
data-testid={LOGIN_BUTTON}
>
Sign in
Test Unleash demo
</Button>
</div>
<p>
<p className={styles.terms}>
By accessing our demo instance, you agree to the
Unleash&nbsp;
<a