- Admin "Híres emberek": birth data, one photo (S3: DigitalOcean Spaces in production, RustFS in development), a face point that every crop keeps in view, publishing, and a detailed portrait written with its own `celebrity` prompt (third person, by name, from the chart alone). - The photo is stored once (upright JPEG, at most 2000 px, no metadata); next/image makes the sizes from it, so Cloudflare can cache those. - Public list and pages (/hires-emberek), in the sitemap, with a share image showing the face and the chart. - Share images: the wheel's glyphs and numbers are drawn with the card's fonts (inside the SVG image they came out as boxes, on every card). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
25 lines
775 B
TypeScript
25 lines
775 B
TypeScript
import Link from "next/link";
|
|
|
|
const PAGES = [
|
|
{ href: "/admin", label: "Felhasználók" },
|
|
{ href: "/admin/meghivok", label: "Meghívók" },
|
|
{ href: "/admin/promokodok", label: "Promókódok" },
|
|
{ href: "/admin/hires-emberek", label: "Híres emberek" },
|
|
{ href: "/admin/promptok", label: "Promptok" },
|
|
{ href: "/admin/modellek", label: "Modellek" },
|
|
{ href: "/admin/hibak", label: "Hibanapló" },
|
|
];
|
|
|
|
/** Switches between the admin pages. */
|
|
export function AdminNav({ current }: { current: string }) {
|
|
return (
|
|
<nav className="admin-nav" aria-label="Admin oldalak">
|
|
{PAGES.map((p) => (
|
|
<Link key={p.href} href={p.href} aria-current={p.href === current ? "page" : undefined}>
|
|
{p.label}
|
|
</Link>
|
|
))}
|
|
</nav>
|
|
);
|
|
}
|