Beautify log in page a little

pull/13/head
Lim Chee Aun 2022-12-21 01:04:04 +08:00
rodzic e80e09c398
commit a9538e6cf0
2 zmienionych plików z 30 dodań i 2 usunięć

Wyświetl plik

@ -0,0 +1,26 @@
#login {
padding: 16px;
background-image: radial-gradient(
closest-side at 50% 50%,
var(--bg-color),
transparent
);
}
#login .error {
color: var(--red-color);
}
#login label p {
margin: 0 0 0.25em 0;
padding: 0;
text-transform: uppercase;
font-size: 90%;
font-weight: bold;
color: var(--text-insignificant-color);
}
#login input {
display: block;
width: 100%;
}

Wyświetl plik

@ -1,3 +1,5 @@
import './login.css';
import { useEffect, useRef, useState } from 'preact/hooks';
import Loader from '../components/loader';
@ -53,7 +55,7 @@ function Login() {
};
return (
<main class="box" style={{ textAlign: 'center' }}>
<main id="login" style={{ textAlign: 'center' }}>
<form onSubmit={onSubmit}>
<h1>Log in</h1>
<label>
@ -82,8 +84,8 @@ function Login() {
<button class="large" disabled={uiState === 'loading'}>
Log in
</button>{' '}
<Loader hidden={uiState !== 'loading'} />
</p>
<Loader hidden={uiState !== 'loading'} />
<hr />
<p>
<a href="https://joinmastodon.org/servers" target="_blank">