A beautiful, minimal frontend-only tarot web application built with React and Vite. Designed to be lightweight and statically deployable to GitHub Pages.
- Full 78-card Tarot Deck (Major and Minor Arcana)
- Shuffle button (required before drawing)
- 3-card spread (Past, Present, Future)
- Reveal cards one by one (or all at once)
- Support for reversed cards
- Mobile responsive, minimal glassmorphism aesthetics
src/components/Card.jsx: Face-down/face-up card component with 3D flip animation.src/components/Spread.jsx: Layout container for the 3-card spread.src/components/Controls.jsx: Buttons for shuffling, drawing, and resetting.src/data/deck.js: Data generation for the 78 tarot cards.src/App.jsx: Main application state holding the deck logic and drawn cards.
- Install dependencies:
npm install
- Start development server:
npm run dev
- Build the project:
npm run build
- The output will be in the
distfolder. - You can use the
gh-pagespackage to deploy:Or simply push the project to GitHub and configure GitHub Actions / Pages to serve from thenpx gh-pages -d dist
distfolder or root based on your repository setup. (Thevite.config.jsis already set to use relative paths).