Add language switcher dropdown and persist manual locale choice.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { Hero } from "~/components/sections/hero";
|
||||
import { LanguageSwitcher } from "~/components/language-switcher";
|
||||
import { useLocale } from "~/components/locale-provider";
|
||||
|
||||
export default function HomePage() {
|
||||
@@ -12,6 +13,12 @@ export default function HomePage() {
|
||||
className="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>
|
||||
<main className="flex flex-1 flex-col">
|
||||
<Hero />
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user