This is a simple FAQ accordion card built with ReactJS, HTML, and CSS. It allows users to expand and collapse questions and answers in a clean and user-friendly interface.
- Responsive design
- Animated expand and collapse effect on the questions
- User-friendly interface
- Easy to customize and integrate into your project
- ReactJS
- HTML
- CSS
Desktop version | Mobile version |
- Clone or download the repository
- Navigate to the project directory in your terminal
- Run
npm install
to install the necessary dependencies - Run
npm start
to start the development server - The component will be available at http://localhost:3000
The component can be easily customized by modifying the JSX code in the src/components
directory and the CSS in the src/styles
directory. The map
function is used to loop through the questions and answers in the JSX.
To deploy the component to a live environment, run npm run build
and use the files in the build
directory.
You can see the live solution at: https://hatemhenchir.github.io/faq-accordion-card.
Design inspiration and assets provided by Frontend Mentor
- My LinkedIn: @hatem-henchir-7a92141a8
- My Frontend Mentor: @hatemhenchir