Skip to content

Commit 9b98c4b

Browse files
authored
Merge pull request #2 from ingr-io/copilot/move-light-dark-toggle
Move light/dark toggle above intro, just under the header
2 parents da8ae3d + dc6202f commit 9b98c4b

2 files changed

Lines changed: 19 additions & 11 deletions

File tree

index.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,16 @@
122122
</nav>
123123
</header>
124124

125+
<!-- Theme toggle -->
126+
<div class="theme-toggle-bar">
127+
<div class="theme-toggle" id="theme-toggle" role="group" aria-label="Color theme">
128+
<span class="theme-toggle__label" id="theme-label-dark">🌑 Dark</span>
129+
<button class="theme-toggle__track" id="theme-toggle-btn" aria-label="Toggle theme" title="Toggle theme"></button>
130+
<span class="theme-toggle__label" id="theme-label-light">☀️ Light</span>
131+
<span class="theme-toggle__hint" id="theme-hint">Go dark, friend 😈</span>
132+
</div>
133+
</div>
134+
125135
<!-- ── HERO ────────────────────────────────────────────────────────────────── -->
126136
<section class="section-wrap" style="padding-bottom:0;">
127137
<div class="animate-fade-up" style="margin-bottom:16px;">
@@ -140,18 +150,8 @@
140150
class="link-accent">Full specification ↗</a>
141151
</p>
142152

143-
<!-- Theme toggle -->
144-
<div class="animate-fade-up delay-3" style="display:flex;align-items:center;justify-content:flex-end;margin-bottom:12px;">
145-
<div class="theme-toggle" id="theme-toggle" role="group" aria-label="Color theme">
146-
<span class="theme-toggle__label" id="theme-label-dark">🌑 Dark</span>
147-
<button class="theme-toggle__track" id="theme-toggle-btn" aria-label="Toggle theme" title="Toggle theme"></button>
148-
<span class="theme-toggle__label" id="theme-label-light">☀️ Light</span>
149-
<span class="theme-toggle__hint" id="theme-hint">Go dark, friend 😈</span>
150-
</div>
151-
</div>
152-
153153
<!-- Mini converter -->
154-
<div class="animate-fade-up delay-4 ingr-right" id="hero-grid"
154+
<div class="animate-fade-up delay-3 ingr-right" id="hero-grid"
155155
style="display:grid;gap:0;border:1px solid var(--border);">
156156

157157
<!-- Input -->

src/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ body { position: relative; z-index: 1; }
8585
backdrop-filter: blur(12px);
8686
z-index: 50;
8787
}
88+
.theme-toggle-bar {
89+
display: flex;
90+
align-items: center;
91+
justify-content: flex-end;
92+
padding: 8px 32px 0;
93+
max-width: 1164px;
94+
margin: 0 auto;
95+
}
8896
.site-logo {
8997
font-family: var(--font-mono);
9098
font-size: 18px;

0 commit comments

Comments
 (0)