Files
onepager/sites/6034.de/index.html
mAi a06a94ff58 feat: #13 Light/Dark + EN/DE Toggle — Shift-2 Rollout
Rollout des Toggle-Patterns auf alle 57 statischen Sites (dasbes.de + dumusst.com sind dynamic, kein index.html).

1. **Bulk-Wiring (53 Sites)** via tools/patch-theme.py:
   - Anti-FOUC inline IIFE im <head> (vor erstem Paint)
   - <link rel="stylesheet" href="/shared/css/theme.css">
   - <script src="/shared/theme.js"> + toggles.js (i18n.js bleibt, hängt sich ans neue Widget)

2. **Per-Site Light-Overrides (14 Sites)** via tools/patch-light-overrides.py:
   - 6034, allainallain, commanderkin, hallofraumaier, heygoldi, keinefreun, lexsiebels, machesdocheinfach, matthiasbreier, orakil, osterai, patentonkel, traihard, wartebitte
   - Pro Site nur die failing accent-vars darkened (--green-dim, --text-faint, --warm-dim, --gold-dim, etc.)
   - AA 4.5:1+ auf white bg gesichert; Brand-Akzent erhalten

3. **data-theme-lock="dark" (4 Sites)** auf <html>:
   - kilibri, killusion, killionaer, killuminati
   - Aesthetisch dark-only — toggles.js blendet Theme-Button automatisch aus, Lang-Button bleibt

4. **Footer-Toggle Removal (52 Sites)** via tools/remove-footer-toggle.py:
   - Bestehende footer [data-i18n-toggle] Buttons entfernt — top-right widget übernimmt
   - Disclaimer-Information in tooltip des neuen Buttons + ai-disclosure.js footer

QA:
- ./build.sh: 59/59 sites built clean
- contrast-audit.py --both: 0/59 dark fail, 0/59 light fail
- anti-ai-lint: 0/57 sites flagged

Tools committed (idempotent, für Wiederverwendung):
- tools/patch-theme.py (--all wired alle Sites)
- tools/patch-light-overrides.py (per-site OVERRIDES dict)
- tools/remove-footer-toggle.py (4 Patterns für versch. Footer-Strukturen)
2026-05-08 11:16:15 +02:00

117 lines
3.2 KiB
HTML

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<script>(function(){try{var t=localStorage.getItem('onepager-theme');if(!t)t=matchMedia('(prefers-color-scheme: light)').matches?'light':'dark';document.documentElement.setAttribute('data-theme',t);}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
<meta name="theme-color" content="#0f1210">
<title>6034.de</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=JetBrains+Mono:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/shared/css/theme.css">
<style>
:root {
--bg: #0f1210;
--bg-card: #1a1f1c;
--border: #2d3630;
--text: #e8ede9;
--text-dim: #8a9b8e;
--green: #4ade80;
--green-dim: #22c55e;
--font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
--font-mono: 'JetBrains Mono', monospace;
}
[data-theme="light"] {
--green-dim: #15803d;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
background: var(--bg);
color: var(--text);
font-family: var(--font);
min-height: 100vh;
-webkit-font-smoothing: antialiased;
}
body::before {
content: "";
position: fixed;
inset: 0;
background-image: radial-gradient(circle at 20% 10%, rgba(74,222,128,0.06), transparent 40%),
radial-gradient(circle at 80% 90%, rgba(74,222,128,0.04), transparent 40%);
pointer-events: none;
z-index: 0;
}
main {
position: relative;
z-index: 1;
max-width: 480px;
margin: 0 auto;
padding: 4rem 1.5rem;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
}
.brand {
font-family: var(--font-mono);
font-size: 4rem;
font-weight: 700;
letter-spacing: -0.02em;
color: var(--green);
line-height: 1;
margin-bottom: 2.5rem;
}
.brand-dot { color: var(--text-dim); }
.links {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.link {
padding: 1rem 1.25rem;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 12px;
text-decoration: none;
color: var(--text);
font-weight: 500;
display: flex;
align-items: center;
justify-content: space-between;
transition: border-color 0.15s ease, transform 0.15s ease;
}
.link:hover {
border-color: var(--green-dim);
transform: translateY(-1px);
}
.link-arrow {
color: var(--green);
font-family: var(--font-mono);
opacity: 0.6;
transition: opacity 0.15s ease, transform 0.15s ease;
}
.link:hover .link-arrow {
opacity: 1;
transform: translateX(2px);
}
@media (max-width: 480px) {
.brand { font-size: 3rem; }
main { padding: 3rem 1rem; }
}
</style>
</head>
<body>
<main>
<div class="brand">6034<span class="brand-dot">.de</span></div>
<div class="links">
<a class="link" href="https://grn.msbls.de" target="_blank" rel="noopener">
<span>🌱 mGreen</span>
<span class="link-arrow"></span>
</a>
</div>
</main>
</body>
</html>