fix: nicer login

This commit is contained in:
cha0s 2022-03-19 15:26:21 -05:00
parent 7e92367d33
commit 5ec0dcc7f8
3 changed files with 91 additions and 0 deletions

View File

@ -75,6 +75,7 @@ h6 {
html { html {
background-color: #212121; background-color: #212121;
color: #FFFFFF; color: #FFFFFF;
--color-active: #{$color-active};
--message-font-family: verdana, arial, helvetica, sans-serif; --message-font-family: verdana, arial, helvetica, sans-serif;
--title-font-family: LatoLight, Ubuntu, "Droid Sans", sans-serif; --title-font-family: LatoLight, Ubuntu, "Droid Sans", sans-serif;
--thick-title-font-family: LatoRegular, Ubuntu, "Droid Sans", sans-serif; --thick-title-font-family: LatoRegular, Ubuntu, "Droid Sans", sans-serif;

View File

@ -0,0 +1,24 @@
import {React} from '@flecks/react';
import {UserLocalLogin} from '@flecks/user/local/client';
import styles from './index.module.scss';
function Login() {
return (
<div className={styles.login}>
<div>
<h2>Sign in</h2>
<p>You must sign in to continue</p>
</div>
<UserLocalLogin />
</div>
);
}
Login.defaultProps = {};
Login.displayName = 'Login';
Login.propTypes = {};
export default Login;

View File

@ -0,0 +1,66 @@
.login {
margin: auto;
max-width: 60%;
padding-top: 5%;
> div {
text-align: center;
padding-bottom: 2em;
h2 {
padding-bottom: 1em;
}
}
form {
background-color: #272727;
border: 1px solid #555;
border-radius: 10px;
padding: 0.75rem 0.5rem;
input {
border-radius: 5px;
}
input[type="submit"] {
background-color: var(--color-active);
font-size: 1em;
}
label {
background-color: transparent;
}
label > span {
margin-bottom: 1em;
}
div {
align-items: center;
display: flex;
justify-content: space-between;
[type="checkbox"] {
margin-right: 0.5em;
position: relative;
top: -2px;
vertical-align: bottom;
}
label {
display: block;
flex-direction: row;
input, span {
margin: 0;
}
}
a {
padding: 1em 1em 1em 0;
text-decoration: none;
white-space: nowrap;
}
}
}
}