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:
@@ -0,0 +1,73 @@
|
||||
// Small gold marks before the menu items: astrological glyphs where one fits,
|
||||
// otherwise a line drawing.
|
||||
|
||||
export type NavIconName =
|
||||
| "chart"
|
||||
| "persons"
|
||||
| "compare"
|
||||
| "tarot"
|
||||
| "explore"
|
||||
| "signs"
|
||||
| "famous"
|
||||
| "moon"
|
||||
| "retro"
|
||||
| "packages"
|
||||
| "admin";
|
||||
|
||||
const GLYPHS: Partial<Record<NavIconName, string>> = {
|
||||
chart: "☉",
|
||||
persons: "☽",
|
||||
compare: "☌",
|
||||
explore: "✧",
|
||||
signs: "♈",
|
||||
retro: "☿",
|
||||
};
|
||||
|
||||
export function NavIcon({ name }: { name: NavIconName }) {
|
||||
const glyph = GLYPHS[name];
|
||||
if (glyph) {
|
||||
return (
|
||||
<span className="nav-icon sym" aria-hidden="true">
|
||||
{glyph}
|
||||
{"︎"}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<svg className="nav-icon" viewBox="0 0 24 24" aria-hidden="true">
|
||||
{name === "tarot" && (
|
||||
<>
|
||||
<rect x="5" y="3" width="14" height="18" rx="2.2" />
|
||||
<path
|
||||
d="M12 8l1.2 2.8 2.8 1.2-2.8 1.2L12 16l-1.2-2.8L8 12l2.8-1.2z"
|
||||
className="nav-icon-fill"
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
{name === "famous" && (
|
||||
<path d="M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z" />
|
||||
)}
|
||||
{name === "moon" && (
|
||||
<>
|
||||
<circle cx="12" cy="12" r="8.5" />
|
||||
<path
|
||||
d="M12 3.5a8.5 8.5 0 0 1 0 17a5 8.5 0 0 0 0-17z"
|
||||
className="nav-icon-fill"
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
{name === "packages" && (
|
||||
<>
|
||||
<path d="M12 2.5l8.5 4.7v9.6L12 21.5l-8.5-4.7V7.2z" />
|
||||
<path d="M3.5 7.2L12 12l8.5-4.8M12 12v9.5" />
|
||||
</>
|
||||
)}
|
||||
{name === "admin" && (
|
||||
<>
|
||||
<circle cx="12" cy="12" r="3" />
|
||||
<path d="M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M5.3 18.7l2.1-2.1M16.6 7.4l2.1-2.1" />
|
||||
</>
|
||||
)}
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user