This is a solution to the Pricing component with toggle challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the component depending on their device's screen size ✅
- Control the toggle with both their mouse/trackpad and their keyboard ✅
- Bonus: Complete the challenge with just HTML and CSS ❎ (
tailwindcss)
Target Build:
Solution Built:
- Solution URL: GitHub Source Code
- Live Site URL: Vercel Deployed Demo
- Semantic HTML5 markup
- Mobile-first workflow
- React - JS library
- TailwindCSS - CSS framework
- Vite - Build Tool
- I learnt how to create a toggle using
input:checkbox+labelhtml elements. (Toggle.jsx)
Work with Claude as described in
AGENTS Collaboration Specification file
Node.js (v20+ recommended) Git
To run this project locally, follow these steps:
- Clone your fork of the repository:
git clone https://github.com/yourusername/pricing-component.git- Navigate to the project directory
cd pricing-component- Install dependencies
npm install- Start the development server
npm run devThe app will be available at: http://localhost:5173
npm run build
npm run preview- Personal Website - alfred.code
- Frontend Mentor - @TonyFred-code
- X (previously Twitter) - @alfredfaith35


