feat: add TarotCard component with 78-card deck support#8
Merged
Conversation
- TarotCard component wrapping CustomCard for Major/Minor Arcana - createTarotDeck() utility producing standard 78-card deck - 22 Major Arcana (The Fool through The World) with ASCII art - 56 Minor Arcana (Ace-10 + Page/Knight/Queen/King × 4 suits) - Tarot suits: wands, cups, swords, pentacles - Reversed card orientation support - Custom tarot-themed card back design - 22 tests (snapshot renders + deck creation validation) - Storybook view with Major Arcana, pips, court, reversed, and suits demos - Exported from public API (TarotCard, createTarotDeck, all types)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
TarotCardcomponent built on top of the existingCustomCardAPI, along with acreateTarotDeck()utility for generating a standard 78-card tarot deck.What's included
TarotCard component (
src/components/TarotCard/)CustomCardwith tarot-specific semantics via a discriminated union onarcanaarcana="major"+majorIndex0–21): ASCII art for all 22 cards, roman numeral corner symbols, yellow/magenta themingarcana="minor"+suit+value): Auto-generated pip art for numbered cards, court card rendering, cyan themingreversedprop for upside-down card readingsBaseCardPropspass through (faceUp,selected,rounded,effects)createTarotDeck utility (
src/components/TarotCard/utils.ts)Tests (
TarotCard.test.tsx)createTarotDeckvalidation testsStorybook (
TarotCardView.tsx)Usage
Checklist
yarn build)yarn test:fix)src/index.tsx)