- Menu items with gold astrological marks (☉ ☽ ☌, card, box); the free pages (signs, famous people, moon calendar, retrogrades) in one "Felfedezés" dropdown with a line about each, opened by a click - A starry header band with a gold edge; the current item has a glowing gold underline - "Ma: Hold a ♉ Bikában" with the Moon's phase drawn as it is lit, to the moon calendar (narrower screens: the phase and the glyph) - The ☰ menu grouped: the Moon today, Saját, Felfedezés · ingyenes as tiles, Csomagok with the package; it covers the page now - Laptops (1440px) keep the row on one line Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
56 lines
1.9 KiB
TypeScript
56 lines
1.9 KiB
TypeScript
import type { Metadata } from "next";
|
||
import { Cormorant_Garamond, Inter } from "next/font/google";
|
||
import { Suspense } from "react";
|
||
|
||
import { NightSky } from "@/components/NightSky";
|
||
import { NpsBanner } from "@/components/NpsBanner";
|
||
import { PaymentReturn } from "@/components/PaymentReturn";
|
||
import { SiteFooter } from "@/components/PublicFooter";
|
||
import { SiteHeader } from "@/components/SiteHeader";
|
||
import { ValidationMessages } from "@/components/ValidationMessages";
|
||
import { getMe } from "@/lib/server";
|
||
import { loadSky } from "@/lib/sky";
|
||
import { siteUrl } from "@/lib/share";
|
||
|
||
import "./globals.css";
|
||
|
||
const cormorant = Cormorant_Garamond({
|
||
subsets: ["latin", "latin-ext"],
|
||
weight: ["500", "600"],
|
||
variable: "--font-cormorant",
|
||
});
|
||
const inter = Inter({ subsets: ["latin", "latin-ext"], variable: "--font-inter" });
|
||
|
||
export async function generateMetadata(): Promise<Metadata> {
|
||
return {
|
||
// Relative canonical and alternate addresses resolve against the site's address.
|
||
metadataBase: new URL(await siteUrl()),
|
||
title: { default: "Sorsfonalak", template: "%s · Sorsfonalak" },
|
||
description: "Születési képlet, szinasztria és közösség – egy helyen.",
|
||
};
|
||
}
|
||
|
||
export default async function RootLayout({ children }: { children: React.ReactNode }) {
|
||
const me = await getMe();
|
||
// The Moon today in the header (cached for five minutes).
|
||
const sky = me ? await loadSky() : null;
|
||
return (
|
||
<html lang="hu" className={`${cormorant.variable} ${inter.variable}`}>
|
||
<body>
|
||
<NightSky />
|
||
<ValidationMessages />
|
||
{me && <SiteHeader me={me} sky={sky} />}
|
||
{children}
|
||
{/* At the very bottom, apart from the page content: up top it drew the eye away. */}
|
||
{me?.nps_due && <NpsBanner />}
|
||
<SiteFooter loggedIn={me !== null} />
|
||
{me && (
|
||
<Suspense fallback={null}>
|
||
<PaymentReturn />
|
||
</Suspense>
|
||
)}
|
||
</body>
|
||
</html>
|
||
);
|
||
}
|