Skip to content

Commit ef1849f

Browse files
committed
style: center floating behavior indicators horizontally
1 parent 16d4859 commit ef1849f

20 files changed

Lines changed: 20 additions & 20 deletions

File tree

apps/examples/app/content-only/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export default function ContentOnlyPage() {
160160
</div>
161161

162162
{/* Floating variant indicator */}
163-
<div className="fixed bottom-4 left-4 z-50 flex items-center gap-1.5 rounded-full bg-black/70 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
163+
<div className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 flex items-center gap-1.5 rounded-full bg-black/70 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
164164
<span className="size-1.5 rounded-full bg-emerald-400 animate-pulse" />
165165
content-only &middot; no header, no footer
166166
</div>

apps/examples/app/desktop-nav/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export default function DesktopNavPage() {
302302
<Content className="pb-16">
303303
<div className="mx-auto max-w-6xl px-4 sm:px-6">
304304
{/* Floating variant indicator */}
305-
<div className="fixed bottom-4 left-4 z-50 flex items-center gap-1.5 rounded-full bg-black/70 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
305+
<div className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 flex items-center gap-1.5 rounded-full bg-black/70 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
306306
<span className="size-1.5 rounded-full bg-emerald-400 animate-pulse" />
307307
HeaderNav
308308
</div>

apps/examples/app/fixed-header/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export default function FixedHeaderPage() {
224224
</Content>
225225

226226
{/* Floating variant indicator */}
227-
<div className="fixed bottom-4 left-4 z-50 flex items-center gap-2 rounded-full bg-zinc-950/90 px-4 py-2 text-[11px] font-mono text-white/90 shadow-2xl backdrop-blur-md border border-white/10">
227+
<div className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 flex items-center gap-2 rounded-full bg-zinc-950/90 px-4 py-2 text-[11px] font-mono text-white/90 shadow-2xl backdrop-blur-md border border-white/10">
228228
<span className="size-2 rounded-full bg-emerald-400 animate-pulse" />
229229
HEADER: behavior=&quot;fixed&quot;
230230
</div>

apps/examples/app/floating-footer/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export default function FloatingFooterPage() {
269269
</AppShell>
270270

271271
{/* Floating variant indicator */}
272-
<div className="fixed bottom-20 left-4 z-50 flex items-center gap-1.5 rounded-full bg-black/70 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
272+
<div className="fixed bottom-20 left-1/2 -translate-x-1/2 z-50 flex items-center gap-1.5 rounded-full bg-black/70 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
273273
<span className="size-1.5 rounded-full bg-emerald-400 animate-pulse" />
274274
variant=&quot;floating&quot; position=&quot;center&quot;
275275
</div>

apps/examples/app/footer-only/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export default function FooterOnlyPage() {
211211
</Footer>
212212

213213
{/* Floating variant indicator */}
214-
<div className="fixed bottom-20 left-4 z-50 flex items-center gap-1.5 rounded-full bg-black/70 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
214+
<div className="fixed bottom-20 left-1/2 -translate-x-1/2 z-50 flex items-center gap-1.5 rounded-full bg-black/70 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
215215
<span className="size-1.5 rounded-full bg-emerald-400 animate-pulse" />
216216
footer-only &middot; no header
217217
</div>

apps/examples/app/header-only/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export default function HeaderOnlyPage() {
254254
</Content>
255255

256256
{/* Floating variant indicator */}
257-
<div className="fixed bottom-4 left-4 z-50 flex items-center gap-1.5 rounded-full bg-black/70 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
257+
<div className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 flex items-center gap-1.5 rounded-full bg-black/70 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
258258
<span className="size-1.5 rounded-full bg-emerald-400 animate-pulse" />
259259
header-only &middot; no footer
260260
</div>

apps/examples/app/mini-footer/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export default function MiniFooterPage() {
185185
</Footer>
186186

187187
{/* Variant indicator pill */}
188-
<div className="fixed bottom-20 left-4 z-50 flex items-center gap-1.5 rounded-full bg-black/70 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
188+
<div className="fixed bottom-20 left-1/2 -translate-x-1/2 z-50 flex items-center gap-1.5 rounded-full bg-black/70 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
189189
<span className="size-1.5 rounded-full bg-emerald-400 animate-pulse" />
190190
variant=&quot;mini&quot;
191191
</div>

apps/examples/app/responsive/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export default function ResponsivePage() {
202202
<Content className="pb-20 md:pb-8">
203203
<div className="mx-auto max-w-6xl px-4 sm:px-6 pt-6">
204204
{/* Floating variant indicator */}
205-
<div className="fixed bottom-4 left-4 z-50 flex items-center gap-1.5 rounded-full bg-black/70 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
205+
<div className="fixed bottom-4 left-1/2 -translate-x-1/2 z-50 flex items-center gap-1.5 rounded-full bg-black/70 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
206206
<span className="size-1.5 rounded-full bg-emerald-400 animate-pulse" />
207207
Responsive
208208
</div>

apps/examples/app/reveal-all/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function RevealAllPage() {
6767
</AppShell>
6868

6969
{/* Floating variant indicator */}
70-
<div className="fixed bottom-4 left-4 z-[60]">
70+
<div className="fixed bottom-4 left-1/2 -translate-x-1/2 z-[60]">
7171
<div className="flex items-center gap-1.5 rounded-full bg-black/60 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
7272
<span className="size-1.5 rounded-full bg-emerald-400 animate-pulse" />
7373
behavior=&quot;reveal-all&quot;

apps/examples/app/reveal-bottom/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function RevealBottomPage() {
6767
</AppShell>
6868

6969
{/* Floating variant indicator */}
70-
<div className="fixed bottom-4 left-4 z-[60]">
70+
<div className="fixed bottom-4 left-1/2 -translate-x-1/2 z-[60]">
7171
<div className="flex items-center gap-1.5 rounded-full bg-black/60 backdrop-blur-sm px-3 py-1.5 text-[11px] font-mono text-white/80 shadow-lg">
7272
<span className="size-1.5 rounded-full bg-emerald-400 animate-pulse" />
7373
behavior=&quot;reveal-search&quot;

0 commit comments

Comments
 (0)