Famous people: admin page, own prompt, one photo, public pages
CI / test (push) Successful in 2m21s
CI / build (push) Skipped
CI / deploy (push) Skipped

- 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
This commit is contained in:
feco
2026-11-22 16:08:35 +00:00
co-authored by Claude Opus 5.5
parent 13e22a9c7d
commit 37cb0abf4b
47 changed files with 3008 additions and 77 deletions
@@ -0,0 +1,86 @@
import type { Metadata } from "next";
import Image from "next/image";
import Link from "next/link";
import { PublicFooter } from "@/components/PublicFooter";
import { PublicHeader } from "@/components/SiteHeader";
import { SIGNS, signName } from "@/lib/astro";
import { loadCelebrities } from "@/lib/celebrities";
import { objectPosition, photoSrc } from "@/lib/celebrityPhoto";
import { getMe } from "@/lib/server";
export const metadata: Metadata = {
title: "Híres emberek horoszkópja",
description:
"Híres emberek születési képlete és részletes asztrológiai portréja: Nap, Hold, Aszcendens és a képlet teljes értelmezése.",
alternates: { canonical: "/hires-emberek" },
};
/** The published famous people. */
export default async function CelebritiesPage() {
const [people, me] = await Promise.all([loadCelebrities(), getMe()]);
return (
<>
{!me && <PublicHeader />}
<main className="page" style={{ maxWidth: 1080 }}>
<div className="page-head">
<span className="eyebrow">Híres emberek</span>
<h1>Híres emberek horoszkópja</h1>
<p className="muted">
Ismert emberek születési képlete és részletes portréja. A szöveg csak a képletből dolgozik, nem az
életrajzukból: azt mutatja meg, mit árul el róluk a születésük pillanatának égboltja.
</p>
</div>
{people.length === 0 ? (
<p className="muted">Hamarosan.</p>
) : (
<ul className="celeb-grid">
{people.map((p) => (
<li key={p.id}>
<Link href={`/hires-emberek/${p.slug}`} className="card celeb-tile">
<span className="celeb-tile-photo">
{p.photo ? (
<Image
src={photoSrc(p.photo)}
alt={p.name}
fill
sizes="(max-width: 640px) 50vw, 240px"
style={{ objectFit: "cover", objectPosition: objectPosition(p.photo) }}
/>
) : (
<span className="celeb-tile-glyph" aria-hidden="true">
{p.highlights.sun ? SIGNS[p.highlights.sun]?.glyph : "✶"}
</span>
)}
</span>
<strong>{p.name}</strong>
{p.subtitle && <span className="hint">{p.subtitle}</span>}
<span className="hint">
{[
p.highlights.sun && `Nap ${signName(p.highlights.sun)}`,
p.highlights.moon && `Hold ${signName(p.highlights.moon)}`,
]
.filter(Boolean)
.join(" · ")}
</span>
</Link>
</li>
))}
</ul>
)}
<div className="card sign-cta" style={{ marginTop: 32 }}>
<p style={{ margin: 0 }}>
Kíváncsi vagy a saját képletedre? Az ingyenes születési horoszkóp a születési adataidból kiszámolja, belépés
nélkül.
</p>
<div className="form-actions">
<Link href="/szuletesi-horoszkop" className="btn btn-primary">
Ingyenes születési horoszkóp
</Link>
</div>
</div>
</main>
<PublicFooter />
</>
);
}