Files
sorsfonalak/services/frontend/src/app/admin/hires-emberek/[id]/page.tsx
T
fecoandClaude Opus 5.5 37cb0abf4b
CI / test (push) Successful in 2m21s
CI / build (push) Skipped
CI / deploy (push) Skipped
Famous people: admin page, own prompt, one photo, public pages
- 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
2026-11-22 16:08:35 +00:00

24 lines
725 B
TypeScript

import type { Metadata } from "next";
import { notFound } from "next/navigation";
import { AdminNav } from "@/components/AdminNav";
import { requireMe } from "@/lib/server";
import { CelebrityEditor } from "./CelebrityEditor";
export const metadata: Metadata = { title: "Híres ember" };
type Props = { params: Promise<{ id: string }> };
export default async function AdminCelebrityPage({ params }: Props) {
const { id } = await params;
const me = await requireMe(`/admin/hires-emberek/${id}`);
if (!me.user.roles.includes("admin")) notFound();
return (
<main className="page" style={{ maxWidth: 1180 }}>
<AdminNav current="/admin/hires-emberek" />
<CelebrityEditor id={id} />
</main>
);
}