From 98506fea1ec2bb5878d3acc839e4c6dbf0c972a1 Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 3 Jul 2026 16:35:54 +0200 Subject: [PATCH] feat: add Habbo pixel font to logo generator, revert site-header toggle --- src/components/public/logo-generator.tsx | 3 +- src/components/site-header-title.tsx | 42 ------------------------ src/components/site-header.tsx | 19 +++++++++-- 3 files changed, 19 insertions(+), 45 deletions(-) delete mode 100644 src/components/site-header-title.tsx diff --git a/src/components/public/logo-generator.tsx b/src/components/public/logo-generator.tsx index d53b1f83..6c3ccb97 100644 --- a/src/components/public/logo-generator.tsx +++ b/src/components/public/logo-generator.tsx @@ -14,8 +14,9 @@ import { ContentCard } from "@/components/public/ui"; type FontOption = { label: string; stack: string }; -// ~6 fun, broadly-available stacks (web-safe + a Google-ish first pick). +// ~8 fun, broadly-available stacks (web-safe + a Google-ish first pick). const FONTS: FontOption[] = [ + { label: "Habbo pixel", stack: "var(--font-pixel), 'Courier New', monospace" }, { label: "Poppins (rounded)", stack: "'Poppins', 'Trebuchet MS', sans-serif" }, { label: "Comic Sans (playful)", stack: "'Comic Sans MS', 'Comic Sans', cursive" }, { label: "Georgia (classic serif)", stack: "Georgia, 'Times New Roman', serif" }, diff --git a/src/components/site-header-title.tsx b/src/components/site-header-title.tsx deleted file mode 100644 index 9c2e0428..00000000 --- a/src/components/site-header-title.tsx +++ /dev/null @@ -1,42 +0,0 @@ -"use client"; - -import { useState } from "react"; -import Link from "next/link"; - -interface SiteHeaderTitleProps { - hotelName: string; - logo: string; -} - -export function SiteHeaderTitle({ hotelName, logo }: SiteHeaderTitleProps) { - const [showLogo, setShowLogo] = useState(!!logo); - - return ( - { - if (logo) { - e.preventDefault(); - setShowLogo((prev) => !prev); - } - }} - > - {showLogo && logo ? ( - {hotelName} - ) : ( -

- {hotelName} - Hotel -

- )} - - ); -} diff --git a/src/components/site-header.tsx b/src/components/site-header.tsx index 3c826f3b..daa0ba6b 100644 --- a/src/components/site-header.tsx +++ b/src/components/site-header.tsx @@ -1,8 +1,8 @@ import { getTranslations } from "next-intl/server"; +import Link from "next/link"; import { auth } from "@/lib/auth"; import { prisma } from "@/lib/prisma"; import { siteSettings } from "@/lib/services/site-settings"; -import { SiteHeaderTitle } from "@/components/site-header-title"; export async function SiteHeader() { const t = await getTranslations("header"); @@ -44,7 +44,22 @@ export async function SiteHeader() { {/* Content */}
- + + {logo ? ( + {hotelName + ) : ( +

+ {hotelName} - Hotel +

+ )} + {/* Online badge */}