mirror of
https://codeberg.org/vegvisir/website.git
synced 2025-09-14 00:43:42 +02:00
98 lines
No EOL
1.4 KiB
CSS
98 lines
No EOL
1.4 KiB
CSS
/* # Components */
|
|
|
|
/* ## Split */
|
|
|
|
section.split {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
margin: 10svh 0;
|
|
}
|
|
|
|
section.split.center {
|
|
justify-items: center;
|
|
}
|
|
|
|
section.split > div {
|
|
grid-row: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
|
|
section.split.reverse > div:last-child {
|
|
grid-column: 1;
|
|
}
|
|
|
|
section.split.reverse > div:first-child {
|
|
grid-column: 2;
|
|
}
|
|
|
|
/* ### Text */
|
|
|
|
section.split .text {
|
|
width: 70%;
|
|
display: flex;
|
|
align-items: baseline;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* ### Buttons */
|
|
|
|
section.split .buttons {
|
|
display: flex;
|
|
gap: var(--padding);
|
|
margin-top: var(--padding);
|
|
}
|
|
|
|
/* # Sections */
|
|
|
|
/* ## Intro */
|
|
|
|
section#intro {
|
|
min-height: min(50svh, 1000px);
|
|
}
|
|
|
|
section#intro .text h1 {
|
|
font-size: 50px;
|
|
line-height: 50px;
|
|
}
|
|
|
|
/* ### Compass */
|
|
|
|
section#intro div.compass {
|
|
align-self: center;
|
|
}
|
|
|
|
section#intro div.compass svg {
|
|
--size: 50svh;
|
|
|
|
width: var(--size);
|
|
height: var(--size);
|
|
position: absolute;
|
|
z-index: -1;
|
|
}
|
|
|
|
section#intro div.compass svg.points {
|
|
opacity: .2;
|
|
animation: spin 10s alternate infinite linear;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(30deg); }
|
|
}
|
|
|
|
section#intro div.compass svg:nth-child(2) {
|
|
--size: 60svh;
|
|
|
|
animation-duration: 15s;
|
|
animation-direction: alternate-reverse;
|
|
}
|
|
|
|
/* ## Assets */
|
|
|
|
/* ## Freedom */
|
|
|
|
section#freedom > div > svg {
|
|
height: 300px;
|
|
} |