Files
EpicNext-Cms/src/app/(site)/logo/page.tsx
T
SimoandCursor e00e9ca2dc
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 2m6s
refactor: centralize hotel name fallback via FALLBACK_HOTEL_NAME
Route all user-facing Atom hotel defaults through resolveHotelName (settings then HOTEL_NAME env then brand constant). Exclude Playwright e2e from tsconfig until deps are installed.

Co-authored-by: Cursor <[email protected]>
2026-07-22 18:45:59 +02:00

34 lines
958 B
TypeScript

import LogoGenerator from "@/components/public/logo-generator";
import { ContentCard } from "@/components/public/ui";
import { resolveHotelName } from "@/lib/hotel-name";
export const metadata = { title: "Logo generator" };
/**
* Public logo generator (AtomCMS logo-generator.blade). Server wrapper that
* renders the atom-styled ContentCard header and hands off to the fully
* client-side <LogoGenerator>, which does all styling, live preview, and PNG
* export in the browser (no server data, no DB).
*/
export default async function LogoPage() {
const initialText = await resolveHotelName();
return (
<main
style={{
display: "grid",
gap: "1.5rem",
maxWidth: 920,
margin: "0 auto",
}}
>
<ContentCard
icon="🎨"
title="Logo generator"
subtitle="Design a logo for your hotel — pick a font, colours and size, then download it as a PNG."
/>
<LogoGenerator initialText={initialText} />
</main>
);
}