/szuletesi-horoszkop (was /aszcendens-kalkulator) shows the whole natal chart without an account: the wheel, Sun/Moon/Ascendant with links to the sign pages, the positions, houses, aspect grid and aspect list, the same views as the chart pages but without the AI parts. A calculation only, nothing saved, still 30 an hour per address (POST /v1/public/chart). The typed birth data are offered on the profile after sign-up. The visitors' header gets a separate 'Ingyenes' group (birth chart, signs) next to the paid sections, on phones in its own row; the home page links them under the hero buttons and in an 'Ingyenes' band. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
160 lines
5.3 KiB
TypeScript
160 lines
5.3 KiB
TypeScript
import type { Metadata } from "next";
|
|
import Link from "next/link";
|
|
import { notFound } from "next/navigation";
|
|
|
|
import { JsonLd, PublicFooter } from "@/components/PublicFooter";
|
|
import { PublicHeader } from "@/components/SiteHeader";
|
|
import { ZODIAC, ZODIAC_BY_SLUG } from "@/content/zodiac";
|
|
import { SIGNS } from "@/lib/astro";
|
|
import { getMe } from "@/lib/server";
|
|
import { siteUrl } from "@/lib/share";
|
|
|
|
export const dynamicParams = false;
|
|
|
|
export function generateStaticParams() {
|
|
return ZODIAC.map((z) => ({ jegy: z.slug }));
|
|
}
|
|
|
|
export async function generateMetadata({ params }: { params: Promise<{ jegy: string }> }): Promise<Metadata> {
|
|
const z = ZODIAC_BY_SLUG.get((await params).jegy);
|
|
if (!z) return {};
|
|
return {
|
|
title: `${z.name} csillagjegy: ${z.name} Nap, Hold és aszcendens`,
|
|
description: `${z.name} (${z.dates}): milyen ${z.article} napjegyként, holdjegyként és aszcendensként, párkapcsolatban és munkában, és mi nem igaz róla.`,
|
|
alternates: { canonical: `/csillagjegyek/${z.slug}` },
|
|
};
|
|
}
|
|
|
|
/** One sign: its facts, and what it means as Sun, Moon and Ascendant. */
|
|
export default async function SignPage({ params }: { params: Promise<{ jegy: string }> }) {
|
|
const z = ZODIAC_BY_SLUG.get((await params).jegy);
|
|
if (!z) notFound();
|
|
const me = await getMe();
|
|
const base = await siteUrl();
|
|
const index = ZODIAC.indexOf(z);
|
|
const prev = ZODIAC[(index + 11) % 12];
|
|
const next = ZODIAC[(index + 1) % 12];
|
|
const opposite = ZODIAC_BY_SLUG.get(z.opposite)!;
|
|
const glyph = SIGNS[z.id]?.glyph;
|
|
|
|
return (
|
|
<>
|
|
{!me && <PublicHeader current="csillagjegyek" />}
|
|
<main className="page sign-page" style={{ maxWidth: 880 }}>
|
|
<nav className="hint sign-crumbs" aria-label="Morzsamenü">
|
|
<Link href="/csillagjegyek">Csillagjegyek</Link> / {z.name}
|
|
</nav>
|
|
<div className="page-head sign-head">
|
|
<span className="sign-glyph" aria-hidden="true">
|
|
{glyph}
|
|
</span>
|
|
<div>
|
|
<h1>{z.name}</h1>
|
|
<p className="muted">{z.dates}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<table className="sign-facts">
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row">Elem</th>
|
|
<td>{z.element}</td>
|
|
<th scope="row">Minőség</th>
|
|
<td>{z.modality}</td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Uralkodó bolygó</th>
|
|
<td>{z.ruler}</td>
|
|
<th scope="row">Ellentétes jegy</th>
|
|
<td>
|
|
<Link href={`/csillagjegyek/${opposite.slug}`}>{opposite.name}</Link>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<p className="sign-intro">{z.intro}</p>
|
|
<p className="hint">
|
|
A dátumok évről évre egy napot csúszhatnak. Ha a határ közelében születtél, az{" "}
|
|
<Link href="/szuletesi-horoszkop">ingyenes születési horoszkóp</Link> pontosan megmondja, melyik jegy a tiéd.
|
|
</p>
|
|
|
|
<section id="nap" className="sign-section">
|
|
<h2>{z.name} napjegy</h2>
|
|
<p>{z.sun}</p>
|
|
</section>
|
|
<section id="hold" className="sign-section">
|
|
<h2>Hold {z.inSign}</h2>
|
|
<p>{z.moon}</p>
|
|
</section>
|
|
<section id="aszcendens" className="sign-section">
|
|
<h2>{z.name} aszcendens</h2>
|
|
<p>{z.ascendant}</p>
|
|
</section>
|
|
<section className="sign-section">
|
|
<h2>Párkapcsolatban</h2>
|
|
<p>{z.love}</p>
|
|
</section>
|
|
<section className="sign-section">
|
|
<h2>Munkában</h2>
|
|
<p>{z.work}</p>
|
|
</section>
|
|
<section className="sign-section sign-myth">
|
|
<h2>Amit rosszul tudnak róla</h2>
|
|
<p>{z.myth}</p>
|
|
</section>
|
|
|
|
<div className="sign-traits">
|
|
<div>
|
|
<h2>Erősségek</h2>
|
|
<p>{z.strengths}</p>
|
|
</div>
|
|
<div>
|
|
<h2>Árnyoldalak</h2>
|
|
<p>{z.challenges}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<aside className="card sign-cta">
|
|
<p style={{ margin: 0 }}>{z.offer}</p>
|
|
<div className="form-actions">
|
|
<Link href="/szuletesi-horoszkop" className="btn">
|
|
Ingyenes születési horoszkóp
|
|
</Link>
|
|
<Link href={me ? "/keplet" : "/belepes?mod=regisztracio&vissza=/profil"} className="btn btn-primary">
|
|
{me ? "A saját képletem" : "A teljes képletem ingyen"}
|
|
</Link>
|
|
</div>
|
|
</aside>
|
|
|
|
<nav className="sign-pager" aria-label="Többi jegy">
|
|
<Link href={`/csillagjegyek/${prev.slug}`}>← {prev.name}</Link>
|
|
<Link href="/csillagjegyek">Mind a 12 jegy</Link>
|
|
<Link href={`/csillagjegyek/${next.slug}`}>{next.name} →</Link>
|
|
</nav>
|
|
</main>
|
|
<PublicFooter />
|
|
<JsonLd
|
|
data={{
|
|
"@context": "https://schema.org",
|
|
"@type": "BreadcrumbList",
|
|
itemListElement: [
|
|
{
|
|
"@type": "ListItem",
|
|
position: 1,
|
|
name: "Csillagjegyek",
|
|
item: `${base}/csillagjegyek`,
|
|
},
|
|
{
|
|
"@type": "ListItem",
|
|
position: 2,
|
|
name: z.name,
|
|
item: `${base}/csillagjegyek/${z.slug}`,
|
|
},
|
|
],
|
|
}}
|
|
/>
|
|
</>
|
|
);
|
|
}
|