- only the major aspects between the ten planets, ASC and MC (the rest stays in the aspect table) - one style per aspect: trine blue, sextile blue dashed, square orange, opposition red; width and opacity by orb, tight aspects on top - line ends at the spread-out glyph angles, so neighbouring planets' lines no longer meet in one point - hovering or focusing a planet shows only its aspects (CSS :has) - shared legend, also on the example page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
74 lines
2.9 KiB
TypeScript
74 lines
2.9 KiB
TypeScript
import type { Metadata } from "next";
|
|
import Link from "next/link";
|
|
|
|
import { AnalysisView } from "@/components/AnalysisView";
|
|
import { ChartWheel, WheelLegend } from "@/components/ChartWheel";
|
|
import { Rich } from "@/components/Rich";
|
|
import { Logo } from "@/components/SiteHeader";
|
|
import example from "@/content/pelda.json";
|
|
import { getMe } from "@/lib/server";
|
|
import type { AnalysisContent, ChartResult } from "@/lib/types";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Példaelemzés",
|
|
description: "Így néz ki egy részletes Sorsfonalak-elemzés: egy kitalált születési képlet teljes értelmezése.",
|
|
};
|
|
|
|
/** A full example analysis of a made-up chart, for visitors and free users. */
|
|
export default async function ExamplePage() {
|
|
const me = await getMe();
|
|
const chart = example.chart as unknown as ChartResult;
|
|
return (
|
|
<>
|
|
{!me && (
|
|
<header className="site-header">
|
|
<Logo />
|
|
</header>
|
|
)}
|
|
<main className="page" style={{ maxWidth: 1180 }}>
|
|
<div className="page-head">
|
|
<span className="eyebrow">Példaelemzés</span>
|
|
<h1>Így néz ki egy részletes elemzés</h1>
|
|
<p className="muted">
|
|
A képlet kitalált ({example.birth}). A saját képletednél ugyanígy készül: a rövid összefoglaló ingyenes, a
|
|
részletes elemzés fizetős.
|
|
</p>
|
|
</div>
|
|
|
|
<section className="chart-layout" aria-label="A példa képlete">
|
|
<div className="card chart-wheel-card">
|
|
<ChartWheel chart={chart} timeKnown />
|
|
<WheelLegend />
|
|
</div>
|
|
<div className="field" style={{ gap: 16 }}>
|
|
<section className="card summary-card" aria-labelledby="example-summary">
|
|
<span className="eyebrow">Röviden · ingyenes</span>
|
|
<h2 id="example-summary" className="summary-title">
|
|
{example.summary.title}
|
|
</h2>
|
|
<p className="summary-text">
|
|
<Rich text={example.summary.summary} />
|
|
</p>
|
|
</section>
|
|
<div className="card" style={{ gap: 12 }}>
|
|
<p>
|
|
{me ? "Nézd meg a saját képletedet és az ingyenes összefoglalódat." : "Lépj be Google-fiókkal, add meg a születési adataidat, és ingyen megkapod a saját rövid összefoglalódat."}
|
|
</p>
|
|
<div className="form-actions">
|
|
<Link href={me ? "/keplet" : "/belepes?vissza=/keplet"} className="btn btn-primary">
|
|
{me ? "A saját képletem" : "Belépés és saját képlet"}
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section className="card analysis-card" aria-label="Részletes példaelemzés">
|
|
<span className="eyebrow">Részletes elemzés · fizetős</span>
|
|
<AnalysisView content={example.analysis as AnalysisContent} />
|
|
</section>
|
|
</main>
|
|
</>
|
|
);
|
|
}
|