Add graphical timeline + FAQ section
All checks were successful
Build and Deploy PunktFri / build-and-deploy (push) Successful in 47s

- Replace Baggrunden bullet list with vertical CSS timeline
  - Three nodes: Nu (filled blue), 1. juli 2026 (outlined + SNART badge), 1. juli 2028 (gray)
  - Pure CSS with ::before line, no JS
- Add FAQ section with 7 questions using <details>/<summary>
  - Native HTML accordion, no JS
  - Clean bordered list with +/- indicators
This commit is contained in:
Henrik Jess Nielsen
2026-04-26 23:30:48 +02:00
parent 187d95043b
commit 759665ea32
2 changed files with 278 additions and 43 deletions

View File

@@ -207,33 +207,28 @@ header nav {
.target-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
margin-top: 1.5rem;
gap: 0;
margin-top: 2rem;
border: 1px solid var(--border);
}
@media (max-width: 580px) {
.target-grid { grid-template-columns: 1fr; }
.target-grid {
grid-template-columns: 1fr;
}
.target-box + .target-box {
border-left: none;
border-top: 1px solid var(--border);
}
}
.target-box {
padding: 1.5rem;
border: 1px solid var(--gray-20);
padding: 1.75rem 2rem;
background: var(--white);
border-top: 3px solid transparent;
}
.target-box.not-for {
border-top-color: var(--red);
background: var(--red-bg);
border-color: var(--red-border);
border-top-color: var(--red);
}
.target-box.is-for {
border-top-color: var(--green);
background: var(--green-bg);
border-color: var(--green-bdr);
border-top-color: var(--green);
.target-box + .target-box {
border-left: 1px solid var(--border);
}
.target-box h3 {
@@ -241,43 +236,43 @@ header nav {
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.12em;
margin-bottom: 1rem;
margin-bottom: 1.25rem;
font-family: var(--mono);
color: var(--muted);
}
.target-box.not-for h3 { color: var(--red); }
.target-box.is-for h3 { color: var(--green); }
.target-box ul {
list-style: none;
}
.target-box ul li {
padding: 0.3rem 0 0.3rem 1.4rem;
padding: 0.55rem 0 0.55rem 1.5rem;
font-size: 0.9rem;
color: var(--text);
position: relative;
line-height: 1.5;
border-bottom: 1px solid var(--border);
}
.target-box.not-for ul li::before {
content: "✕";
position: absolute;
left: 0;
color: var(--red);
font-size: 0.7rem;
font-family: var(--mono);
top: 0.42rem;
.target-box ul li:last-child {
border-bottom: none;
}
.target-box.is-for ul li::before {
content: "✓";
position: absolute;
left: 0;
color: var(--green);
font-size: 0.8rem;
font-family: var(--mono);
top: 0.35rem;
color: var(--primary);
font-weight: 600;
top: 0.55rem;
}
.target-box.not-for ul li::before {
content: "—";
position: absolute;
left: 0;
color: var(--muted);
top: 0.55rem;
}
/* ── Idea list ───────────────────────── */
@@ -770,3 +765,161 @@ footer {
color: var(--muted);
font-weight: 400;
}
/* ── Timeline ─────────────────────── */
.timeline {
position: relative;
margin-top: 2rem;
padding-left: 2.5rem;
}
.timeline::before {
content: '';
position: absolute;
left: 6px;
top: 10px;
bottom: 10px;
width: 2px;
background: var(--border);
}
.timeline-item {
position: relative;
padding-bottom: 2.25rem;
}
.timeline-item:last-child {
padding-bottom: 0;
}
.timeline-marker {
position: absolute;
left: -2.5rem;
top: 4px;
width: 14px;
height: 14px;
border-radius: 50%;
border: 2px solid var(--border);
background: var(--white);
z-index: 1;
}
.timeline-marker.is-now {
background: var(--primary);
border-color: var(--primary);
}
.timeline-marker.is-soon {
background: var(--white);
border-color: var(--primary);
box-shadow: 0 0 0 4px var(--primary-bg);
}
.timeline-marker.is-future {
background: var(--white);
border-color: var(--border);
}
.timeline-date {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.72rem;
font-family: var(--mono);
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: 0.3rem;
}
.timeline-badge {
display: inline-block;
font-size: 0.62rem;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--red);
background: var(--red-bg);
border: 1px solid var(--red-border);
padding: 0.05rem 0.4rem;
border-radius: 2px;
font-family: var(--mono);
}
.timeline-body h3 {
font-size: 1rem;
font-weight: 600;
color: var(--dark);
margin-bottom: 0.35rem;
}
.timeline-body p {
font-size: 0.9rem;
color: var(--text);
line-height: 1.65;
margin: 0;
max-width: 56ch;
}
/* ── FAQ ──────────────────────────── */
.faq {
margin-top: 1.5rem;
border: 1px solid var(--border);
}
.faq-item {
border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
border-bottom: none;
}
.faq-item summary {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.1rem 1.5rem;
font-size: 0.95rem;
font-weight: 600;
color: var(--dark);
cursor: pointer;
list-style: none;
user-select: none;
}
.faq-item summary::-webkit-details-marker {
display: none;
}
.faq-item summary::after {
content: '+';
font-size: 1.2rem;
font-weight: 300;
color: var(--muted);
flex-shrink: 0;
margin-left: 1rem;
line-height: 1;
transition: transform 0.15s ease;
}
.faq-item[open] summary::after {
content: '';
}
.faq-item summary:hover {
background: var(--section-alt);
}
.faq-answer {
padding: 0 1.5rem 1.25rem;
border-top: 1px solid var(--border);
}
.faq-answer p {
margin: 0;
font-size: 0.9rem;
color: var(--text);
line-height: 1.7;
padding-top: 1rem;
}