mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Beautify log in page a little
This commit is contained in:
parent
e80e09c398
commit
a9538e6cf0
2 changed files with 30 additions and 2 deletions
26
src/pages/login.css
Normal file
26
src/pages/login.css
Normal file
|
@ -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%;
|
||||||
|
}
|
|
@ -1,3 +1,5 @@
|
||||||
|
import './login.css';
|
||||||
|
|
||||||
import { useEffect, useRef, useState } from 'preact/hooks';
|
import { useEffect, useRef, useState } from 'preact/hooks';
|
||||||
|
|
||||||
import Loader from '../components/loader';
|
import Loader from '../components/loader';
|
||||||
|
@ -53,7 +55,7 @@ function Login() {
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main class="box" style={{ textAlign: 'center' }}>
|
<main id="login" style={{ textAlign: 'center' }}>
|
||||||
<form onSubmit={onSubmit}>
|
<form onSubmit={onSubmit}>
|
||||||
<h1>Log in</h1>
|
<h1>Log in</h1>
|
||||||
<label>
|
<label>
|
||||||
|
@ -82,8 +84,8 @@ function Login() {
|
||||||
<button class="large" disabled={uiState === 'loading'}>
|
<button class="large" disabled={uiState === 'loading'}>
|
||||||
Log in
|
Log in
|
||||||
</button>{' '}
|
</button>{' '}
|
||||||
<Loader hidden={uiState !== 'loading'} />
|
|
||||||
</p>
|
</p>
|
||||||
|
<Loader hidden={uiState !== 'loading'} />
|
||||||
<hr />
|
<hr />
|
||||||
<p>
|
<p>
|
||||||
<a href="https://joinmastodon.org/servers" target="_blank">
|
<a href="https://joinmastodon.org/servers" target="_blank">
|
||||||
|
|
Loading…
Reference in a new issue