Public sign calculator and the twelve sign pages, SEO basics
/aszcendens-kalkulator: Sun, Moon and Ascendant signs from birth data
without an account. A calculation only (no AI, nothing saved), limited to
30 calculations and 300 place searches an hour per visitor address
(POST /v1/public/signs, GET /v1/public/geo/*). Without a birth time there
is no Ascendant, and signs near a border are marked uncertain.
/csillagjegyek and /csillagjegyek/{jegy}: the twelve signs with facts,
Sun, Moon and Ascendant, love, work, a common misbelief and an offer,
each written on its own. Links to the calculator and sign-up.
SEO: metadataBase and canonical addresses, hreflang between the
Hungarian and English privacy pages, Organization and WebSite JSON-LD on
the home page, FAQPage on the calculator, BreadcrumbList on the sign
pages; the sitemap lists the new pages, the footers link them.
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,159 @@
|
||||
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 />}
|
||||
<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, a{" "}
|
||||
<Link href="/aszcendens-kalkulator">kalkulátor</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="/aszcendens-kalkulator" className="btn">
|
||||
Kiszámolom a holdjegyem és az aszcendensem
|
||||
</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}`,
|
||||
},
|
||||
],
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user