Add theme + language toolbar to index, register, login pages
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 1m58s

This commit is contained in:
openhands committed 2026-07-22 19:15:34 +02:00
1 parent 025af147cd
commit 7aec61d1a5
3 files changed
+49 -2

No files matched your search

+15
View File
@@ -9,6 +9,8 @@ import { prisma } from "@/lib/prisma";
import { resolveHotelName } from "@/lib/hotel-name";
import { siteSettings } from "@/lib/services/site-settings";
import { auth } from "@/lib/auth";
import { ThemeSwitcher } from "@/components/theme-switcher";
import { LanguageSwitcher } from "@/components/language-switcher";
export const revalidate = 120;
@@ -84,6 +86,19 @@ export default async function Home() {
return (
<div className="flex flex-col gap-14 pb-14">
{/* ── Toolbar ── */}
<div
className="flex items-center justify-end gap-2 rounded-2xl border px-4 py-2.5"
style={{
background: "color-mix(in srgb, var(--color-surface) 50%, transparent)",
backdropFilter: "blur(8px)",
WebkitBackdropFilter: "blur(8px)",
borderColor: "color-mix(in srgb, var(--color-text-muted) 8%, transparent)",
}}
>
<LanguageSwitcher />
<ThemeSwitcher />
</div>
{/* ── 1. Hero ── */}
<div
className="relative overflow-hidden rounded-3xl border px-6 py-10 md:px-10 md:py-14 lg:py-16"