Moon and retrograde calendars, "today in the sky" on the own chart
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
This commit is contained in:
@@ -153,6 +153,20 @@ export function Landing({ inviteOnly, loggedIn = false }: { inviteOnly: boolean;
|
||||
</span>
|
||||
<span className="lp-free-go">Megnézem →</span>
|
||||
</Link>
|
||||
<Link href="/holdnaptar" className="card lp-free-card">
|
||||
<strong>Holdnaptár</strong>
|
||||
<span className="muted">
|
||||
Újhold, telihold és fogyatkozások pontos időponttal, és hogy ma melyik csillagjegyben jár a Hold.
|
||||
</span>
|
||||
<span className="lp-free-go">Megnézem →</span>
|
||||
</Link>
|
||||
<Link href="/retrograd" className="card lp-free-card">
|
||||
<strong>Retrográd bolygók</strong>
|
||||
<span className="muted">
|
||||
Mikor retrográd a Merkúr és a többi bolygó: kezdet, vég és árnyékszakasz, magyar idő szerint.
|
||||
</span>
|
||||
<span className="lp-free-go">Megnézem →</span>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -1422,3 +1422,92 @@ span.tarot-fan-card { cursor: default; }
|
||||
.site-header { gap: 8px; padding-left: 12px; padding-right: 12px; }
|
||||
.logo { font-size: 22px; }
|
||||
}
|
||||
|
||||
/* The sky: "today in the sky" on the own chart, the moon and retrograde calendars. */
|
||||
.sky-today-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
|
||||
.sky-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
|
||||
.sky-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
|
||||
.sky-col p { margin: 0; line-height: 1.55; }
|
||||
.sky-lead { display: flex; align-items: center; gap: 10px; font-size: 18px; }
|
||||
.sky-glyph { font-family: var(--font-symbols); font-size: 26px; color: var(--gold); line-height: 1; }
|
||||
.sky-glyph-sm { font-family: var(--font-symbols); color: var(--gold); }
|
||||
.sky-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
|
||||
.sky-list li {
|
||||
display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 0;
|
||||
border-bottom: 1px solid var(--line); font-size: 14px;
|
||||
}
|
||||
.sky-list li:last-child { border-bottom: 0; }
|
||||
.sky-list .num { color: var(--ink-2); font-variant-numeric: tabular-nums; }
|
||||
.sky-transits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
|
||||
.sky-transits li { display: flex; flex-direction: column; gap: 3px; line-height: 1.5; }
|
||||
.sky-transits strong { font-weight: 600; }
|
||||
.sky-more { margin-top: auto; font-size: 14px; }
|
||||
|
||||
.sky-page h2 { font-size: 26px; }
|
||||
.sky-now { flex-direction: row; align-items: flex-start; gap: 20px; border-color: rgba(217, 180, 106, 0.35); }
|
||||
.sky-now-glyph { font-family: var(--font-symbols); font-size: 44px; color: var(--gold); line-height: 1; flex: none; }
|
||||
.sky-now-body { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
|
||||
.sky-now-body p { margin: 0; line-height: 1.55; }
|
||||
.year-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
|
||||
.year-nav > :first-child { justify-self: start; }
|
||||
.year-nav > :last-child { justify-self: end; }
|
||||
.year-nav strong { font-family: var(--font-display); font-size: 26px; }
|
||||
.sky-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
|
||||
.sky-events li {
|
||||
display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline;
|
||||
padding: 10px 0; border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.sky-events li:last-child { border-bottom: 0; }
|
||||
.sky-event-glyph, .moon-phase-glyph { font-family: var(--font-symbols); color: var(--gold); font-size: 20px; line-height: 1; }
|
||||
.sky-events .num { color: var(--ink-2); font-variant-numeric: tabular-nums; }
|
||||
.moon-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
|
||||
.moon-month { gap: 12px; }
|
||||
.moon-month h2 { font-size: 24px; }
|
||||
.moon-phases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
|
||||
.moon-phases li {
|
||||
display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "g n d" ". p p";
|
||||
gap: 2px 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line);
|
||||
}
|
||||
.moon-phases li:last-child { border-bottom: 0; }
|
||||
.moon-phases .moon-phase-glyph { grid-area: g; }
|
||||
.moon-phase-name { grid-area: n; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
|
||||
.moon-phases .num { grid-area: d; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
|
||||
.moon-phases .hint { grid-area: p; }
|
||||
.moon-phases li.is-eclipse .moon-phase-name { color: var(--gold); }
|
||||
.moon-ingresses summary {
|
||||
cursor: pointer; color: var(--muted); font-size: 14px; min-height: 32px; display: flex; align-items: center; gap: 8px;
|
||||
list-style: none;
|
||||
}
|
||||
.moon-ingresses summary::-webkit-details-marker { display: none; }
|
||||
.moon-ingresses summary::before { content: "▸"; color: var(--gold); transition: transform 0.15s; }
|
||||
.moon-ingresses[open] summary::before { transform: rotate(90deg); }
|
||||
.moon-ingresses summary:hover { color: var(--ink); }
|
||||
.moon-ingresses ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
|
||||
.moon-ingresses li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
|
||||
.moon-ingresses .num { color: var(--ink-2); font-variant-numeric: tabular-nums; }
|
||||
.sky-prose p { line-height: 1.7; color: var(--ink-2); margin: 0; }
|
||||
.sky-prose h2 { margin-top: 8px; }
|
||||
.sky-defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin: 0; }
|
||||
.sky-defs > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
|
||||
.sky-defs dt { font-weight: 600; margin-bottom: 4px; }
|
||||
.sky-defs dt span { font-family: var(--font-symbols); color: var(--gold); }
|
||||
.sky-defs dd { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: 14px; }
|
||||
.retro-planet { gap: 12px; }
|
||||
.retro-planet-head { display: flex; align-items: center; gap: 12px; }
|
||||
.retro-glyph { font-family: var(--font-symbols); font-size: 28px; color: var(--gold); line-height: 1; }
|
||||
.retro-planet > p { margin: 0; line-height: 1.6; }
|
||||
.retro-periods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
|
||||
.retro-periods li {
|
||||
display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line);
|
||||
border-radius: var(--radius); background: var(--panel-2);
|
||||
}
|
||||
.retro-periods li.is-active { border-color: var(--gold); }
|
||||
.retro-dates { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
|
||||
@media (max-width: 640px) {
|
||||
.sky-now { flex-direction: column; gap: 10px; }
|
||||
.sky-now-glyph { font-size: 36px; }
|
||||
.moon-phases li { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "g n" ". d" ". p"; }
|
||||
.moon-phases .num { text-align: left; }
|
||||
.sky-events li { grid-template-columns: 24px minmax(0, 1fr); }
|
||||
.sky-events li .num { grid-column: 2; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,227 @@
|
||||
import Link from "next/link";
|
||||
|
||||
import { PublicFooter } from "@/components/PublicFooter";
|
||||
import { PublicHeader } from "@/components/SiteHeader";
|
||||
import { YearNav } from "@/components/YearNav";
|
||||
import { MOON_PHASES, SIGNS } from "@/lib/astro";
|
||||
import { YEARS_AROUND, currentYear } from "@/lib/sky";
|
||||
import {
|
||||
LUNATION_GLYPHS,
|
||||
LUNATION_NAMES,
|
||||
MONTH_NAMES,
|
||||
MOON_IN_SIGN,
|
||||
PHASE_MEANING,
|
||||
SIGN_IN,
|
||||
SIGN_INTO,
|
||||
eclipseName,
|
||||
localDate,
|
||||
positionText,
|
||||
withArticle,
|
||||
} from "@/lib/skyText";
|
||||
import type { Me, SkyEvents, SkyIngress, SkyNow } from "@/lib/types";
|
||||
|
||||
/**
|
||||
* The moon calendar of a year: the main phases with the eclipses, month by
|
||||
* month, and when the Moon changes sign. With `sky` (the current year) the
|
||||
* Moon of today comes first.
|
||||
*/
|
||||
export function MoonCalendar({ year, events, sky, me }: { year: number; events: SkyEvents | null; sky: SkyNow | null; me: Me | null }) {
|
||||
const current = currentYear();
|
||||
const eclipses = events?.lunations.filter((l) => l.eclipse) ?? [];
|
||||
return (
|
||||
<>
|
||||
{!me && <PublicHeader current="holdnaptar" />}
|
||||
<main className="page sky-page" style={{ maxWidth: 1080 }}>
|
||||
<div className="page-head">
|
||||
<span className="eyebrow">Holdnaptár</span>
|
||||
<h1>Holdnaptár {year}</h1>
|
||||
<p className="muted">
|
||||
Újhold, telihold és a negyedek pontos időpontja magyar idő szerint, a nap- és holdfogyatkozásokkal, és hogy
|
||||
mikor melyik csillagjegyben jár a Hold.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{sky && <MoonToday sky={sky} />}
|
||||
|
||||
<YearNav base="/holdnaptar" year={year} current={current} around={YEARS_AROUND} />
|
||||
|
||||
{!events ? (
|
||||
<p className="msg msg-error" role="alert">
|
||||
A naptár most nem tölthető be. Próbáld újra pár perc múlva.
|
||||
</p>
|
||||
) : (
|
||||
<>
|
||||
{eclipses.length > 0 && (
|
||||
<section className="card" aria-labelledby="eclipses-title">
|
||||
<h2 id="eclipses-title">Fogyatkozások {year}</h2>
|
||||
<ul className="sky-events">
|
||||
{eclipses.map((l) => (
|
||||
<li key={l.moment_utc}>
|
||||
<span className="sky-event-glyph" aria-hidden="true">
|
||||
{LUNATION_GLYPHS[l.kind]}
|
||||
</span>
|
||||
<span>
|
||||
<strong>{capitalize(eclipseName(l.eclipse!))}</strong>
|
||||
<span className="hint">
|
||||
{" "}
|
||||
{withArticle(SIGN_IN[l.position.sign] ?? l.position.sign)}
|
||||
</span>
|
||||
</span>
|
||||
<span className="num">{localDate(l.local_time, { weekday: true, time: true })}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<p className="hint">
|
||||
Az időpont a fogyatkozás legnagyobb fázisa. Hogy Magyarországról is látszik-e, az a fogyatkozás útvonalától
|
||||
függ.
|
||||
</p>
|
||||
</section>
|
||||
)}
|
||||
|
||||
<div className="moon-months">
|
||||
{MONTH_NAMES.map((name, i) => (
|
||||
<MoonMonth key={name} name={name} month={i + 1} events={events} />
|
||||
))}
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
|
||||
<section className="card sky-prose" aria-labelledby="phases-title">
|
||||
<h2 id="phases-title">Mit jelentenek a holdfázisok?</h2>
|
||||
<p>
|
||||
A Hold nagyjából 29,5 nap alatt kerüli meg a Földet a Naphoz képest. Újholdkor a Nap és a Hold egy irányban
|
||||
áll, ezért a Holdból semmi sem látszik; teliholdkor szemben állnak, és a teljes korong világít. A két negyed
|
||||
ezek között félúton van.
|
||||
</p>
|
||||
<dl className="sky-defs">
|
||||
{(["new_moon", "first_quarter", "full_moon", "last_quarter"] as const).map((k) => (
|
||||
<div key={k}>
|
||||
<dt>
|
||||
<span aria-hidden="true">{LUNATION_GLYPHS[k]}</span> {LUNATION_NAMES[k]}
|
||||
</dt>
|
||||
<dd>{PHASE_MEANING[k]}</dd>
|
||||
</div>
|
||||
))}
|
||||
</dl>
|
||||
<h2>Mi az a holdjegy?</h2>
|
||||
<p>
|
||||
A Hold két-két és fél naponta lép át a következő csillagjegybe, így egy hónap alatt mind a tizenkettőt bejárja.
|
||||
Az asztrológiai hagyomány szerint a napok hangulatát a Hold aktuális jegye színezi. A születéskori holdjegyed
|
||||
pedig az érzelmi alkatodról mesél.
|
||||
</p>
|
||||
<h2>Milyen idő szerint?</h2>
|
||||
<p>
|
||||
Minden időpont magyar idő szerint értendő, télen közép-európai (UTC+1), nyáron nyári időszámítással (UTC+2). A
|
||||
számítás svájci efemerisszel készül, percre pontos.
|
||||
</p>
|
||||
<p>
|
||||
A bolygók látszólagos hátráló mozgásáról a <Link href="/retrograd">retrográd naptárban</Link> olvashatsz.
|
||||
</p>
|
||||
</section>
|
||||
</main>
|
||||
<PublicFooter />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
/** The Moon now: sign, phase, the next sign change and the next new and full moon. */
|
||||
function MoonToday({ sky }: { sky: SkyNow }) {
|
||||
const moon = sky.moon;
|
||||
const sign = moon.position.sign;
|
||||
const next = moon.next_phases.filter((p) => p.kind === "new_moon" || p.kind === "full_moon");
|
||||
return (
|
||||
<section className="card sky-now" aria-labelledby="moon-today-title">
|
||||
<span className="sky-now-glyph" aria-hidden="true">
|
||||
{SIGNS[sign]?.glyph}
|
||||
</span>
|
||||
<div className="sky-now-body">
|
||||
<h2 id="moon-today-title">Ma a Hold {withArticle(SIGN_IN[sign] ?? sign)} jár</h2>
|
||||
<p className="muted">
|
||||
{MOON_PHASES[moon.phase] ?? moon.phase}, {Math.round(moon.illumination * 100)}% megvilágítás. {MOON_IN_SIGN[sign]}
|
||||
</p>
|
||||
<ul className="sky-list">
|
||||
{moon.sign_change && (
|
||||
<li>
|
||||
<span>Jegyváltás</span>
|
||||
<span className="num">
|
||||
{localDate(moon.sign_change.local_time, { short: true, time: true })}:{" "}
|
||||
{withArticle(SIGN_INTO[moon.sign_change.sign] ?? moon.sign_change.sign)}
|
||||
</span>
|
||||
</li>
|
||||
)}
|
||||
{next.map((p) => (
|
||||
<li key={p.moment_utc}>
|
||||
<span>{LUNATION_NAMES[p.kind]}</span>
|
||||
<span className="num">
|
||||
{localDate(p.local_time, { short: true, time: true })}, {SIGNS[p.position.sign]?.hu}
|
||||
{p.eclipse ? ` (${eclipseName(p.eclipse)})` : ""}
|
||||
</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
/** One month: the main phases, then (folded) the Moon's sign changes. */
|
||||
function MoonMonth({ name, month, events }: { name: string; month: number; events: SkyEvents }) {
|
||||
const prefix = `${events.year}-${String(month).padStart(2, "0")}`;
|
||||
const phases = events.lunations.filter((l) => l.local_time.startsWith(prefix));
|
||||
const ingresses = events.moon_ingresses.filter((m) => m.local_time.startsWith(prefix));
|
||||
const start = signAtStart(events.moon_ingresses, prefix);
|
||||
return (
|
||||
<section className="card moon-month" aria-labelledby={`month-${month}`}>
|
||||
<h2 id={`month-${month}`}>{name}</h2>
|
||||
<ul className="moon-phases">
|
||||
{phases.map((l) => (
|
||||
<li key={l.moment_utc} className={l.eclipse ? "is-eclipse" : undefined}>
|
||||
<span className="moon-phase-glyph" aria-hidden="true">
|
||||
{LUNATION_GLYPHS[l.kind]}
|
||||
</span>
|
||||
<span className="moon-phase-name">
|
||||
{LUNATION_NAMES[l.kind]}
|
||||
{l.eclipse && <span className="badge badge-gold">{eclipseName(l.eclipse)}</span>}
|
||||
</span>
|
||||
<span className="num">{localDate(l.local_time, { weekday: true, time: true })}</span>
|
||||
<span className="hint">{positionText(l.position)}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<details className="moon-ingresses">
|
||||
<summary>A Hold jegyváltásai</summary>
|
||||
<ul>
|
||||
{start && (
|
||||
<li>
|
||||
<span className="num">{localDate(`${prefix}-01`, { short: true })}</span>
|
||||
<span>{withArticle(SIGN_IN[start] ?? start)} jár</span>
|
||||
</li>
|
||||
)}
|
||||
{ingresses.map((m) => (
|
||||
<li key={m.moment_utc}>
|
||||
<span className="num">{localDate(m.local_time, { short: true, time: true })}</span>
|
||||
<span>
|
||||
{SIGNS[m.sign]?.glyph} {withArticle(SIGN_INTO[m.sign] ?? m.sign)} lép
|
||||
</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</details>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
/** The Moon's sign at the start of a month: the last sign entered before it. */
|
||||
function signAtStart(all: SkyIngress[], prefix: string): string | null {
|
||||
const before = all.filter((m) => m.local_time < prefix);
|
||||
if (before.length > 0) return before[before.length - 1].sign;
|
||||
// January: one sign before the first one entered.
|
||||
const first = all[0];
|
||||
if (!first) return null;
|
||||
const order = Object.keys(SIGNS);
|
||||
return order[(order.indexOf(first.sign) + 11) % 12];
|
||||
}
|
||||
|
||||
function capitalize(text: string): string {
|
||||
return text.charAt(0).toUpperCase() + text.slice(1);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
import type { Metadata } from "next";
|
||||
import { notFound, permanentRedirect } from "next/navigation";
|
||||
|
||||
import { getMe } from "@/lib/server";
|
||||
import { calendarYear, currentYear, loadSkyEvents } from "@/lib/sky";
|
||||
|
||||
import { MoonCalendar } from "../MoonCalendar";
|
||||
|
||||
export async function generateMetadata({ params }: { params: Promise<{ ev: string }> }): Promise<Metadata> {
|
||||
const year = calendarYear((await params).ev);
|
||||
if (!year) return {};
|
||||
return {
|
||||
title: `Holdnaptár ${year}: újhold, telihold, fogyatkozások pontos időponttal`,
|
||||
description: `Holdnaptár ${year}: mikor van újhold és telihold, a negyedek és a nap- és holdfogyatkozások magyar idő szerint, és mikor melyik jegyben jár a Hold.`,
|
||||
alternates: { canonical: `/holdnaptar/${year}` },
|
||||
};
|
||||
}
|
||||
|
||||
/** The moon calendar of another year (the current one is `/holdnaptar`). */
|
||||
export default async function MoonCalendarYearPage({ params }: { params: Promise<{ ev: string }> }) {
|
||||
const year = calendarYear((await params).ev);
|
||||
if (!year) notFound();
|
||||
if (year === currentYear()) permanentRedirect("/holdnaptar");
|
||||
const [me, events] = await Promise.all([getMe(), loadSkyEvents(year)]);
|
||||
return <MoonCalendar year={year} events={events} sky={null} me={me} />;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import type { Metadata } from "next";
|
||||
|
||||
import { getMe } from "@/lib/server";
|
||||
import { currentYear, loadSky, loadSkyEvents } from "@/lib/sky";
|
||||
|
||||
import { MoonCalendar } from "./MoonCalendar";
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const year = currentYear();
|
||||
return {
|
||||
title: `Holdnaptár ${year}: újhold, telihold, fogyatkozások pontos időponttal`,
|
||||
description: `Holdnaptár ${year}: mikor van újhold és telihold, a negyedek, a nap- és holdfogyatkozások magyar idő szerint, és melyik csillagjegyben jár ma a Hold.`,
|
||||
alternates: { canonical: "/holdnaptar" },
|
||||
};
|
||||
}
|
||||
|
||||
/** The moon calendar of the current year, with the Moon of today. */
|
||||
export default async function MoonCalendarPage() {
|
||||
const year = currentYear();
|
||||
const [me, events, sky] = await Promise.all([getMe(), loadSkyEvents(year), loadSky()]);
|
||||
return <MoonCalendar year={year} events={events} sky={sky} me={me} />;
|
||||
}
|
||||
@@ -8,10 +8,12 @@ import { ChartSwitcher } from "@/components/ChartSwitcher";
|
||||
import { DetailedAnalysis } from "@/components/DetailedAnalysis";
|
||||
import { ChartWheel, WheelLegend } from "@/components/ChartWheel";
|
||||
import { CompareButton } from "@/components/CompareButton";
|
||||
import { SkyToday } from "@/components/SkyToday";
|
||||
import { Tabs } from "@/components/Tabs";
|
||||
import { ASPECTS, ELEMENTS, MODALITIES, MOON_PHASES, countryName, formatBirthDate, pointName } from "@/lib/astro";
|
||||
import { payMethod } from "@/lib/payments";
|
||||
import { backendGet, requireMe } from "@/lib/server";
|
||||
import { loadSky } from "@/lib/sky";
|
||||
import type { Analysis, Chart, ChartListItem, PublicConfig } from "@/lib/types";
|
||||
|
||||
export const metadata: Metadata = { title: "Képlet" };
|
||||
@@ -25,11 +27,12 @@ export default async function ChartPage({ params }: { params: Promise<{ id: stri
|
||||
const { id } = await params;
|
||||
const me = await requireMe(`/kepletek/${id}`);
|
||||
if (!UUID.test(id)) notFound();
|
||||
const [chart, analyses, config, chartList] = await Promise.all([
|
||||
const [chart, analyses, config, chartList, sky] = await Promise.all([
|
||||
backendGet<Chart>(`/v1/charts/${id}`),
|
||||
backendGet<{ analyses: Analysis[] }>(`/v1/charts/${id}/analyses`),
|
||||
backendGet<PublicConfig>("/v1/config"),
|
||||
backendGet<{ charts: ChartListItem[] }>("/v1/charts"),
|
||||
loadSky(),
|
||||
]);
|
||||
const charts = chartList?.charts ?? [];
|
||||
const persons = charts.filter((c) => c.kind === "person");
|
||||
@@ -169,6 +172,8 @@ export default async function ChartPage({ params }: { params: Promise<{ id: stri
|
||||
)}
|
||||
</section>
|
||||
|
||||
{chart.is_primary && sky && <SkyToday sky={sky} chart={result} timeKnown={timeKnown} />}
|
||||
|
||||
<section className="card chart-tabs" aria-label="Elemzés és táblázatok">
|
||||
<Tabs
|
||||
label="Képlet részletei"
|
||||
|
||||
@@ -0,0 +1,190 @@
|
||||
import Link from "next/link";
|
||||
|
||||
import { PublicFooter } from "@/components/PublicFooter";
|
||||
import { PublicHeader } from "@/components/SiteHeader";
|
||||
import { YearNav } from "@/components/YearNav";
|
||||
import { POINTS } from "@/lib/astro";
|
||||
import { YEARS_AROUND, currentYear } from "@/lib/sky";
|
||||
import { RETROGRADE_MEANING, SIGN_IN, localDate, positionText, until, withArticle, yearIn } from "@/lib/skyText";
|
||||
import type { Me, SkyEvents, SkyNow, SkyRetrograde } from "@/lib/types";
|
||||
|
||||
const PLANETS = ["mercury", "venus", "mars", "jupiter", "saturn", "uranus", "neptune", "pluto"];
|
||||
|
||||
/** "a Merkúr", "az Uránusz". */
|
||||
function planet(id: string): string {
|
||||
return withArticle(POINTS[id]?.hu ?? id);
|
||||
}
|
||||
|
||||
/**
|
||||
* The retrograde periods of a year, Mercury first, with the shadows; with
|
||||
* `sky` (the current year) which planets are retrograde now.
|
||||
*/
|
||||
export function RetrogradeCalendar({
|
||||
year,
|
||||
events,
|
||||
sky,
|
||||
me,
|
||||
}: {
|
||||
year: number;
|
||||
events: SkyEvents | null;
|
||||
sky: SkyNow | null;
|
||||
me: Me | null;
|
||||
}) {
|
||||
const current = currentYear();
|
||||
const now = sky?.local_time ?? null;
|
||||
return (
|
||||
<>
|
||||
{!me && <PublicHeader current="retrograd" />}
|
||||
<main className="page sky-page" style={{ maxWidth: 1080 }}>
|
||||
<div className="page-head">
|
||||
<span className="eyebrow">Retrográd bolygók</span>
|
||||
<h1>Merkúr retrográd {year} és a többi retrográd bolygó</h1>
|
||||
<p className="muted">
|
||||
Mikor retrográd a Merkúr, a Vénusz, a Mars és a lassú bolygók {yearIn(year)}: pontos kezdés és vég magyar idő
|
||||
szerint, a jegyekkel és az árnyékszakaszokkal.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{sky && <RetroNow sky={sky} />}
|
||||
|
||||
<YearNav base="/retrograd" year={year} current={current} around={YEARS_AROUND} />
|
||||
|
||||
{!events ? (
|
||||
<p className="msg msg-error" role="alert">
|
||||
A naptár most nem tölthető be. Próbáld újra pár perc múlva.
|
||||
</p>
|
||||
) : (
|
||||
PLANETS.map((id) => {
|
||||
const periods = events.retrogrades.filter((r) => r.planet === id);
|
||||
return (
|
||||
<section key={id} className="card retro-planet" aria-labelledby={`retro-${id}`}>
|
||||
<div className="retro-planet-head">
|
||||
<span className="retro-glyph" aria-hidden="true">
|
||||
{POINTS[id]?.glyph}
|
||||
</span>
|
||||
<h2 id={`retro-${id}`}>
|
||||
{POINTS[id]?.hu} retrográd {year}
|
||||
</h2>
|
||||
</div>
|
||||
<p className="muted">{RETROGRADE_MEANING[id]}</p>
|
||||
{periods.length === 0 ? (
|
||||
<p>
|
||||
{capitalize(planet(id))} {yearIn(year)} nem retrográd.
|
||||
</p>
|
||||
) : (
|
||||
<ol className="retro-periods">
|
||||
{periods.map((r) => (
|
||||
<RetroPeriod key={r.station_retrograde.moment_utc} r={r} year={year} now={now} />
|
||||
))}
|
||||
</ol>
|
||||
)}
|
||||
</section>
|
||||
);
|
||||
})
|
||||
)}
|
||||
|
||||
<section className="card sky-prose" aria-labelledby="retro-what-title">
|
||||
<h2 id="retro-what-title">Mit jelent, hogy egy bolygó retrográd?</h2>
|
||||
<p>
|
||||
A Földről nézve a bolygók időnként megállni, majd visszafelé haladni látszanak a csillagok előtt, aztán újra
|
||||
megállnak, és folytatják útjukat előre. Valójában egyik bolygó sem fordul meg: a látszat abból adódik, hogy a
|
||||
Föld és a bolygó különböző sebességgel kering a Nap körül, és az egyik „megelőzi” a másikat.
|
||||
</p>
|
||||
<p>
|
||||
A Merkúr évente háromszor, nagyjából három hétre fordul vissza, a Vénusz másfél évente hat hétre, a Mars két
|
||||
évente két-két és fél hónapra. A Jupiter és a lassabb bolygók minden évben négy-öt hónapig retrográdok, ezért
|
||||
ezeket kevésbé érezzük személyesnek.
|
||||
</p>
|
||||
<h2>Mi az árnyékszakasz?</h2>
|
||||
<p>
|
||||
A retrográd mozgás alatt a bolygó egy szakaszt kétszer tesz meg: előre, vissza, majd megint előre. Az
|
||||
árnyékszakasz az az idő, amikor a bolygó a retrográd előtt már, illetve utána még ezen a szakaszon jár. Sokan
|
||||
már a kezdetén érzik a retrográd témáit, és csak az árnyék végén tekintik lezártnak.
|
||||
</p>
|
||||
<h2>Amit nem érdemes elhinni</h2>
|
||||
<p>
|
||||
A retrográd Merkúr nem okoz katasztrófát, és nem kell miatta mindent elhalasztani. Az asztrológiai hagyomány
|
||||
szerint inkább átnézésre, javításra, régi szálak elvarrására alkalmas időszak. Egy fontos szerződés vagy utazás
|
||||
előtt elég kicsit alaposabbnak lenni.
|
||||
</p>
|
||||
<p>
|
||||
A holdfázisok és a fogyatkozások pontos időpontja a <Link href="/holdnaptar">holdnaptárban</Link> található.
|
||||
</p>
|
||||
</section>
|
||||
</main>
|
||||
<PublicFooter />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
/** Which planets are retrograde now, until when, and when Mercury turns next. */
|
||||
function RetroNow({ sky }: { sky: SkyNow }) {
|
||||
const retro = sky.planets.filter((p) => p.retrograde);
|
||||
const mercury = sky.planets.find((p) => p.id === "mercury");
|
||||
const year = sky.local_time.slice(0, 4);
|
||||
const opts = (local: string) => ({ year: local.slice(0, 4) !== year });
|
||||
return (
|
||||
<section className="card sky-now" aria-labelledby="retro-now-title">
|
||||
<span className="sky-now-glyph" aria-hidden="true">
|
||||
{POINTS.mercury.glyph}
|
||||
</span>
|
||||
<div className="sky-now-body">
|
||||
<h2 id="retro-now-title">
|
||||
{mercury?.retrograde ? "Most retrográd a Merkúr" : "Most nem retrográd a Merkúr"}
|
||||
</h2>
|
||||
{mercury?.next_station && (
|
||||
<p className="muted">
|
||||
{mercury.retrograde
|
||||
? `${capitalize(until(mercury.next_station.local_time, opts(mercury.next_station.local_time)))}, utána újra előre halad.`
|
||||
: `A következő Merkúr-retrográd kezdete: ${localDate(mercury.next_station.local_time, opts(mercury.next_station.local_time))}, ${withArticle(SIGN_IN[mercury.next_station.position.sign] ?? "")}.`}
|
||||
</p>
|
||||
)}
|
||||
{retro.length === 0 ? (
|
||||
<p>Most egy bolygó sem retrográd.</p>
|
||||
) : (
|
||||
<ul className="sky-list">
|
||||
{retro.map((p) => (
|
||||
<li key={p.id}>
|
||||
<span>
|
||||
{POINTS[p.id]?.hu} <span className="hint">{withArticle(SIGN_IN[p.position.sign] ?? "")}</span>
|
||||
</span>
|
||||
{p.next_station && (
|
||||
<span className="num">{until(p.next_station.local_time, opts(p.next_station.local_time))}</span>
|
||||
)}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
function RetroPeriod({ r, year, now }: { r: SkyRetrograde; year: number; now: string | null }) {
|
||||
const y = String(year);
|
||||
const date = (local: string, time = false) => localDate(local, { time, year: local.slice(0, 4) !== y });
|
||||
const days = Math.round((Date.parse(r.station_direct.moment_utc) - Date.parse(r.station_retrograde.moment_utc)) / 86400000);
|
||||
const active = now !== null && r.station_retrograde.local_time <= now && now < r.station_direct.local_time;
|
||||
const shadow = now !== null && !active && r.shadow_start.local_time <= now && now < r.shadow_end.local_time;
|
||||
return (
|
||||
<li className={active ? "is-active" : undefined}>
|
||||
<div className="retro-dates">
|
||||
<strong className="num">
|
||||
{date(r.station_retrograde.local_time, true)} – {date(r.station_direct.local_time, true)}
|
||||
</strong>
|
||||
{active && <span className="badge badge-gold">most tart</span>}
|
||||
{shadow && <span className="badge">most árnyékban</span>}
|
||||
</div>
|
||||
<span className="hint">
|
||||
{days} nap · {positionText(r.station_retrograde.position)} → {positionText(r.station_direct.position)}
|
||||
</span>
|
||||
<span className="hint">
|
||||
Árnyékszakasz: {date(r.shadow_start.local_time)} – {date(r.shadow_end.local_time)}
|
||||
</span>
|
||||
</li>
|
||||
);
|
||||
}
|
||||
|
||||
function capitalize(text: string): string {
|
||||
return text.charAt(0).toUpperCase() + text.slice(1);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
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} />;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import type { Metadata } from "next";
|
||||
|
||||
import { getMe } from "@/lib/server";
|
||||
import { currentYear, loadSky, loadSkyEvents } from "@/lib/sky";
|
||||
|
||||
import { RetrogradeCalendar } from "./RetrogradeCalendar";
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const year = currentYear();
|
||||
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. Melyik bolygó retrográd most?`,
|
||||
alternates: { canonical: "/retrograd" },
|
||||
};
|
||||
}
|
||||
|
||||
/** The retrograde periods of the current year, with the planets retrograde now. */
|
||||
export default async function RetrogradePage() {
|
||||
const year = currentYear();
|
||||
const [me, events, sky] = await Promise.all([getMe(), loadSkyEvents(year), loadSky()]);
|
||||
return <RetrogradeCalendar year={year} events={events} sky={sky} me={me} />;
|
||||
}
|
||||
@@ -2,6 +2,7 @@ import type { MetadataRoute } from "next";
|
||||
|
||||
import { ZODIAC } from "@/content/zodiac";
|
||||
import { loadCelebrities } from "@/lib/celebrities";
|
||||
import { currentYear } from "@/lib/sky";
|
||||
import { siteUrl } from "@/lib/share";
|
||||
|
||||
/** The public pages for search engines; everything else needs a login. */
|
||||
@@ -10,6 +11,7 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
||||
const privacy = { languages: { hu: `${base}/adatvedelem`, en: `${base}/privacy` } };
|
||||
// The sitemap still works when the backend does not answer.
|
||||
const people = await loadCelebrities().catch(() => []);
|
||||
const next = currentYear() + 1;
|
||||
return [
|
||||
{ url: `${base}/`, changeFrequency: "weekly", priority: 1 },
|
||||
{ url: `${base}/pelda`, changeFrequency: "monthly", priority: 0.8 },
|
||||
@@ -17,6 +19,10 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
||||
{ url: `${base}/szuletesi-horoszkop`, changeFrequency: "monthly", priority: 0.9 },
|
||||
{ url: `${base}/csillagjegyek`, changeFrequency: "monthly", priority: 0.8 },
|
||||
...ZODIAC.map((z) => ({ url: `${base}/csillagjegyek/${z.slug}`, changeFrequency: "monthly" as const, priority: 0.7 })),
|
||||
{ url: `${base}/holdnaptar`, changeFrequency: "daily", priority: 0.8 },
|
||||
{ url: `${base}/holdnaptar/${next}`, changeFrequency: "monthly", priority: 0.6 },
|
||||
{ url: `${base}/retrograd`, changeFrequency: "daily", priority: 0.8 },
|
||||
{ url: `${base}/retrograd/${next}`, changeFrequency: "monthly", priority: 0.6 },
|
||||
{ url: `${base}/hires-emberek`, changeFrequency: "weekly", priority: 0.7 },
|
||||
...people.map((p) => ({
|
||||
url: `${base}/hires-emberek/${p.slug}`,
|
||||
|
||||
@@ -12,6 +12,8 @@ export function PublicFooter() {
|
||||
<Link href="/szuletesi-horoszkop">Születési horoszkóp</Link>
|
||||
<Link href="/csillagjegyek">Csillagjegyek</Link>
|
||||
<Link href="/hires-emberek">Híres emberek</Link>
|
||||
<Link href="/holdnaptar">Holdnaptár</Link>
|
||||
<Link href="/retrograd">Retrográd bolygók</Link>
|
||||
<Link href="/pelda">Példaelemzés</Link>
|
||||
<Link href="/kartyajoslas/pelda">Példajóslás</Link>
|
||||
<Link href="/aszf">ÁSZF</Link>
|
||||
|
||||
@@ -41,7 +41,7 @@ export function PublicHeader({
|
||||
current,
|
||||
}: {
|
||||
onHome?: boolean;
|
||||
current?: "pelda" | "horoszkop" | "csillagjegyek" | "hires";
|
||||
current?: "pelda" | "horoszkop" | "csillagjegyek" | "hires" | "holdnaptar" | "retrograd";
|
||||
}) {
|
||||
const home = onHome ? "" : "/";
|
||||
const here = (page: typeof current) => (current === page ? "page" : undefined);
|
||||
@@ -88,6 +88,8 @@ export function PublicHeader({
|
||||
{ href: "/szuletesi-horoszkop", label: "Születési horoszkóp" },
|
||||
{ href: "/csillagjegyek", label: "Csillagjegyek" },
|
||||
{ href: "/hires-emberek", label: "Híres emberek" },
|
||||
{ href: "/holdnaptar", label: "Holdnaptár" },
|
||||
{ href: "/retrograd", label: "Retrográd bolygók" },
|
||||
],
|
||||
},
|
||||
]}
|
||||
|
||||
@@ -0,0 +1,151 @@
|
||||
import Link from "next/link";
|
||||
|
||||
import { MOON_PHASES, POINTS, SIGNS, orbText } from "@/lib/astro";
|
||||
import {
|
||||
HOUSE_THEMES,
|
||||
LUNATION_NAMES,
|
||||
MOON_IN_SIGN,
|
||||
SIGN_IN,
|
||||
SIGN_INTO,
|
||||
dayWord,
|
||||
localDate,
|
||||
transitLine,
|
||||
transitMeaning,
|
||||
until,
|
||||
withArticle,
|
||||
} from "@/lib/skyText";
|
||||
import { natalHouse, todaysTransits } from "@/lib/transits";
|
||||
import type { ChartResult, SkyNow } from "@/lib/types";
|
||||
|
||||
/**
|
||||
* "Today in the sky" on the user's own chart: the Moon (sign, phase, the natal
|
||||
* house it crosses), the tightest transits to the chart, and the retrograde
|
||||
* planets. Calculated from the shared sky; nothing is stored, no AI.
|
||||
*/
|
||||
export function SkyToday({ sky, chart, timeKnown }: { sky: SkyNow; chart: ChartResult; timeKnown: boolean }) {
|
||||
const moon = sky.moon;
|
||||
const sign = moon.position.sign;
|
||||
const house = timeKnown ? natalHouse(chart, moon.position.longitude) : null;
|
||||
const transits = todaysTransits(sky.planets, chart, timeKnown);
|
||||
const retro = sky.planets.filter((p) => p.retrograde);
|
||||
const mercury = sky.planets.find((p) => p.id === "mercury");
|
||||
const nextMercury = mercury && !mercury.retrograde ? mercury.next_station : null;
|
||||
const full = moon.next_phases.find((p) => p.kind === "full_moon");
|
||||
const fresh = moon.next_phases.find((p) => p.kind === "new_moon");
|
||||
const thisYear = sky.local_time.slice(0, 4);
|
||||
|
||||
return (
|
||||
<section className="card sky-today" aria-labelledby="sky-today-title">
|
||||
<div className="sky-today-head">
|
||||
<h2 id="sky-today-title">Ma az égen</h2>
|
||||
<span className="hint">Frissítve {sky.local_time.slice(11, 16)}-kor</span>
|
||||
</div>
|
||||
<div className="sky-grid">
|
||||
<div className="sky-col">
|
||||
<span className="eyebrow">A Hold</span>
|
||||
<p className="sky-lead">
|
||||
<span className="sky-glyph" aria-hidden="true">
|
||||
{SIGNS[sign]?.glyph}
|
||||
</span>
|
||||
<strong>Hold {withArticle(SIGN_IN[sign] ?? sign)}</strong>
|
||||
</p>
|
||||
<p className="hint">
|
||||
{MOON_PHASES[moon.phase] ?? moon.phase}, {Math.round(moon.illumination * 100)}% megvilágítás.{" "}
|
||||
{MOON_IN_SIGN[sign]}
|
||||
</p>
|
||||
{house && (
|
||||
<p>
|
||||
Ma a {house}. házadban jár: {HOUSE_THEMES[house]} kerülnek előtérbe.
|
||||
</p>
|
||||
)}
|
||||
{moon.sign_change && (
|
||||
<p className="hint">
|
||||
{capitalize(dayWord(moon.sign_change.local_time, sky.local_time))} {moon.sign_change.local_time.slice(11, 16)}-kor
|
||||
lép {withArticle(SIGN_INTO[moon.sign_change.sign] ?? moon.sign_change.sign)}.
|
||||
</p>
|
||||
)}
|
||||
<ul className="sky-list">
|
||||
{[full, fresh]
|
||||
.filter((p) => p !== undefined)
|
||||
.sort((a, b) => a.local_time.localeCompare(b.local_time))
|
||||
.map((p) => (
|
||||
<li key={p.kind}>
|
||||
<span>{LUNATION_NAMES[p.kind]}</span>
|
||||
<span className="num">
|
||||
{localDate(p.local_time, { short: true, time: true })}, {SIGNS[p.position.sign]?.hu}
|
||||
</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<Link href="/holdnaptar" className="sky-more">
|
||||
Holdnaptár →
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<div className="sky-col">
|
||||
<span className="eyebrow">A képletedhez</span>
|
||||
{transits.length === 0 ? (
|
||||
<p className="hint">Most nincs szoros fényszög az égbolt és a képleted között.</p>
|
||||
) : (
|
||||
<ul className="sky-transits">
|
||||
{transits.map((t) => (
|
||||
<li key={`${t.transiting}-${t.aspect}-${t.natal}`}>
|
||||
<strong>{transitLine(t.transiting, t.aspect, t.natal)}</strong>
|
||||
<span>{transitMeaning(t.transiting, t.aspect, t.natal)}</span>
|
||||
<span className="hint">
|
||||
{t.applying ? "Erősödik" : "Már gyengül"}, {orbText(t.orb)} a pontostól.
|
||||
</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
{!timeKnown && (
|
||||
<p className="hint">Születési idő nélkül a Holdad és az aszcendensed kimarad, mert nem pontos.</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="sky-col">
|
||||
<span className="eyebrow">Retrográd bolygók</span>
|
||||
{retro.length === 0 ? (
|
||||
<p>Most egy bolygó sem retrográd.</p>
|
||||
) : (
|
||||
<ul className="sky-list">
|
||||
{retro.map((p) => (
|
||||
<li key={p.id}>
|
||||
<span>
|
||||
<span className="sky-glyph-sm" aria-hidden="true">
|
||||
{POINTS[p.id]?.glyph}
|
||||
</span>{" "}
|
||||
{POINTS[p.id]?.hu} <span className="hint">{withArticle(SIGN_IN[p.position.sign] ?? "")}</span>
|
||||
</span>
|
||||
{p.next_station && (
|
||||
<span className="num">
|
||||
{until(p.next_station.local_time, {
|
||||
short: true,
|
||||
year: p.next_station.local_time.slice(0, 4) !== thisYear,
|
||||
})}
|
||||
</span>
|
||||
)}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
{nextMercury && (
|
||||
<p className="hint">
|
||||
A következő Merkúr-retrográd:{" "}
|
||||
{localDate(nextMercury.local_time, { year: nextMercury.local_time.slice(0, 4) !== thisYear })},{" "}
|
||||
{withArticle(SIGN_IN[nextMercury.position.sign] ?? "")}.
|
||||
</p>
|
||||
)}
|
||||
<Link href="/retrograd" className="sky-more">
|
||||
Retrográd naptár →
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
function capitalize(text: string): string {
|
||||
return text.charAt(0).toUpperCase() + text.slice(1);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import Link from "next/link";
|
||||
|
||||
/** Previous and next year of a calendar page; the current year is the page without a year. */
|
||||
export function YearNav({ base, year, current, around }: { base: string; year: number; current: number; around: number }) {
|
||||
const href = (y: number) => (y === current ? base : `${base}/${y}`);
|
||||
return (
|
||||
<nav className="year-nav" aria-label="Év választása">
|
||||
{year - 1 >= current - around ? (
|
||||
<Link href={href(year - 1)} className="btn btn-sm">
|
||||
‹ {year - 1}
|
||||
</Link>
|
||||
) : (
|
||||
<span />
|
||||
)}
|
||||
<strong className="num">{year}</strong>
|
||||
{year + 1 <= current + around ? (
|
||||
<Link href={href(year + 1)} className="btn btn-sm">
|
||||
{year + 1} ›
|
||||
</Link>
|
||||
) : (
|
||||
<span />
|
||||
)}
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
// The sky by date from the backend, for the moon and retrograde calendars and
|
||||
// the "today in the sky" card. The same for everyone, so it is cached.
|
||||
import "server-only";
|
||||
|
||||
import { BACKEND_URL } from "./server";
|
||||
import type { SkyEvents, SkyNow } from "./types";
|
||||
|
||||
/** Years the calendar pages have, around the current one (as the backend). */
|
||||
export const YEARS_AROUND = 5;
|
||||
|
||||
/** The year in Hungary now. */
|
||||
export function currentYear(): number {
|
||||
return Number(new Intl.DateTimeFormat("en", { year: "numeric", timeZone: "Europe/Budapest" }).format(new Date()));
|
||||
}
|
||||
|
||||
/** A year the calendar pages have (`/holdnaptar/2027`), or `null`. */
|
||||
export function calendarYear(text: string): number | null {
|
||||
if (!/^\d{4}$/.test(text)) return null;
|
||||
const year = Number(text);
|
||||
return Math.abs(year - currentYear()) <= YEARS_AROUND ? year : null;
|
||||
}
|
||||
|
||||
/** The sky now (a few minutes old at most); `null` when the backend does not answer. */
|
||||
export async function loadSky(): Promise<SkyNow | null> {
|
||||
try {
|
||||
const res = await fetch(`${BACKEND_URL}/v1/public/sky`, { next: { revalidate: 300 } });
|
||||
return res.ok ? ((await res.json()) as SkyNow) : null;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** A year's lunar phases, Moon sign changes and retrograde periods. */
|
||||
export async function loadSkyEvents(year: number): Promise<SkyEvents | null> {
|
||||
try {
|
||||
const res = await fetch(`${BACKEND_URL}/v1/public/sky/events?year=${year}`, { next: { revalidate: 86400 } });
|
||||
return res.ok ? ((await res.json()) as SkyEvents) : null;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,261 @@
|
||||
// Hungarian words and short texts for the sky calendars and the "today in
|
||||
// the sky" card. No AI: fixed sentences put together from parts.
|
||||
|
||||
import { POINTS, SIGNS } from "./astro";
|
||||
import type { LunationKind, SkyLunation, SkyPosition } from "./types";
|
||||
|
||||
/** "in Aries": `Kosban`. */
|
||||
export const SIGN_IN: Record<string, string> = {
|
||||
aries: "Kosban",
|
||||
taurus: "Bikában",
|
||||
gemini: "Ikrekben",
|
||||
cancer: "Rákban",
|
||||
leo: "Oroszlánban",
|
||||
virgo: "Szűzben",
|
||||
libra: "Mérlegben",
|
||||
scorpio: "Skorpióban",
|
||||
sagittarius: "Nyilasban",
|
||||
capricorn: "Bakban",
|
||||
aquarius: "Vízöntőben",
|
||||
pisces: "Halakban",
|
||||
};
|
||||
|
||||
/** "into Aries": `Kosba`. */
|
||||
export const SIGN_INTO: Record<string, string> = {
|
||||
aries: "Kosba",
|
||||
taurus: "Bikába",
|
||||
gemini: "Ikrekbe",
|
||||
cancer: "Rákba",
|
||||
leo: "Oroszlánba",
|
||||
virgo: "Szűzbe",
|
||||
libra: "Mérlegbe",
|
||||
scorpio: "Skorpióba",
|
||||
sagittarius: "Nyilasba",
|
||||
capricorn: "Bakba",
|
||||
aquarius: "Vízöntőbe",
|
||||
pisces: "Halakba",
|
||||
};
|
||||
|
||||
/** The mood of the days with the Moon in a sign. */
|
||||
export const MOON_IN_SIGN: Record<string, string> = {
|
||||
aries: "Lendület és türelmetlenség. Jó nap elkezdeni valamit.",
|
||||
taurus: "Nyugalom, kényelem, érzéki örömök. Ráérősebb tempó.",
|
||||
gemini: "Kíváncsiság, beszélgetések, sok apró ügy egyszerre.",
|
||||
cancer: "Otthon, család, érzékenység. Jólesik a biztonság.",
|
||||
leo: "Önkifejezés, játékosság, a figyelem öröme.",
|
||||
virgo: "Rendrakás, részletek, a test és a napi rutin.",
|
||||
libra: "Kapcsolatok, harmónia, kompromisszumok.",
|
||||
scorpio: "Mélység és intenzitás: erősebb érzések, kevesebb felszínesség.",
|
||||
sagittarius: "Derűlátás, tanulás, kalandvágy.",
|
||||
capricorn: "Kötelességek, tervezés, kitartó munka.",
|
||||
aquarius: "Szabadság, barátok, szokatlan ötletek.",
|
||||
pisces: "Álmodozás, együttérzés, megérzések.",
|
||||
};
|
||||
|
||||
/** What a phase of the Moon is good for, in the astrological tradition. */
|
||||
export const PHASE_MEANING: Record<string, string> = {
|
||||
new_moon: "Újrakezdés: jó pillanat szándékot megfogalmazni, valami újat elindítani.",
|
||||
waxing_crescent: "Az elindított dolgok szárba szöknek: lendület, első lépések.",
|
||||
first_quarter: "Próbatétel: ami elindult, most döntéseket és kitartást kér.",
|
||||
waxing_gibbous: "Csiszolás és finomhangolás a kiteljesedés előtt.",
|
||||
full_moon: "Tetőpont: felfokozott érzelmek, minden láthatóbbá válik.",
|
||||
waning_gibbous: "Az eredmények ideje: megosztás, hála, tanulságok.",
|
||||
last_quarter: "Rendrakás: amitől ideje elbúcsúzni, attól most könnyebb.",
|
||||
waning_crescent: "Pihenés és elengedés a következő újhold előtt.",
|
||||
};
|
||||
|
||||
export const LUNATION_NAMES: Record<LunationKind, string> = {
|
||||
new_moon: "Újhold",
|
||||
first_quarter: "Első negyed",
|
||||
full_moon: "Telihold",
|
||||
last_quarter: "Utolsó negyed",
|
||||
};
|
||||
|
||||
/** Moon glyphs of the four main phases: the filled part is the lit one (gold on the dark page). */
|
||||
export const LUNATION_GLYPHS: Record<LunationKind, string> = {
|
||||
new_moon: "○",
|
||||
first_quarter: "◑",
|
||||
full_moon: "●",
|
||||
last_quarter: "◐",
|
||||
};
|
||||
|
||||
export function eclipseName(e: NonNullable<SkyLunation["eclipse"]>): string {
|
||||
const type = { total: "teljes", annular: "gyűrűs", hybrid: "hibrid", partial: "részleges", penumbral: "félárnyékos" }[
|
||||
e.eclipse_type
|
||||
];
|
||||
return `${type} ${e.kind === "solar" ? "napfogyatkozás" : "holdfogyatkozás"}`;
|
||||
}
|
||||
|
||||
/** What a natal house is about, as the subject of "kerülnek előtérbe". */
|
||||
export const HOUSE_THEMES: Record<number, string> = {
|
||||
1: "a hangulatod és a megjelenésed",
|
||||
2: "a pénzügyeid és az anyagi biztonságod",
|
||||
3: "a beszélgetések és a rövid utak",
|
||||
4: "az otthonod és a családod",
|
||||
5: "az örömeid és a kreativitásod",
|
||||
6: "a munkád és a napi teendőid",
|
||||
7: "a párkapcsolatod és a társaid",
|
||||
8: "a közös anyagiak és az intimitás",
|
||||
9: "a tanulás és az utazás",
|
||||
10: "a hivatásod és a céljaid",
|
||||
11: "a barátaid és a közösségeid",
|
||||
12: "a pihenés és a belső világod",
|
||||
};
|
||||
|
||||
/** What a planet brings when it moves over a chart (one noun, for the sentences). */
|
||||
const TRANSIT_THEME: Record<string, string> = {
|
||||
sun: "az önkifejezés",
|
||||
moon: "a hangulat",
|
||||
mercury: "a kommunikáció",
|
||||
venus: "a szeretet",
|
||||
mars: "a lendület",
|
||||
jupiter: "a bizalom",
|
||||
saturn: "a felelősség",
|
||||
uranus: "a változás",
|
||||
neptune: "a képzelet",
|
||||
pluto: "az átalakulás",
|
||||
};
|
||||
|
||||
/** What a point of the birth chart stands for (yours). */
|
||||
const NATAL_THEME: Record<string, string> = {
|
||||
sun: "az önazonosságod",
|
||||
moon: "az érzelmeid",
|
||||
mercury: "a gondolkodásod",
|
||||
venus: "a kapcsolataid",
|
||||
mars: "a cselekvőkészséged",
|
||||
jupiter: "az optimizmusod",
|
||||
saturn: "a kötelességtudatod",
|
||||
uranus: "a függetlenséged",
|
||||
neptune: "az érzékenységed",
|
||||
pluto: "a belső erőd",
|
||||
ascendant: "a fellépésed",
|
||||
midheaven: "a hivatásod",
|
||||
};
|
||||
|
||||
/** "with your natal Moon": the point in the instrumental, with "your". */
|
||||
const NATAL_WITH: Record<string, string> = {
|
||||
sun: "Napoddal",
|
||||
moon: "Holdaddal",
|
||||
mercury: "Merkúroddal",
|
||||
venus: "Vénuszoddal",
|
||||
mars: "Marsoddal",
|
||||
jupiter: "Jupitereddel",
|
||||
saturn: "Szaturnuszoddal",
|
||||
uranus: "Uránuszoddal",
|
||||
neptune: "Neptunuszoddal",
|
||||
pluto: "Plútóddal",
|
||||
ascendant: "aszcendenseddel",
|
||||
midheaven: "MC-ddel",
|
||||
};
|
||||
|
||||
/** The aspect as "in trine" (`trigonban`). */
|
||||
const ASPECT_IN: Record<string, string> = {
|
||||
conjunction: "együttállásban",
|
||||
sextile: "szextilben",
|
||||
square: "kvadrátban",
|
||||
trine: "trigonban",
|
||||
opposition: "szembenállásban",
|
||||
};
|
||||
|
||||
/** "A tranzit Vénusz trigonban áll a születési Holdaddal." */
|
||||
export function transitLine(transiting: string, aspect: string, natal: string): string {
|
||||
return `A tranzit ${POINTS[transiting]?.hu ?? transiting} ${ASPECT_IN[aspect] ?? aspect} áll a születési ${NATAL_WITH[natal] ?? natal}.`;
|
||||
}
|
||||
|
||||
/** One sentence on what the aspect suggests. */
|
||||
export function transitMeaning(transiting: string, aspect: string, natal: string): string {
|
||||
const a = TRANSIT_THEME[transiting] ?? transiting;
|
||||
const b = NATAL_THEME[natal] ?? natal;
|
||||
if (aspect === "conjunction") return `Egybefonódik ${a} és ${b}.`;
|
||||
if (aspect === "trine" || aspect === "sextile") return `Könnyen összhangba kerül ${a} és ${b}.`;
|
||||
return `Súrlódás lehet ${a} és ${b} között; megéri tudatosan kezelni.`;
|
||||
}
|
||||
|
||||
/** What a retrograde period of the planet is said to bring. */
|
||||
export const RETROGRADE_MEANING: Record<string, string> = {
|
||||
mercury:
|
||||
"Kommunikáció, utazás, technika, szerződések: gyakoribb félreértések, késések, előkerülő régi ügyek. Jó idő átnézni, javítani, újragondolni.",
|
||||
venus:
|
||||
"Kapcsolatok és értékek: régi szerelmek, kapcsolati kérdések kerülhetnek elő. A nagy vásárlásokat, látványos változtatásokat a külsőn sokan elhalasztják.",
|
||||
mars: "Energia és cselekvés: a lendület befelé fordul, régi konfliktusok kerülhetnek elő. Inkább befejezni érdemes, mint új harcba kezdeni.",
|
||||
jupiter: "Növekedés, hit, tanulás: a kifelé terjeszkedés helyett belső fejlődés, a meggyőződések átgondolása.",
|
||||
saturn: "Felelősség és struktúra: a kötelezettségek, határok és hosszú távú tervek felülvizsgálata.",
|
||||
uranus: "Változás és szabadság: a változások belül érlelődnek, mielőtt kifelé is megmutatkoznának.",
|
||||
neptune: "Álmok és illúziók: a köd ritkul, könnyebb tisztán látni, mi volt csak vágyálom.",
|
||||
pluto: "Átalakulás és hatalom: régi minták kerülnek felszínre, mély, belső átalakulás.",
|
||||
};
|
||||
|
||||
/** `"2026-03-03T12:38"` as a date in Hungarian (no time zone shift: the text is local already). */
|
||||
export function localDate(
|
||||
local: string,
|
||||
opts: { time?: boolean; weekday?: boolean; year?: boolean; short?: boolean } = {},
|
||||
): string {
|
||||
const [date, clock = "00:00"] = local.split("T");
|
||||
const [y, m, d] = date.split("-").map(Number);
|
||||
const [h, min] = clock.split(":").map(Number);
|
||||
const text = new Intl.DateTimeFormat("hu-HU", {
|
||||
...(opts.year ? { year: "numeric" } : {}),
|
||||
month: opts.short ? "short" : "long",
|
||||
day: "numeric",
|
||||
...(opts.weekday ? { weekday: "long" } : {}),
|
||||
timeZone: "UTC",
|
||||
}).format(new Date(Date.UTC(y, m - 1, d)));
|
||||
return opts.time ? `${text} ${String(h).padStart(2, "0")}:${String(min).padStart(2, "0")}` : text;
|
||||
}
|
||||
|
||||
/** `Halak 8°29′`. */
|
||||
export function positionText(p: SkyPosition): string {
|
||||
const deg = Math.floor(p.degree_in_sign);
|
||||
const min = Math.floor((p.degree_in_sign - deg) * 60);
|
||||
return `${SIGNS[p.sign]?.hu ?? p.sign} ${deg}°${String(min).padStart(2, "0")}′`;
|
||||
}
|
||||
|
||||
/** Hungarian month names, January first. */
|
||||
export const MONTH_NAMES = [
|
||||
"Január",
|
||||
"Február",
|
||||
"Március",
|
||||
"Április",
|
||||
"Május",
|
||||
"Június",
|
||||
"Július",
|
||||
"Augusztus",
|
||||
"Szeptember",
|
||||
"Október",
|
||||
"November",
|
||||
"December",
|
||||
];
|
||||
|
||||
/** `a Kosba`, `az Ikrekbe`: the article before a Hungarian word. */
|
||||
export function withArticle(word: string): string {
|
||||
return `${/^[aáeéiíoóöőuúüű]/i.test(word) ? "az" : "a"} ${word}`;
|
||||
}
|
||||
|
||||
/** "ma", "holnap" or the date, for a local time relative to another one. */
|
||||
export function dayWord(local: string, today: string): string {
|
||||
const day = (t: string) => {
|
||||
const [y, m, d] = t.slice(0, 10).split("-").map(Number);
|
||||
return Date.UTC(y, m - 1, d);
|
||||
};
|
||||
const diff = Math.round((day(local) - day(today)) / 86400000);
|
||||
if (diff === 0) return "ma";
|
||||
if (diff === 1) return "holnap";
|
||||
return localDate(local, { short: true });
|
||||
}
|
||||
|
||||
/** `december 13-ig`: a date with "until" (the date's closing dot dropped). */
|
||||
export function until(local: string, opts: Parameters<typeof localDate>[1] = {}): string {
|
||||
return `${localDate(local, opts).replace(/\.$/, "")}-ig`;
|
||||
}
|
||||
|
||||
/** `2026-ban`, `2027-ben`: a year with "in", by how its last word sounds. */
|
||||
export function yearIn(year: number): string {
|
||||
const last = year % 10;
|
||||
const tens = Math.floor(year / 10) % 10;
|
||||
let back: boolean;
|
||||
if (last !== 0) back = [3, 6, 8].includes(last);
|
||||
else if (tens !== 0) back = [2, 3, 6, 8].includes(tens);
|
||||
// "…száz": -ban, "…ezer": -ben.
|
||||
else back = Math.floor(year / 100) % 10 !== 0;
|
||||
return `${year}-${back ? "ban" : "ben"}`;
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
// Today's transits to a birth chart: the planets now against the chart's
|
||||
// planets and angles. A plain calculation on data the page already has.
|
||||
|
||||
import type { ChartResult, SkyPlanet } from "./types";
|
||||
|
||||
export interface Transit {
|
||||
transiting: string;
|
||||
natal: string;
|
||||
aspect: "conjunction" | "sextile" | "square" | "trine" | "opposition";
|
||||
/** Degrees from exact. */
|
||||
orb: number;
|
||||
/** Getting closer (otherwise past exact and fading). */
|
||||
applying: boolean;
|
||||
}
|
||||
|
||||
const ASPECTS: [Transit["aspect"], number][] = [
|
||||
["conjunction", 0],
|
||||
["sextile", 60],
|
||||
["square", 90],
|
||||
["trine", 120],
|
||||
["opposition", 180],
|
||||
];
|
||||
|
||||
/** Orbs for a day's view: the faster the planet, the shorter it stays in one. */
|
||||
const ORB: Record<string, number> = {
|
||||
moon: 2,
|
||||
sun: 2,
|
||||
mercury: 2,
|
||||
venus: 2,
|
||||
mars: 2,
|
||||
jupiter: 1.5,
|
||||
saturn: 1.5,
|
||||
uranus: 1,
|
||||
neptune: 1,
|
||||
pluto: 1,
|
||||
};
|
||||
|
||||
const PLANETS = Object.keys(ORB);
|
||||
|
||||
/** Angular distance `[0, 180]`. */
|
||||
function separation(a: number, b: number): number {
|
||||
const d = Math.abs(a - b) % 360;
|
||||
return d > 180 ? 360 - d : d;
|
||||
}
|
||||
|
||||
/** The chart points measured to: the ten planets, and with a birth time the Ascendant and the MC (the Moon only then). */
|
||||
function natalPoints(chart: ChartResult, timeKnown: boolean): [string, number][] {
|
||||
const out: [string, number][] = chart.points
|
||||
.filter((p) => PLANETS.includes(p.id) && (timeKnown || p.id !== "moon"))
|
||||
.map((p) => [p.id, p.longitude]);
|
||||
if (timeKnown && chart.angles) {
|
||||
for (const id of ["ascendant", "midheaven"]) {
|
||||
const a = chart.angles[id];
|
||||
if (a && typeof a === "object") out.push([id, a.longitude]);
|
||||
}
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
/** The tightest transits now, closest first (relative to the orb allowed). */
|
||||
export function todaysTransits(sky: SkyPlanet[], chart: ChartResult, timeKnown: boolean, limit = 3): Transit[] {
|
||||
const found: (Transit & { score: number })[] = [];
|
||||
for (const t of sky) {
|
||||
const maxOrb = ORB[t.id];
|
||||
if (maxOrb === undefined) continue;
|
||||
// Where it will be in about an hour: closer or farther from exact.
|
||||
const later = t.position.longitude + t.speed / 24;
|
||||
for (const [natal, lon] of natalPoints(chart, timeKnown)) {
|
||||
for (const [aspect, angle] of ASPECTS) {
|
||||
const orb = Math.abs(separation(t.position.longitude, lon) - angle);
|
||||
if (orb > maxOrb) continue;
|
||||
const applying = Math.abs(separation(later, lon) - angle) < orb;
|
||||
found.push({ transiting: t.id, natal, aspect, orb, applying, score: orb / maxOrb });
|
||||
}
|
||||
}
|
||||
}
|
||||
// The Moon passes everything within hours: one of its aspects at most.
|
||||
let moon = 0;
|
||||
return found
|
||||
.sort((a, b) => a.score - b.score)
|
||||
.filter((t) => t.transiting !== "moon" || moon++ === 0)
|
||||
.slice(0, limit)
|
||||
.map(({ score: _, ...t }) => t);
|
||||
}
|
||||
|
||||
/** The natal house a longitude falls in (1–12), or `null` without houses. */
|
||||
export function natalHouse(chart: ChartResult, longitude: number): number | null {
|
||||
const cusps = chart.houses?.cusps;
|
||||
if (!cusps || cusps.length !== 12) return null;
|
||||
const sorted = [...cusps].sort((a, b) => a.house - b.house).map((c) => c.longitude);
|
||||
for (let i = 0; i < 12; i++) {
|
||||
const start = sorted[i];
|
||||
const end = sorted[(i + 1) % 12];
|
||||
const span = (end - start + 360) % 360;
|
||||
if ((longitude - start + 360) % 360 < span) return i + 1;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -669,3 +669,75 @@ export interface Invoice {
|
||||
gross_huf: number;
|
||||
paid_at: string;
|
||||
}
|
||||
|
||||
/** The sky by date (`/v1/public/sky…`): tropical, geocentric, the same for everyone. */
|
||||
export interface SkyPosition {
|
||||
longitude: number;
|
||||
sign: string;
|
||||
degree_in_sign: number;
|
||||
degree_in_sign_dms: string;
|
||||
}
|
||||
|
||||
export interface SkyMoment {
|
||||
moment_utc: string;
|
||||
/** `YYYY-MM-DDTHH:MM` on the Hungarian clock. */
|
||||
local_time: string;
|
||||
}
|
||||
|
||||
export interface SkyStation extends SkyMoment {
|
||||
/** Turns retrograde here (otherwise direct). */
|
||||
retrograde: boolean;
|
||||
position: SkyPosition;
|
||||
}
|
||||
|
||||
export type LunationKind = "new_moon" | "first_quarter" | "full_moon" | "last_quarter";
|
||||
|
||||
export interface SkyLunation extends SkyMoment {
|
||||
kind: LunationKind;
|
||||
position: SkyPosition;
|
||||
eclipse: { kind: "solar" | "lunar"; eclipse_type: "total" | "annular" | "hybrid" | "partial" | "penumbral" } | null;
|
||||
}
|
||||
|
||||
export interface SkyIngress extends SkyMoment {
|
||||
sign: string;
|
||||
}
|
||||
|
||||
export interface SkyPlanet {
|
||||
id: string;
|
||||
position: SkyPosition;
|
||||
/** Degrees a day (negative: retrograde). */
|
||||
speed: number;
|
||||
retrograde: boolean;
|
||||
next_station: SkyStation | null;
|
||||
}
|
||||
|
||||
export interface SkyNow extends SkyMoment {
|
||||
timezone: string;
|
||||
utc_offset: string;
|
||||
planets: SkyPlanet[];
|
||||
moon: {
|
||||
position: SkyPosition;
|
||||
phase: string;
|
||||
illumination: number;
|
||||
elongation: number;
|
||||
waxing: boolean;
|
||||
sign_change: SkyIngress | null;
|
||||
next_phases: SkyLunation[];
|
||||
};
|
||||
}
|
||||
|
||||
export interface SkyRetrograde {
|
||||
planet: string;
|
||||
station_retrograde: SkyStation;
|
||||
station_direct: SkyStation;
|
||||
shadow_start: SkyMoment;
|
||||
shadow_end: SkyMoment;
|
||||
}
|
||||
|
||||
export interface SkyEvents {
|
||||
year: number;
|
||||
timezone: string;
|
||||
lunations: SkyLunation[];
|
||||
moon_ingresses: SkyIngress[];
|
||||
retrogrades: SkyRetrograde[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user