Hide language switcher by default; unlock with 5 taps on top-right.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eric
2026-08-03 09:08:30 -05:00
parent 7453780e06
commit 9c2eeb9df2
5 changed files with 85 additions and 42 deletions

View File

@@ -15,12 +15,7 @@ export default function AboutPage() {
paddingBottom: "max(2.5rem, calc(1.5rem + var(--safe-bottom)))",
}}
>
<div
className="absolute right-4 z-10"
style={{ top: "max(1rem, calc(0.75rem + var(--safe-top)))" }}
>
<LanguageSwitcher />
</div>
<LanguageSwitcher />
<div className="mx-auto w-full max-w-md">
<h1 className="text-xl font-bold text-neutral-900">{t.about.title}</h1>
<p className="mt-4 text-sm leading-relaxed text-neutral-600">

View File

@@ -15,12 +15,7 @@ export default function ContactPage() {
paddingBottom: "max(2.5rem, calc(1.5rem + var(--safe-bottom)))",
}}
>
<div
className="absolute right-4 z-10"
style={{ top: "max(1rem, calc(0.75rem + var(--safe-top)))" }}
>
<LanguageSwitcher />
</div>
<LanguageSwitcher />
<div className="mx-auto w-full max-w-md">
<h1 className="text-xl font-bold text-neutral-900">{t.contact.title}</h1>
<p className="mt-4 text-sm leading-relaxed text-neutral-600">

View File

@@ -10,15 +10,10 @@ export default function HomePage() {
return (
<div
className="flex min-h-dvh flex-col"
className="relative flex min-h-dvh flex-col"
style={{ minHeight: "100dvh" }}
>
<div
className="absolute right-4 z-10"
style={{ top: "max(1rem, calc(0.75rem + var(--safe-top)))" }}
>
<LanguageSwitcher />
</div>
<LanguageSwitcher />
<main className="flex flex-1 flex-col">
<Hero />
</main>