Home page for visitors
CI / test (push) Successful in 1m16s
CI / build (push) Successful in 7m23s
CI / deploy (push) Skipped

Visitors now get a home page instead of the login: the example chart's
wheel coming alive (planets one by one, aspect lines drawn, a slow orbit,
a quiet starfield), the free short summary, excerpts of the detailed
analysis, the yearly forecast and the relationship comparison, how it works
and a closing call. While sign-up is by invitation it says so: the buttons
lead to the Google login with an invitation, and others can join the
waitlist. Motion is off for reduced-motion users. Logged-in users still go
to their chart.

Also: the wheel tooltips (planets, aspects, angles) were empty, since React
19 wants plain text inside <title>; they are template strings now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-19 10:36:18 +00:00
co-authored by Claude Opus 5.5
parent 4f09aac3f5
commit dad16fe463
5 changed files with 607 additions and 20 deletions
+417
View File
@@ -0,0 +1,417 @@
import Link from "next/link";
import { ChartWheel } from "@/components/ChartWheel";
import { Rich } from "@/components/Rich";
import { Logo } from "@/components/SiteHeader";
import { Waitlist } from "@/components/Waitlist";
import example from "@/content/pelda.json";
import type { AnalysisContent, ChartResult } from "@/lib/types";
// A quiet starfield, the same on every render.
const STARS = (() => {
let seed = 7;
const rnd = () => {
seed = (seed * 9301 + 49297) % 233280;
return seed / 233280;
};
return Array.from({ length: 70 }, (_, i) => ({
x: (rnd() * 1000).toFixed(1),
y: (rnd() * 600).toFixed(1),
r: (0.6 + rnd() * 1.4).toFixed(1),
t: i % 5,
}));
})();
const MONTHS = ["márc", "ápr", "máj", "jún", "júl", "aug", "szept", "okt", "nov", "dec", "jan", "febr"];
/** Points of a ring of the comparison picture. */
function ring(r: number, degrees: number[]) {
return degrees.map((d) => {
const a = (d * Math.PI) / 180;
return { x: 110 + r * Math.cos(a), y: 110 - r * Math.sin(a) };
});
}
const YOU = ring(72, [15, 70, 128, 190, 236, 300, 338]);
const THEM = ring(100, [40, 95, 150, 205, 262, 318, 355]);
const LINKS: [number, number, string][] = [
[0, 0, "var(--harmonic)"],
[2, 4, "var(--tense)"],
[4, 5, "var(--harmonic)"],
[5, 2, "var(--gold)"],
];
// Sample lines of a forecast timeline (illustration, marked as such).
const EVENTS = [
{ date: "ápr. 9.", glyph: "♃\uFE0E", tone: "harmonic", text: "Jupiter trigon Nap: kinyíló lehetőségek" },
{ date: "júl. 22.", glyph: "♄\uFE0E", tone: "tense", text: "Szaturnusz kvadrát Hold: érzelmi számvetés" },
{ date: "okt. 14.", glyph: "☉\uFE0E", tone: "neutral", text: "Napfogyatkozás a 10. házban: hivatás" },
];
const CHAPTERS = ["Személyiség", "Érzelmek", "Gondolkodás", "Szerelem", "Hivatás", "Fejlődés"];
const SYNASTRY_TOPICS = ["Vonzás", "Kommunikáció", "Érzelmi kötődés", "Súrlódások", "Hosszú táv"];
/** The home page for visitors: what the site does, shown on the example chart. */
export function Landing({ inviteOnly }: { inviteOnly: boolean }) {
const chart = example.chart as unknown as ChartResult;
const analysis = example.analysis as AnalysisContent;
const sections = ["emotions", "love"].map((k) => analysis.sections?.[k]).filter((s) => s !== undefined);
const lead = (analysis.summary ?? "").split(/(?<=\.)\s/)[0];
const signIn = inviteOnly ? "Belépés meghívóval" : "Elkészítem a képletem";
return (
<div className="lp">
<header className="site-header lp-header">
<Logo />
<nav className="nav lp-nav" aria-label="Fő navigáció">
<a href="#elemzes">Elemzés</a>
<a href="#elorejelzes">Előrejelzés</a>
<a href="#osszevetes">Összevetés</a>
<Link href="/pelda">Példa</Link>
</nav>
<Link href="/belepes" className="btn btn-sm">
Belépés
</Link>
</header>
<section className="lp-hero">
<svg className="lp-stars" aria-hidden="true" viewBox="0 0 1000 600" preserveAspectRatio="xMidYMid slice">
{STARS.map((s, i) => (
<circle key={i} cx={s.x} cy={s.y} r={s.r} className={`lp-star lp-t${s.t}`} />
))}
</svg>
<div className="lp-wrap lp-hero-grid">
<div className="lp-hero-text">
<span className="eyebrow lp-rise lp-r1">Születési képlet · Éves előrejelzés · Kapcsolat</span>
<h1 className="lp-title lp-rise lp-r2">
Ahol a csillagok
<br />
összekötnek.
</h1>
<p className="lp-lead lp-rise lp-r3">
Add meg, mikor és hol születtél: percre pontosan kiszámoljuk a képletedet, és személyre szóló elemzést írunk
belőle. Megmutatjuk, mit hoz az éved, és mennyire illetek össze azzal, akit szeretsz.
</p>
<div className="lp-actions lp-rise lp-r4">
<Link href="/belepes" className="btn btn-primary lp-btn">
{signIn}
</Link>
<Link href="/pelda" className="btn lp-btn">
Példaelemzés
</Link>
</div>
<p className="hint lp-rise lp-r4">
{inviteOnly ? (
<>
Az oldal egyelőre meghívásos: meghívóval, Google-fiókkal lépsz be. Ha még nincs meghívód,{" "}
<a href="#varolista">iratkozz fel a várólistára</a>.
</>
) : (
"A képlet és a rövid összefoglaló ingyenes. Google-fiókkal lépsz be."
)}
</p>
</div>
<figure className="lp-figure">
<div className="lp-wheel">
<svg className="lp-orbit" aria-hidden="true" viewBox="0 0 680 680">
<circle cx="340" cy="340" r="334" />
<circle cx="340" cy="6" r="3" className="lp-orbit-dot" />
<circle cx="674" cy="340" r="2" className="lp-orbit-dot" />
<circle cx="104" cy="576" r="2.4" className="lp-orbit-dot" />
</svg>
<ChartWheel chart={chart} timeKnown title="Példa születési képlet" />
</div>
<figcaption className="lp-caption">
<span className="share-trio">
<span>
<span className="sym">☉︎</span> Nap Halak
</span>
<span>
<span className="sym">☽︎</span> Hold Skorpió
</span>
<span>
<span className="lp-asc">ASC</span> Oroszlán
</span>
</span>
<span className="hint">Példa: egy kitalált képlet · {example.birth}</span>
</figcaption>
</figure>
</div>
</section>
<section className="lp-band lp-alt">
<div className="lp-wrap lp-two">
<div className="lp-intro">
<span className="eyebrow">Első lépés</span>
<h2 className="lp-h2">Pár mondat, ami rólad szól</h2>
<p className="lp-text">
A képleted mellé rögtön kapsz egy rövid összefoglalót: mi adja a képleted gerincét, hol feszül, és miben vagy
igazán erős. Ingyen, a belépés után azonnal.
</p>
</div>
<article className="card summary-card lp-float">
<span className="eyebrow">Röviden · ingyenes</span>
<h3 className="summary-title">{example.summary.title}</h3>
<p className="summary-text">
<Rich text={example.summary.summary} />
</p>
</article>
</div>
</section>
<section id="elemzes" className="lp-band">
<div className="lp-wrap lp-stack">
<div className="lp-intro">
<span className="eyebrow">Részletes elemzés</span>
<h2 className="lp-h2">Ha mélyebbre mennél</h2>
<p className="lp-text">
Hat fejezet a személyiségedről, az érzelmeidről, a gondolkodásodról, a szerelemről, a hivatásodról és a
fejlődésed irányáról. A végén erősségek, kihívások és útravaló, és ha kérdésed van, rá is kérdezhetsz.
</p>
</div>
<div className="lp-analysis-grid">
<article className="card lp-paper">
<header className="analysis-head">
<h3 className="lp-paper-title">{analysis.title}</h3>
<p className="analysis-lead">{lead}</p>
</header>
<div className="lp-excerpts">
{sections.map((s) => (
<section key={s.title} className="analysis-section lp-fade">
<h4 className="lp-excerpt-title">{s.title}</h4>
<p className="summary-text">
<Rich text={s.body.split(/\n\s*\n/)[0]} />
</p>
</section>
))}
</div>
<div className="lp-paper-foot">
<span className="hint">Részlet egy kitalált képlet teljes elemzéséből</span>
<Link href="/pelda">Elolvasom a teljes példaelemzést →</Link>
</div>
</article>
<aside className="lp-aside">
<div className="card lp-side-card">
<h3 className="lp-h3">Erősségek</h3>
<ul className="lp-list">
{(analysis.strengths ?? []).slice(0, 2).map((t) => (
<li key={t}>
<Rich text={t} />
</li>
))}
</ul>
</div>
<div className="card lp-side-card">
<h3 className="lp-h3">Kérdezz rá</h3>
<p className="lp-small">
Ami nem világos, vagy amire kíváncsi vagy, megkérdezheted: a válasz a képletedből és az elemzésedből
születik.
</p>
<p className="lp-question">„Mit jelent nekem a Hold–Vénusz kvadrát a párkapcsolatban?”</p>
</div>
</aside>
</div>
<div className="lp-chips">
{CHAPTERS.map((c) => (
<span key={c} className="lp-chip">
{c}
</span>
))}
<span className="lp-chip lp-chip-gold">Útravaló</span>
</div>
</div>
</section>
<section className="lp-band lp-alt">
<div className="lp-wrap lp-stack">
<div className="lp-intro">
<span className="eyebrow">Nemcsak a képleted</span>
<h2 className="lp-h2">Mit hoz az éved, és kivel illetek össze?</h2>
</div>
<div className="lp-features">
<article id="elorejelzes" className="card lp-feature">
<div className="lp-feature-head">
<span className="eyebrow">Éves előrejelzés</span>
<h3 className="lp-feature-title">Egy év, hónapról hónapra</h3>
<p className="lp-text">
Szolár képlet, tranzitok pontos dátumokkal és progresszió: születésnaptól születésnapig, hogy tudd, mikor
mire érdemes figyelni.
</p>
</div>
<div className="lp-panel">
<svg aria-hidden="true" viewBox="0 0 440 70" className="lp-timeline">
<line x1="10" y1="40" x2="430" y2="40" className="lp-tl-track" />
<line x1="10" y1="40" x2="150" y2="40" className="lp-tl-done" />
{MONTHS.map((m, i) => {
const x = 10 + (i * 420) / 11;
return (
<g key={m}>
<line x1={x} y1="34" x2={x} y2="46" className="lp-tl-track" />
<text x={x} y="64" className="lp-tl-month">
{m}
</text>
</g>
);
})}
<circle cx="88" cy="40" r="6" fill="var(--harmonic)" />
<circle cx="228" cy="40" r="6" fill="var(--square)" />
<circle cx="340" cy="40" r="6" fill="var(--gold)" />
<circle cx="150" cy="40" r="5" fill="var(--gold)" className="lp-pulse" />
<circle cx="150" cy="40" r="3.5" fill="var(--ink)" />
<text x="150" y="20" className="lp-tl-now">
most
</text>
</svg>
<ol className="lp-events">
{EVENTS.map((e) => (
<li key={e.date} className={`timeline-item tone-${e.tone}`}>
<span className="timeline-date">{e.date}</span>
<span className="timeline-glyph sym" aria-hidden="true">
{e.glyph}
</span>
<span className="timeline-text">{e.text}</span>
</li>
))}
</ol>
<span className="hint">Minta az idővonalból</span>
</div>
</article>
<article id="osszevetes" className="card lp-feature">
<div className="lp-feature-head">
<span className="eyebrow">Kapcsolati összevetés</span>
<h3 className="lp-feature-title">Mennyire illetek össze?</h3>
<p className="lp-text">
Két képlet egymásra vetítve. Hívd meg, akit szeretsz: ő megadja a saját adatait, és együtt nézitek meg,
hol erős és hol kényes a kapcsolatotok.
</p>
</div>
<div className="lp-panel lp-pair">
<svg aria-hidden="true" viewBox="0 0 220 220" className="lp-rings">
<circle cx="110" cy="110" r="100" className="lp-ring" />
<circle cx="110" cy="110" r="72" className="lp-ring" />
<circle cx="110" cy="110" r="44" className="lp-ring lp-ring-core" />
<g className="lp-spin-back">
{THEM.map((p, i) => (
<circle key={i} cx={p.x} cy={p.y} r="5" fill="var(--p2)" />
))}
</g>
<g className="lp-spin">
{YOU.map((p, i) => (
<circle key={i} cx={p.x} cy={p.y} r="5" fill="var(--ink)" />
))}
</g>
{LINKS.map(([a, b, color]) => (
<line
key={`${a}-${b}`}
x1={YOU[a].x}
y1={YOU[a].y}
x2={THEM[b].x}
y2={THEM[b].y}
stroke={color}
strokeWidth="1.4"
strokeOpacity="0.75"
/>
))}
</svg>
<div className="lp-pair-legend">
<span className="pair-text-row">
<span className="legend-dot legend-p1" /> Te
</span>
<span className="pair-text-row p2-text">
<span className="legend-dot legend-p2" /> Ő
</span>
<span className="nature-bar" aria-hidden="true">
<span className="nature-seg nature-harmonious" style={{ flexGrow: 5 }} />
<span className="nature-seg nature-challenging" style={{ flexGrow: 3 }} />
<span className="nature-seg nature-neutral" style={{ flexGrow: 2 }} />
</span>
<span className="hint">harmonikus · feszült · semleges fényszögek</span>
</div>
</div>
<div className="lp-chips">
{SYNASTRY_TOPICS.map((c) => (
<span key={c} className="lp-chip">
{c}
</span>
))}
</div>
</article>
</div>
</div>
</section>
<section className="lp-band">
<div className="lp-wrap lp-stack">
<h2 className="lp-h2 lp-center">Így működik</h2>
<ol className="lp-steps">
<li className="card">
<span className="lp-step-n">1</span>
<h3 className="lp-step-title">Belépsz, és megadod az adataidat</h3>
<p className="lp-small">
{inviteOnly ? "Meghívóval, Google-fiókkal lépsz be" : "Google-fiókkal lépsz be"}, aztán megadod a születésed
dátumát, idejét és helyét. Ha az időpontot nem tudod, akkor is kiszámoljuk, ami kiszámolható.
</p>
</li>
<li className="card">
<span className="lp-step-n">2</span>
<h3 className="lp-step-title">Kész a képleted, ingyen</h3>
<p className="lp-small">
Megrajzolt radix, bolygóállások, házak, fényszögek és egy rövid, személyre szóló összefoglaló.
</p>
</li>
<li className="card">
<span className="lp-step-n">3</span>
<h3 className="lp-step-title">Ha többet szeretnél</h3>
<p className="lp-small">
Részletes elemzés, éves előrejelzés, kapcsolati összevetés, és kérdések, amikre a saját képleted felel.
</p>
</li>
</ol>
</div>
</section>
<section id="varolista" className="lp-band lp-final">
<div className="lp-wrap lp-final-inner">
<svg aria-hidden="true" viewBox="0 0 120 120" className="lp-spin lp-emblem">
<circle cx="60" cy="60" r="54" className="lp-emblem-outer" />
<circle cx="60" cy="60" r="40" className="lp-ring" />
<circle cx="60" cy="6" r="4" fill="var(--gold)" />
<circle cx="100" cy="88" r="3" fill="var(--ink)" />
<circle cx="24" cy="92" r="2.5" fill="var(--p2)" />
</svg>
<h2 className="lp-h2">Kíváncsi vagy, mit mutat a te képleted?</h2>
<p className="lp-text">
{inviteOnly
? "Egyelőre meghívással lehet csatlakozni. Ha kaptál meghívót, lépj be a Google-fiókoddal. Ha még nem, írd fel magad, és szólunk."
: "Két perc, és ott a képleted a rövid összefoglalóval együtt."}
</p>
<Link href="/belepes" className="btn btn-primary lp-btn lp-btn-big">
{signIn}
</Link>
{inviteOnly && (
<div className="lp-waitlist">
<Waitlist />
</div>
)}
<p className="hint lp-disclaimer">
Az elemzéseket mesterséges intelligencia írja a pontosan kiszámolt képlet alapján. Tájékoztató jellegűek, nem
helyettesítenek szakmai tanácsot.
</p>
</div>
</section>
<footer className="lp-footer">
<div className="lp-wrap lp-footer-inner">
<Logo />
<nav aria-label="Lábléc" className="lp-footer-nav">
<Link href="/pelda">Példaelemzés</Link>
<Link href="/adatvedelem">Adatvédelem</Link>
<Link href="/belepes">Belépés</Link>
</nav>
<span className="hint">© {new Date().getFullYear()} Sorsfonalak</span>
</div>
</footer>
</div>
);
}
+150
View File
@@ -759,3 +759,153 @@ a.pair-row:hover strong { color: var(--gold); }
.invite-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.invite-list li:last-child { border-bottom: 0; }
.invite-who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 180px; }
/* Home page for visitors (src/app/Landing.tsx) */
.lp { overflow-x: clip; }
.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.lp-header { gap: 16px; }
.lp-nav { flex: 1; }
.lp-hero { position: relative; overflow: hidden; }
.lp-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-star { fill: var(--ink); opacity: 0.25; animation: lp-twinkle 6s ease-in-out infinite; }
.lp-t1 { animation-delay: 1s; animation-duration: 7s; }
.lp-t2 { animation-delay: 2.4s; animation-duration: 5s; }
.lp-t3 { animation-delay: 3.1s; animation-duration: 8s; }
.lp-t4 { animation-delay: 0.6s; animation-duration: 9s; }
.lp-hero-grid {
position: relative; padding-top: 72px; padding-bottom: 88px;
display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px; align-items: center;
}
.lp-hero-text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.lp-hero-text .eyebrow { font-size: 13px; letter-spacing: 2px; }
.lp-title { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.5px; }
.lp-lead { font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 540px; }
.lp-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lp-btn { min-height: 48px; padding: 0 22px; transition: transform 0.2s, background 0.2s, border-color 0.2s; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-big { min-height: 52px; padding: 0 28px; font-size: 16px; }
.lp-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lp-wheel {
position: relative; width: 100%; max-width: 560px; border-radius: 50%;
background: radial-gradient(closest-side, rgba(217, 180, 106, 0.07), transparent 72%);
}
.lp-wheel .chart-wheel { position: relative; }
.lp-orbit { position: absolute; inset: 0; width: 100%; height: 100%; animation: lp-spin 240s linear infinite; }
.lp-orbit circle { fill: none; stroke: var(--gold); stroke-opacity: 0.18; stroke-width: 1; stroke-dasharray: 2 10; }
.lp-orbit .lp-orbit-dot { fill: var(--gold); stroke: none; opacity: 0.55; }
/* the wheel comes alive: planets one by one, then the aspect lines */
.lp-wheel .w-point { opacity: 0; animation: lp-fade 0.9s ease-out forwards; }
.lp-wheel .w-point:nth-last-of-type(13) { animation-delay: 0.3s; }
.lp-wheel .w-point:nth-last-of-type(12) { animation-delay: 0.42s; }
.lp-wheel .w-point:nth-last-of-type(11) { animation-delay: 0.54s; }
.lp-wheel .w-point:nth-last-of-type(10) { animation-delay: 0.66s; }
.lp-wheel .w-point:nth-last-of-type(9) { animation-delay: 0.78s; }
.lp-wheel .w-point:nth-last-of-type(8) { animation-delay: 0.9s; }
.lp-wheel .w-point:nth-last-of-type(7) { animation-delay: 1.02s; }
.lp-wheel .w-point:nth-last-of-type(6) { animation-delay: 1.14s; }
.lp-wheel .w-point:nth-last-of-type(5) { animation-delay: 1.26s; }
.lp-wheel .w-point:nth-last-of-type(4) { animation-delay: 1.38s; }
.lp-wheel .w-point:nth-last-of-type(3) { animation-delay: 1.5s; }
.lp-wheel .w-point:nth-last-of-type(2) { animation-delay: 1.62s; }
.lp-wheel .w-point:nth-last-of-type(1) { animation-delay: 1.74s; }
.lp-wheel .w-aspect { stroke-dasharray: 300; stroke-dashoffset: 300; animation: lp-draw 1.8s cubic-bezier(0.4, 0, 0.2, 1) 1.6s forwards; }
.lp-wheel .w-aspect.w-asp-sextile { stroke-dasharray: 5 4; stroke-dashoffset: 0; opacity: 0; animation: lp-fade 1.2s ease-out 2.2s forwards; }
.lp-caption { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lp-caption .share-trio { justify-content: center; font-size: 15px; }
.lp-asc { color: var(--gold); font-weight: 600; font-size: 12px; letter-spacing: 0.5px; }
.lp-rise { opacity: 0; transform: translateY(14px); animation: lp-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.lp-r1 { animation-delay: 0.1s; } .lp-r2 { animation-delay: 0.25s; } .lp-r3 { animation-delay: 0.4s; } .lp-r4 { animation-delay: 0.55s; }
.lp-band { border-top: 1px solid var(--line); padding: 96px 0; }
.lp-alt { background: var(--panel-2); }
.lp-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 48px; align-items: center; }
.lp-stack { display: flex; flex-direction: column; gap: 40px; }
.lp-intro { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.lp-intro .eyebrow { font-size: 13px; letter-spacing: 2px; }
.lp-h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.06; }
.lp-h3 { font-size: 24px; }
.lp-center { text-align: center; }
.lp-text { font-size: 17px; color: var(--ink-2); line-height: 1.65; }
.lp-small { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.lp-float { padding: 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); animation: lp-float 9s ease-in-out infinite; }
.lp-float .summary-title { font-size: 32px; }
.lp-analysis-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.lp-paper { padding: 36px; gap: 22px; }
.lp-paper-title { font-size: 36px; line-height: 1.08; }
.lp-excerpts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px; }
.lp-fade { max-height: 270px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.lp-excerpt-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--gold); line-height: 1.15; margin: 0; }
.lp-paper-foot { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; }
.lp-paper-foot a { font-weight: 600; text-decoration: none; }
.lp-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.lp-side-card { gap: 12px; }
.lp-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.lp-question { margin: 0; padding: 12px 14px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line-2); font-size: 14px; }
.lp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.lp-chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.lp-chip-gold { border-color: rgba(217, 180, 106, 0.5); color: var(--gold); }
.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.lp-feature { padding: 32px; gap: 20px; }
.lp-feature-head { display: flex; flex-direction: column; gap: 10px; }
.lp-feature-title { font-size: 32px; line-height: 1.1; }
.lp-panel { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.lp-timeline { width: 100%; height: auto; display: block; }
.lp-tl-track { stroke: var(--line-2); stroke-width: 2; }
.lp-tl-done { stroke: var(--gold); stroke-width: 2; }
.lp-tl-month { fill: var(--muted); font: 400 10px var(--font-body); text-anchor: middle; }
.lp-tl-now { fill: var(--ink); font: 600 11px var(--font-body); text-anchor: middle; }
.lp-pulse { transform-box: fill-box; transform-origin: center; animation: lp-pulse 2.6s ease-in-out infinite; }
.lp-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.lp-pair { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 20px; align-items: center; }
.lp-rings { width: 100%; height: auto; display: block; }
.lp-ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.lp-ring-core { fill: var(--panel); stroke: var(--line); }
.lp-spin { transform-box: fill-box; transform-origin: center; animation: lp-spin 120s linear infinite; }
.lp-spin-back { transform-box: fill-box; transform-origin: center; animation: lp-spin 160s linear infinite reverse; }
.lp-pair-legend { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pair-text-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.pair-text-row.p2-text { color: var(--p2); }
.lp-pair .nature-bar { margin-top: 6px; height: 8px; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.lp-steps .card { gap: 12px; padding: 28px; }
.lp-step-n { font-family: var(--font-display); font-size: 44px; font-weight: 600; line-height: 1; color: var(--gold); }
.lp-step-title { font-family: var(--font-body); font-size: 18px; font-weight: 600; line-height: 1.3; }
.lp-final { background: radial-gradient(ellipse at 50% 0%, rgba(217, 180, 106, 0.12), transparent 60%), var(--bg); padding: 104px 0; }
.lp-final-inner { max-width: 820px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.lp-emblem { width: 88px; height: 88px; }
.lp-emblem-outer { fill: none; stroke: var(--gold); stroke-opacity: 0.5; stroke-width: 1; }
.lp-waitlist { width: 100%; max-width: 520px; text-align: left; }
.lp-disclaimer { max-width: 560px; }
.lp-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.lp-footer-inner { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.lp-footer-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.lp-footer-nav a { color: var(--muted); text-decoration: none; }
.lp-footer-nav a:hover { color: var(--gold); }
@keyframes lp-twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.7; } }
@keyframes lp-fade { to { opacity: 1; } }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-rise { to { opacity: 1; transform: none; } }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lp-pulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.6); opacity: 0.2; } }
@media (max-width: 900px) { .lp-analysis-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
.lp-band { padding: 64px 0; }
.lp-hero-grid { padding-top: 40px; padding-bottom: 56px; gap: 32px; }
.lp-wrap { padding: 0 16px; }
.lp-paper, .lp-feature { padding: 22px; }
.lp-pair { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.lp-rings { max-width: 200px; }
.lp-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.lp *, .lp-orbit { animation: none !important; }
.lp-rise, .lp-wheel .w-point { opacity: 1; transform: none; }
.lp-wheel .w-aspect { stroke-dashoffset: 0; }
.lp-wheel .w-aspect.w-asp-sextile { opacity: 1; }
}
+30 -4
View File
@@ -1,10 +1,36 @@
import type { Metadata } from "next";
import { redirect } from "next/navigation";
import { getMe } from "@/lib/server";
import { BACKEND_URL, getMe } from "@/lib/server";
import type { PublicConfig } from "@/lib/types";
// No home page yet: logged-in users go to their chart (or to the profile to enter
// their birth data), others to login.
import { Landing } from "./Landing";
export const metadata: Metadata = {
title: { absolute: "Sorsfonalak – születési képlet, éves előrejelzés, kapcsolati összevetés" },
description:
"Percre pontos születési képlet és személyre szóló elemzés, éves előrejelzés és kapcsolati összevetés: mennyire illetek össze?",
openGraph: {
type: "website",
siteName: "Sorsfonalak",
locale: "hu_HU",
title: "Sorsfonalak – ahol a csillagok összekötnek",
description: "Születési képlet, részletes elemzés, éves előrejelzés és kapcsolati összevetés.",
},
};
async function signupMode(): Promise<PublicConfig["signup_mode"]> {
try {
const res = await fetch(`${BACKEND_URL}/v1/config`, { next: { revalidate: 300 } });
return res.ok ? ((await res.json()) as PublicConfig).signup_mode : "invite";
} catch {
return "invite";
}
}
/** Visitors get the home page; logged-in users go to their chart (or to the profile for their birth data). */
export default async function Home() {
const me = await getMe();
redirect(!me ? "/belepes" : me.primary_chart_id ? "/keplet" : "/profil");
if (me) redirect(me.primary_chart_id ? "/keplet" : "/profil");
return <Landing inviteOnly={(await signupMode()) !== "open"} />;
}
@@ -197,9 +197,7 @@ export function ChartWheel({
dominantBaseline="central"
textAnchor="middle"
>
<title>
{pointName(key)}: {dms(a.degree_in_sign_dms)} {signName(a.sign)}
</title>
<title>{`${pointName(key)}: ${dms(a.degree_in_sign_dms)} ${signName(a.sign)}`}</title>
{label}
</text>
);
@@ -225,8 +223,7 @@ export function ChartWheel({
strokeWidth={(0.6 + 1.9 * s).toFixed(2)}
>
<title>
{pointName(a.point1)} {ASPECTS[a.aspect]?.hu ?? a.aspect} {pointName(a.point2)} (orbis{" "}
{orbText(a.orb)})
{`${pointName(a.point1)} ${ASPECTS[a.aspect]?.hu ?? a.aspect} ${pointName(a.point2)} (orbis ${orbText(a.orb)})`}
</title>
</line>
);
@@ -244,9 +241,9 @@ export function ChartWheel({
return (
<g key={p.id} className="w-point">
<title>
{pointName(p.id)}: {dms(p.degree_in_sign_dms)} {signName(p.sign)}
{p.retrograde ? ", retrográd" : ""}
{timeKnown && p.house ? `, ${p.house}. ház` : ""}
{`${pointName(p.id)}: ${dms(p.degree_in_sign_dms)} ${signName(p.sign)}${p.retrograde ? ", retrográd" : ""}${
timeKnown && p.house ? `, ${p.house}. ház` : ""
}`}
</title>
<line x1={f(t1x)} y1={f(t1y)} x2={f(t2x)} y2={f(t2y)} className="w-point-tick" />
<line x1={f(t2x)} y1={f(t2y)} x2={f(lx)} y2={f(ly)} className="w-leader" />
@@ -72,9 +72,9 @@ function Ring({
return (
<g key={p.id} className="w-point">
<title>
{who}: {pointName(p.id)} {dms(p.degree_in_sign_dms)} {signName(p.sign)}
{p.retrograde ? ", retrográd" : ""}
{timeKnown && p.house ? `, ${p.house}. ház` : ""}
{`${who}: ${pointName(p.id)} ${dms(p.degree_in_sign_dms)} ${signName(p.sign)}${p.retrograde ? ", retrográd" : ""}${
timeKnown && p.house ? `, ${p.house}. ház` : ""
}`}
</title>
<line x1={f(t1x)} y1={f(t1y)} x2={f(t2x)} y2={f(t2y)} className="w-point-tick" />
<line x1={f(t2x)} y1={f(t2y)} x2={f(lx)} y2={f(ly)} className="w-leader" />
@@ -208,9 +208,7 @@ export function SynastryWheel({
const [x, y] = xy(a.longitude, R_LABEL, start);
return (
<text key={key} x={f(x)} y={f(y)} className="w-axis-label" dominantBaseline="central" textAnchor="middle">
<title>
{name1}: {pointName(key)} {dms(a.degree_in_sign_dms)} {signName(a.sign)}
</title>
<title>{`${name1}: ${pointName(key)} ${dms(a.degree_in_sign_dms)} ${signName(a.sign)}`}</title>
{label}
</text>
);
@@ -236,8 +234,7 @@ export function SynastryWheel({
strokeWidth={(0.6 + 1.9 * s).toFixed(2)}
>
<title>
{name1} {pointName(a.person1)} {ASPECTS[a.aspect]?.hu ?? a.aspect} {name2} {pointName(a.person2)} (orbis{" "}
{orbText(a.orb)})
{`${name1} ${pointName(a.person1)} ${ASPECTS[a.aspect]?.hu ?? a.aspect} ${name2} ${pointName(a.person2)} (orbis ${orbText(a.orb)})`}
</title>
</line>
);