New public pages: /holdnaptar (new and full moons, quarters, eclipses and the Moon's sign changes, month by month, with the Moon of today) and /retrograd (the retrograde periods of Mercury to Pluto with their shadows, and which planets are retrograde now), each with a page per year around the current one. The own chart gets a "Ma az égen" card: the Moon's sign, phase and natal house, the tightest transits to the chart in fixed sentences, and the retrograde planets. No AI, nothing stored. The events come from astro-engine (sampling and bisection, checked against swetest and the 2026 eclipses) through horoscope-api GET /v1/sky and /v1/sky/events; the backend serves them at /v1/public/sky… and keeps them in memory (the sky now for five minutes, a year's events for good). Links in the mobile menu, the footer, the sitemap and the free tools on the home page; the desktop header is unchanged (it is full at 1280 px). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
27 lines
1.2 KiB
TypeScript
27 lines
1.2 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { notFound, permanentRedirect } from "next/navigation";
|
|
|
|
import { getMe } from "@/lib/server";
|
|
import { calendarYear, currentYear, loadSkyEvents } from "@/lib/sky";
|
|
|
|
import { RetrogradeCalendar } from "../RetrogradeCalendar";
|
|
|
|
export async function generateMetadata({ params }: { params: Promise<{ ev: string }> }): Promise<Metadata> {
|
|
const year = calendarYear((await params).ev);
|
|
if (!year) return {};
|
|
return {
|
|
title: `Merkúr retrográd ${year}: mikor retrográd a Merkúr és a többi bolygó?`,
|
|
description: `Merkúr retrográd ${year}: a retrográd időszakok pontos kezdete és vége magyar idő szerint, árnyékszakaszokkal, a Vénusztól a Plútóig.`,
|
|
alternates: { canonical: `/retrograd/${year}` },
|
|
};
|
|
}
|
|
|
|
/** The retrograde periods of another year (the current one is `/retrograd`). */
|
|
export default async function RetrogradeYearPage({ params }: { params: Promise<{ ev: string }> }) {
|
|
const year = calendarYear((await params).ev);
|
|
if (!year) notFound();
|
|
if (year === currentYear()) permanentRedirect("/retrograd");
|
|
const [me, events] = await Promise.all([getMe(), loadSkyEvents(year)]);
|
|
return <RetrogradeCalendar year={year} events={events} sky={null} me={me} />;
|
|
}
|