App header: gold marks, a "Felfedezés" dropdown, the Moon today
- 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
This commit is contained in:
@@ -9,6 +9,7 @@ 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";
|
||||
@@ -31,12 +32,14 @@ export async function generateMetadata(): Promise<Metadata> {
|
||||
|
||||
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} />}
|
||||
{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 />}
|
||||
|
||||
Reference in New Issue
Block a user