1
0

feat: Responsiveness finished

This commit is contained in:
2026-03-12 10:28:13 +01:00
parent 8eb603e9f0
commit 4d6ed5cd37
11 changed files with 125 additions and 1000 deletions
+53 -24
View File
@@ -26,9 +26,9 @@ import ArrowDown from "../icons/ArrowDown.astro";
digital sovereignty and sustainability.
</p>
<button class="down">
<div class="down">
<ArrowDown />
</button>
</div>
</div>
</div>
@@ -36,41 +36,50 @@ import ArrowDown from "../icons/ArrowDown.astro";
.hero {
display: grid;
grid-template-columns: var(--base-grid);
height: 100svh;
padding-inline: var(--padding-x);
max-width: var(--max-content-width);
margin-inline: auto;
@media screen and (min-width: 50rem) {
height: 100svh;
max-height: 90rem;
}
}
.image-wrapper {
grid-column: 4 / -1;
grid-row: 1;
max-height: clamp(400px, 70vh, 1000px);
grid-column: 3 / -1;
max-height: 40vh;
position: relative;
z-index: -1;
@media screen and (max-width: 49.9375rem) {
margin-top: 1.5rem;
}
@media screen and (min-width: 50rem) {
grid-column: 4 / -1;
grid-row: 1;
grid-column: 5 / -1;
max-height: clamp(400px, 70vh, 1000px);
}
@media screen and (min-width: 75rem) {
grid-column: -1 / -6;
}
}
.image-wrapper::after {
content: "";
display: block;
width: 100%;
height: 100%;
background: var(--gradient-overlay);
position: absolute;
top: 0;
left: 0;
z-index: 1;
@media screen and (min-width: 50rem) and (max-width: 74.9375rem) {
.image-wrapper::after {
content: "";
display: block;
width: 100%;
height: 100%;
background: var(--gradient-overlay);
position: absolute;
top: 0;
left: 0;
z-index: 1;
@media screen and (max-width: 63.9375rem) {
backdrop-filter: blur(10px);
}
}
@@ -86,12 +95,24 @@ import ArrowDown from "../icons/ArrowDown.astro";
.content {
display: grid;
grid-template-columns: subgrid;
grid-template-rows: 1fr 1fr;
row-gap: 2.25em;
row-gap: 1.5em;
z-index: 1;
grid-column: 1 / -1;
grid-row: 1;
@media screen and (max-width: 24.9375rem) {
margin-top: 6rem;
}
@media screen and (min-width: 25rem) and (max-width: 49.9375rem) {
margin-top: 8rem;
}
@media screen and (min-width: 50rem) {
row-gap: 2.25em;
grid-template-rows: 1fr 1fr;
}
}
h1 {
@@ -108,8 +129,8 @@ import ArrowDown from "../icons/ArrowDown.astro";
grid-column: 2 / -2;
}
@media screen and (min-width: 64rem) {
grid-column: 2 / -2;
@media screen and (min-width: 100rem) {
grid-column: 3 / -3;
}
& span {
@@ -118,7 +139,7 @@ import ArrowDown from "../icons/ArrowDown.astro";
}
p {
grid-column: 2 / -1;
grid-column: 1 / -1;
grid-row: 2;
max-width: 45ch;
@@ -126,12 +147,16 @@ import ArrowDown from "../icons/ArrowDown.astro";
line-height: var(--leading-paragraph);
@media screen and (min-width: 50rem) {
grid-column: 3 / -5;
grid-column: 2 / -5;
}
@media screen and (min-width: 64rem) {
grid-column: 3 / -5;
}
@media screen and (min-width: 100rem) {
grid-column: 4 / -4;
}
}
.down {
@@ -153,6 +178,10 @@ import ArrowDown from "../icons/ArrowDown.astro";
width: 3rem;
height: 3rem;
}
@media screen and (max-width: 49.9375rem) {
display: none;
}
}
</style>