One-card readings: no 'cards together' section
CI / test (push) Successful in 2m10s
CI / build (push) Successful in 8m53s
CI / deploy (push) Skipped

With a single card the synthesis is about how its message shows in practice
(prompt rule and schema description), and the section is titled
'A gyakorlatban' instead of 'A lapok együtt'.

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-22 11:23:29 +00:00
co-authored by Claude Opus 5.5
parent f7b9af5e8c
commit f8386cbf55
2 changed files with 28 additions and 7 deletions
@@ -16,6 +16,8 @@ export function TarotResult({
question: string | null;
content: TarotContent;
}) {
// A single card has nothing to read it with: its synthesis is about everyday life.
const together = cards.length === 1 ? "A gyakorlatban" : "A lapok együtt";
return (
<article className="tarot-result">
<header className="tarot-result-head">
@@ -51,8 +53,8 @@ export function TarotResult({
</ol>
{content.synthesis && (
<section className="tarot-synthesis" aria-label="A lapok együtt">
<h3>A lapok együtt</h3>
<section className="tarot-synthesis" aria-label={together}>
<h3>{together}</h3>
<Paragraphs text={content.synthesis} />
</section>
)}