chore: styling

dev
Antonio De Lucreziis 7 months ago
parent b4722ac030
commit 16bffed2be

@ -7,15 +7,16 @@ import PageLayout from '../layouts/PageLayout.astro'
<!-- form with username and password, and a button for oauth login --> <!-- form with username and password, and a button for oauth login -->
<form action="/login" method="post"> <form action="/login" method="post">
<h3>Accedi con Poisson</h3> <h3 class="center">Accedi con Poisson</h3>
<input type="text" id="username" placeholder="Username" name="username" required /> <input type="text" id="username" placeholder="Username" name="username" required />
<input type="password" id="password" placeholder="Password" name="password" required /> <input type="password" id="password" placeholder="Password" name="password" required />
<button class="primary" type="submit">Login</button> <button class="primary center" type="submit">Login</button>
<hr /> <hr />
<h3>Accedi con Ateneo</h3>
<a href="/auth/ateneo" class="primary" role="button">Login</a> <h3 class="center">Accedi con Ateneo</h3>
<a href="/auth/ateneo" class="primary center" role="button">Login</a>
</form> </form>
<!-- <span class="material-symbols-outlined">person</span> --> <!-- <span class="material-symbols-outlined">person</span> -->
</PageLayout> </PageLayout>

@ -15,6 +15,9 @@ button,
transition: all 64ms linear; transition: all 64ms linear;
display: grid;
place-content: center;
&:hover { &:hover {
transform: translate(-1px, -1px); transform: translate(-1px, -1px);
box-shadow: 5px 5px 0 0 #222; box-shadow: 5px 5px 0 0 #222;
@ -67,16 +70,21 @@ input[type='password'] {
form { form {
display: grid; display: grid;
gap: 0.5rem; gap: 1rem;
padding: 1rem; padding: 2rem;
background: #38adc1; background: #38adc1;
min-width: 40ch;
@include neo-brutalist-card($size: 3px, $offset: 9px); @include neo-brutalist-card($size: 3px, $offset: 9px);
button, button,
.button, .button,
[role='button'] { [role='button'] {
padding-left: 3rem;
padding-right: 3rem;
&.primary { &.primary {
background: #1c7f90; background: #1c7f90;
color: #f4fef7; color: #f4fef7;
@ -86,4 +94,23 @@ form {
} }
} }
} }
hr {
border: none;
width: 100%;
height: 2px;
background: #0003;
margin-top: 1rem;
}
.right {
justify-self: end;
}
.left {
justify-self: start;
}
.center {
justify-self: center;
}
} }

@ -378,7 +378,10 @@ body {
} }
.login { .login {
background: #ddfaff;
main { main {
justify-self: center; justify-self: center;
display: flex; display: flex;
@ -386,9 +389,14 @@ body {
align-items: center; align-items: center;
max-width: 80ch; max-width: 80ch;
padding: 5rem 0; padding: 3rem 0;
gap: 5rem; gap: 3rem;
h3 {
font-size: 28px;
font-weight: 600;
}
} }
} }

Loading…
Cancel
Save