Skip to content

haquanq-frontendmentor/faq-accordion-card

Repository files navigation

Frontend Mentor - FAQ accordion card solution

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.

Solution post Live demo

Table of contents

🌅 Project overview

Challenge requirements

  • 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

Todo

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

🌠 Tech Stack and Approach

Built with

  • HTML5 – Semantic structure
  • Vanilla CSS – Flex layout
  • BrowserSync - Easy development server

Approach

🍃 Local Development

Prerequisites

Install the following:

  • Git (latest version)
  • Node.js (latest LTS recommended)
  • pnpm (latest version)

Setup

git clone https://github.com/haquanq-frontendmentor/faq-accordion-card.git
cd faq-accordion-card
pnpm install

Start Development Server

pnpm dev

🍁 Deployment

Deployed to Github Pages via Github Action.