diff --git a/services/frontend/src/app/Landing.tsx b/services/frontend/src/app/Landing.tsx index 7c142db..a57afce 100644 --- a/services/frontend/src/app/Landing.tsx +++ b/services/frontend/src/app/Landing.tsx @@ -2,11 +2,16 @@ import Link from "next/link"; import { ChartWheel } from "@/components/ChartWheel"; import { Rich } from "@/components/Rich"; +import { TarotCard, TarotCardBack } from "@/components/tarot/TarotCard"; import { Logo, PublicHeader } from "@/components/SiteHeader"; import { Waitlist } from "@/components/Waitlist"; import example from "@/content/pelda.json"; +import { tarotCard } from "@/lib/tarot"; import type { AnalysisContent, ChartResult } from "@/lib/types"; +/** The cards fanned out next to the tarot line (after a card back). */ +const TAROT_CARDS = ["major-2", "major-17"].map((id) => tarotCard(id)).filter((c) => c !== undefined); + // A quiet starfield, the same on every render. const STARS = (() => { let seed = 7; @@ -378,6 +383,28 @@ export function Landing({ inviteOnly }: { inviteOnly: boolean }) { + +
+ +
+ Kártyajóslás is +

+ Egy kérdés, néhány lap +

+

+ Húzz lapot egy konkrét kérdésre: a kirakásodra és a képleted Napjára, Holdjára, Aszcendensére személyre + szabott értelmezés készül. Néhány jóslás minden csomagban benne van. +

+
+ + Példajóslás → + +
diff --git a/services/frontend/src/app/globals.css b/services/frontend/src/app/globals.css index 1d92164..d2ba276 100644 --- a/services/frontend/src/app/globals.css +++ b/services/frontend/src/app/globals.css @@ -938,6 +938,28 @@ a.pair-row:hover strong { color: var(--gold); } .lp-why-card { gap: 12px; padding: 28px; } .lp-why-icon { width: 36px; height: 36px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; } +/* Home page: tarot, a quiet line under the yearly forecast and the comparison */ +.lp-tarot { flex-direction: row; align-items: center; gap: 32px; padding: 22px 32px; margin-top: -16px; } +.lp-tarot-cards { position: relative; width: 132px; height: 112px; flex: none; } +.lp-tarot-cards .tarot-card { position: absolute; top: 12px; width: 56px; border-radius: 5px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); } +.lp-tarot-cards .tarot-card:nth-child(1) { left: 4px; transform: rotate(-11deg); } +.lp-tarot-cards .tarot-card:nth-child(2) { left: 38px; top: 4px; } +.lp-tarot-cards .tarot-card:nth-child(3) { left: 72px; transform: rotate(11deg); } +.lp-tarot-text { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; } +.lp-tarot-text .lp-small { max-width: 640px; } +.lp-tarot-title { font-size: 24px; line-height: 1.15; } +.lp-tarot-link { flex: none; font-size: 14px; font-weight: 500; white-space: nowrap; } +@media (max-width: 720px) { + .lp-tarot { flex-wrap: wrap; gap: 14px 16px; padding: 22px; } + .lp-tarot-cards { width: 104px; height: 88px; } + .lp-tarot-cards .tarot-card { width: 44px; top: 10px; } + .lp-tarot-cards .tarot-card:nth-child(1) { left: 2px; } + .lp-tarot-cards .tarot-card:nth-child(2) { left: 30px; top: 3px; } + .lp-tarot-cards .tarot-card:nth-child(3) { left: 58px; } + .lp-tarot-text { flex: 1 1 100%; } + .lp-tarot-link { flex-basis: 100%; min-height: 44px; display: inline-flex; align-items: center; } +} + /* Home page footer: payment and invoicing partners */ .lp-partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); } .lp-partner { height: 26px; width: auto; opacity: 0.65; transition: opacity 0.2s; }