This is a solution to the Rock, Paper, Scissors challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
- View the optimal layout for the game depending on their device's screen size
- Play Rock, Paper, Scissors against the computer
- Maintain the state of the score after refreshing the browser (optional)
- Bonus: Play Rock, Paper, Scissors, Lizard, Spock against the computer (optional)
Features
- Replaced 'Rock, Paper, Scissors, Lizard, Spock' with 'Pumpkin, Vampire, Death, Candy, and Frankenstein' for halloween
- Toggle between dark/light mode
Accessibility
- Responsive accross different screen sizes
- Added custom indicator when interactive elements focused
- HTML5 – Semantic structure
- React – Ease of use, great eco-system
- TailwindCSS – Utility-first CSS for fast development
- TypeScript - Interactivity and application logic
- Vite - Fast development server, production build and easy configuration.
- Mobile-first workflow for better performance on smaller devices
- Accessibility guided by ARIA Authoring Practices Guide (APG).
Install the following:
- Git (latest version)
- Node.js (latest LTS recommended)
- pnpm (latest version)
git clone https://github.com/haquanq-frontendmentor/rock-paper-scisoors.git
cd rock-paper-scisoors
pnpm install
pnpm dev
Deployed to Github Pages via Github Action.
