feat: sjove detaljer med rottejagt.dk, lagdelt landskab med rotte og flere projekter

This commit is contained in:
Michael Laursen
2026-10-28 10:56:59 +01:00
parent 087c6c5930
commit 2abd645e0b
3 changed files with 143 additions and 19 deletions
+88 -4
View File
@@ -5,6 +5,9 @@
--graa: #5f6f75; /* sekundær tekst */
--soe: #4c7a80; /* accent */
--lys-soe: #b9cdd0; /* landskab */
--bakke-bag: #d3dfe1;
--bakke-midt: #b9cdd0;
--bakke-for: #9bb6ba;
}
/* Mørkt tema: valgt med knappen, eller fra systemet hvis intet er valgt */
@@ -15,6 +18,9 @@
--graa: #9fb0b5;
--soe: #8fbcc2;
--lys-soe: #2d3f45;
--bakke-bag: #243338;
--bakke-midt: #2d3f45;
--bakke-for: #395057;
}
@media (prefers-color-scheme: dark) {
@@ -25,6 +31,9 @@
--graa: #9fb0b5;
--soe: #8fbcc2;
--lys-soe: #2d3f45;
--bakke-bag: #243338;
--bakke-midt: #2d3f45;
--bakke-for: #395057;
}
}
@@ -82,6 +91,11 @@ h1 {
gap: 1.75rem;
}
.projekter h2 a {
color: var(--blaek);
text-decoration-color: var(--soe);
}
.projekter h2 {
font-size: 1.25rem;
font-weight: 500;
@@ -94,6 +108,17 @@ h1 {
max-width: 32rem;
}
section + section {
margin-top: 2.5rem;
}
section h2 {
font-size: 1rem;
font-weight: 500;
color: var(--graa);
margin: 0 0 0.75rem;
}
.arbejde {
list-style: none;
margin: 0;
@@ -106,6 +131,31 @@ h1 {
max-width: 32rem;
}
.detaljer {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 0.9rem;
}
.detaljer li {
max-width: 34rem;
padding-left: 1.25rem;
position: relative;
}
.detaljer li::before {
content: "";
position: absolute;
left: 0;
top: 0.65em;
width: 0.5rem;
height: 0.5rem;
border-radius: 50%;
background: var(--soe);
}
.kontakt {
margin-top: 3rem;
color: var(--graa);
@@ -123,19 +173,53 @@ a:focus-visible {
border-radius: 2px;
}
.landskab {
.scene {
position: relative;
margin-top: auto;
}
.bakker {
display: block;
width: 100%;
height: auto;
color: var(--lys-soe);
height: clamp(90px, 14vw, 180px);
}
.bakke-bag { fill: var(--bakke-bag); }
.bakke-midt { fill: var(--bakke-midt); }
.bakke-for { fill: var(--bakke-for); }
.rotte {
position: absolute;
right: 8%;
bottom: 4%;
width: clamp(54px, 7vw, 96px);
color: var(--blaek);
display: block;
}
.rotte svg { display: block; width: 100%; height: auto; fill: currentColor; }
.rotte .oeje { fill: var(--taage); }
.rotte:hover .hale,
.rotte:focus-visible .hale {
d: path("M27 44 C8 40, 4 26, 22 24");
}
@media (prefers-reduced-motion: no-preference) {
.rotte .hale { transition: d 0.4s ease; }
}
footer p {
margin: 0;
}
footer a {
color: var(--blaek);
text-decoration-color: var(--soe);
}
footer {
background: var(--lys-soe);
background: var(--bakke-for);
color: var(--blaek);
font-size: 0.9rem;
padding: 1rem 1rem 1.5rem;