Home page: a quiet tarot line under the forecast and comparison cards
Three small fanned cards (a back, the High Priestess, the Star), one sentence and a link to the example reading; the side feature stays smaller than the cards above it. On phones the cards sit above the text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -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 }) {
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<article className="card lp-tarot" aria-labelledby="tarot-title">
|
||||
<div className="lp-tarot-cards" aria-hidden="true">
|
||||
<TarotCardBack />
|
||||
{TAROT_CARDS.map((card) => (
|
||||
<TarotCard key={card.id} card={card} />
|
||||
))}
|
||||
</div>
|
||||
<div className="lp-tarot-text">
|
||||
<span className="eyebrow">Kártyajóslás is</span>
|
||||
<h3 id="tarot-title" className="lp-tarot-title">
|
||||
Egy kérdés, néhány lap
|
||||
</h3>
|
||||
<p className="lp-small">
|
||||
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>
|
||||
</div>
|
||||
<Link href="/kartyajoslas/pelda" className="lp-tarot-link">
|
||||
Példajóslás →
|
||||
</Link>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user