This is a solution to the FAQ accordion card challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
- View the optimal layout for the component depending on their device's screen size
- See hover states for all interactive elements on the page
- Hide/Show the answer to a question when the question is clicked
Features
- Accordion component
- Accessible to screen readers
- Expand/collapse when users click on title (has smooth animation)
Accessibility
- Page is responsive to different screen sizes
- Interactive eleemnts have clear focus indicator
- HTML5 – Semantic structure
- Vanilla CSS – Flex layout
- BrowserSync - Easy development server
- 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/faq-accordion-card.git
cd faq-accordion-card
pnpm install
pnpm dev
Deployed to Github Pages via Github Action.
