From 4f79d5a0aee32466cf0bb969255b3b4ef48c6dc9 Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 3 Jul 2026 16:31:17 +0200 Subject: [PATCH] feat: add pixel font for hotel name, toggle text/logo on click in site header --- src/app/layout.tsx | 11 ++++++-- src/components/site-header-title.tsx | 42 ++++++++++++++++++++++++++++ src/components/site-header.tsx | 19 ++----------- 3 files changed, 53 insertions(+), 19 deletions(-) create mode 100644 src/components/site-header-title.tsx diff --git a/src/app/layout.tsx b/src/app/layout.tsx index a80f75ef..d1f0f014 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,7 +1,7 @@ import type { Metadata } from "next"; import { NextIntlClientProvider } from "next-intl"; import { getLocale, getMessages } from "next-intl/server"; -import { Nunito } from "next/font/google"; +import { Nunito, Pixelify_Sans } from "next/font/google"; import { headers } from "next/headers"; import type { ReactNode } from "react"; import { Navigation } from "@/components/navigation"; @@ -22,6 +22,13 @@ const nunito = Nunito({ variable: "--font-nunito", }); +const pixelFont = Pixelify_Sans({ + subsets: ["latin"], + weight: ["400", "700"], + display: "swap", + variable: "--font-pixel", +}); + export async function generateMetadata(): Promise { const hotel = (await siteSettings.get("hotel_name", "Atom")) ?? "Atom"; return { @@ -42,7 +49,7 @@ export default async function RootLayout({ children }: { children: ReactNode }) const pathname = headersList.get("x-pathname") || headersList.get("next-url") || ""; const isClient = pathname === "/client" || pathname.startsWith("/client/"); return ( - + {/* Apply the saved/default theme before first paint to avoid a flash. */}