Edit home style

This commit is contained in:
Paul Nicoué 2025-05-25 18:29:02 +02:00
parent 2f9bf8cd78
commit badf6c29be
16 changed files with 154 additions and 159 deletions

View file

@ -1,38 +1,29 @@
@use '../abstracts' as *;
@use "../abstracts" as *;
// --------------------------------------------------
// BASE STYLE
// --------------------------------------------------
// Fonts and colors
body {
color: $black;
background-color: $white;
font-family: $text-font-family;
font-size: $text-font-size;
line-height: $text-line-height;
color: $black;
}
strong {
font-weight: $bold-font-weight;
font-weight: 700;
}
em {
font-style: italic;
}
// Link style
a {
color: $black;
text-decoration: none;
transition: text-decoration 200ms ease-in-out;
&:hover,
&:focus,
&:active {
text-decoration: underline;
}
text-decoration: underline;
text-underline-position: under;
&:focus-visible {
outline: 1px dashed $black;
@ -40,40 +31,81 @@ a {
}
}
// General layout
// --------------------------------------------------
// BASE LAYOUT
// --------------------------------------------------
body {
min-height: 100vh !important;
display: flex;
flex-direction: column;
align-items: center;
header {
position: fixed;
top: 0;
#app {
position: relative;
display: grid;
grid-template-columns: auto 1fr auto;
justify-content: center;
justify-items: center;
width: $app-width;
.header__logo {
width: 5rem;
header {
grid-column: 1;
position: sticky;
top: 0;
height: 100vh; // Fallback in case dvh unit is not supported
height: 100dvh;
padding: 1rem;
.header__logo {
position: relative;
width: $icon-size;
aspect-ratio: calc(1 / 2);
background-image: url("/public/images/signature-vertical.svg");
background-size: contain;
background-position: center;
@media screen and (min-width: $desktop-media-query) {
width: calc(($icon-size * 2) + $icon-spacing);
aspect-ratio: calc(2 / 1);
background-image: url("/public/images/signature-horizontal.svg");
}
}
}
}
main {}
main {
grid-column: 2;
width: $large-content-width;
padding: calc(2rem + $icon-size) 0;
}
footer {
position: fixed;
bottom: 0;
display: flex;
flex-direction: column;
justify-content: flex-end;
gap: 0.8rem;
.footer__link {
footer {
grid-column: 3;
position: sticky;
top: 0;
height: 100vh; // Fallback in case dvh unit is not supported
height: 100dvh;
display: flex;
justify-content: center;
align-items: center;
width: $icon-size;
height: $icon-size;
flex-direction: column;
justify-content: flex-end;
gap: $icon-spacing;
padding: 1rem;
svg {
width: 100%;
height: 100%;
@media screen and (min-width: $desktop-media-query) {
flex-direction: row;
align-items: flex-end;
}
.footer__link {
display: flex;
justify-content: center;
align-items: center;
width: $icon-size;
aspect-ratio: 1;
svg {
width: 100%;
height: 100%;
}
}
}
}