improve homepage

This commit is contained in:
Vri 🌈 2023-03-05 22:58:27 +01:00
parent 9a9e9ce8a6
commit 1e916efc85
Signed by: vrifox
GPG key ID: D40098E5B60B2197
10 changed files with 133 additions and 8 deletions

View file

@ -0,0 +1,12 @@
@font-face {
font-family: "playfair";
src: local("Playfair"),
url("/fonts/playfair/PlayfairDisplay-Regular.woff2") format(woff2);
}
@font-face {
font-family: "playfair";
src: local("Playfair"),
url("/fonts/playfair/PlayfairDisplay-Bold.woff2") format(woff2);
font-weight: bold;
}

View file

@ -2,6 +2,9 @@
@import "variables";
@import "main";
// fonts
@import "fonts/playfair";
// shortcodes
@import "shortcodes/verticalposts";
@ -13,6 +16,27 @@
#introduction {
background: var(--vriish-gradient);
font-family: "playfair";
font-size: 2rem;
height: 100vh;
h1 {
letter-spacing: 0.5rem;
}
p {
letter-spacing: 0.15rem;
}
&::after {
content: "­☟";
font-size: 4.8rem;
position: absolute;
bottom: 2rem;
animation: 1s ease-in infinite alternate scrollDown;
font-family: serif;
}
@keyframes scrollDown {
from { transform: translateY(0); }
to { transform: translateY(1rem); }
}
}
section {

View file

@ -15,10 +15,6 @@
position: sticky;
top: 0;
z-index: 1;
@media (min-width: 921px) {
bottom: 0;
height: 100%;
}
header {
text-align: center;
user-select: none;