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:
@@ -1675,3 +1675,76 @@ span.tarot-fan-card { cursor: default; }
|
||||
.nps-score { min-width: 34px; }
|
||||
}
|
||||
.contact-card p { margin: 0; }
|
||||
|
||||
/* The app header (logged in): a starry band with a gold edge, menu items with
|
||||
gold marks, the free pages in one dropdown, and the Moon today. */
|
||||
.app-header {
|
||||
background:
|
||||
radial-gradient(1px 1px at 22% 28%, rgba(236, 230, 216, 0.6), transparent 60%),
|
||||
radial-gradient(1px 1px at 47% 72%, rgba(236, 230, 216, 0.4), transparent 60%),
|
||||
radial-gradient(1.5px 1.5px at 66% 20%, rgba(217, 180, 106, 0.7), transparent 60%),
|
||||
radial-gradient(1px 1px at 83% 70%, rgba(236, 230, 216, 0.45), transparent 60%),
|
||||
radial-gradient(1px 1px at 95% 30%, rgba(236, 230, 216, 0.5), transparent 60%),
|
||||
rgba(15, 21, 40, 0.95);
|
||||
border-bottom-color: transparent;
|
||||
}
|
||||
.app-header::after {
|
||||
content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
|
||||
background: linear-gradient(90deg, rgba(217, 180, 106, 0), rgba(217, 180, 106, 0.6) 30%, rgba(217, 180, 106, 0.6) 70%, rgba(217, 180, 106, 0));
|
||||
}
|
||||
.nav-icon { width: 17px; height: 17px; flex: none; color: rgba(217, 180, 106, 0.8); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
|
||||
.nav-icon.sym { width: auto; height: auto; font-size: 17px; line-height: 1; text-align: center; min-width: 17px; }
|
||||
.nav-icon .nav-icon-fill { fill: currentColor; stroke: none; }
|
||||
.app-nav { gap: 2px; align-items: center; }
|
||||
.app-nav > a, .nav-group-button {
|
||||
display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 11px;
|
||||
color: var(--ink-2); text-decoration: none; border-radius: 8px 8px 0 0; border-bottom: 2px solid transparent; font-size: 15px;
|
||||
}
|
||||
.app-nav > a:hover, .nav-group-button:hover { color: var(--ink); background: rgba(217, 180, 106, 0.06); }
|
||||
.app-nav > a[aria-current="page"], .nav-group-button.is-active {
|
||||
color: var(--ink); background: none; border-bottom-color: var(--gold); box-shadow: 0 7px 12px -9px rgba(217, 180, 106, 0.9);
|
||||
}
|
||||
.app-nav > a[aria-current="page"] .nav-icon, .nav-group-button.is-active .nav-icon { color: var(--gold); }
|
||||
.nav-group { position: relative; }
|
||||
.nav-group-button { background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit; cursor: pointer; }
|
||||
.nav-group-button[aria-expanded="true"] { color: var(--gold); background: rgba(217, 180, 106, 0.1); border-radius: 8px; }
|
||||
.nav-group-chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
||||
.nav-group-button[aria-expanded="true"] .nav-group-chevron { transform: rotate(180deg); }
|
||||
.nav-dropdown {
|
||||
position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: 340px; padding: 8px;
|
||||
display: flex; flex-direction: column; gap: 2px; background: var(--panel); border: 1px solid var(--line-2);
|
||||
border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
.nav-dropdown-title { padding: 6px 10px 8px; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); }
|
||||
.nav-dropdown-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
|
||||
.nav-dropdown-item:hover, .nav-dropdown-item[aria-current="page"] { background: rgba(255, 255, 255, 0.04); color: var(--gold); }
|
||||
.nav-dropdown-item .nav-icon { margin-top: 2px; width: 20px; height: 20px; font-size: 19px; color: var(--gold); }
|
||||
.nav-dropdown-text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
|
||||
.nav-dropdown-text .hint { font-size: 13px; }
|
||||
.moon-chip {
|
||||
display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 8px; border-radius: 999px;
|
||||
background: rgba(217, 180, 106, 0.08); color: var(--ink); text-decoration: none; font-size: 13px; white-space: nowrap;
|
||||
}
|
||||
.moon-chip:hover { background: rgba(217, 180, 106, 0.14); color: var(--ink); }
|
||||
.moon-chip-glyph { color: var(--gold); font-size: 15px; }
|
||||
.moon-phase-icon { width: 20px; height: 20px; flex: none; }
|
||||
.moon-phase-icon .moon-dark { fill: #1a2238; stroke: var(--gold); stroke-width: 1; }
|
||||
.moon-phase-icon .moon-lit { fill: var(--gold); }
|
||||
@media (max-width: 1760px) { .app-header .who .moon-chip-text { display: none; } .app-header .who .moon-chip { padding: 0 10px 0 8px; } }
|
||||
/* The grouped ☰ menu of the app. */
|
||||
.mobile-menu-panel > .moon-chip { align-self: stretch; min-height: 48px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
|
||||
.mobile-menu-list { display: flex; flex-direction: column; }
|
||||
.mobile-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
|
||||
.mobile-menu-grid a { border: 1px solid var(--line); font-size: 15px; }
|
||||
.mobile-menu-panel a { gap: 12px; }
|
||||
.mobile-menu-panel a .nav-icon { color: var(--gold); }
|
||||
.mobile-menu-label { flex: 1; min-width: 0; }
|
||||
.mobile-menu-note { font-size: 13px; color: var(--gold); white-space: nowrap; }
|
||||
/* Laptops (1440px): the items closer, so the row still fits next to the account. */
|
||||
@media (max-width: 1520px) {
|
||||
.app-nav > a, .nav-group-button { padding: 10px 7px; gap: 6px; font-size: 14.5px; }
|
||||
.app-header { gap: 16px; }
|
||||
.app-header .who { gap: 8px; }
|
||||
}
|
||||
/* The ☰ panel covers the page fully (the header's blur showed it through). */
|
||||
.mobile-menu-panel { background: #0f1528; }
|
||||
|
||||
@@ -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