arrizkyhp / faq-accordion-card-main

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Table of contents

Overview

The challenge

  • 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

Screenshot

desktop 📱 Mobile Version

Links

My process

Built with

  • CSS custom properties
  • Flexbox
  • CSS Grid
  • BEM naming
  • Sass - CSS extension
  • GulpJS - JS library
  • ReactJS - JS library

What I learned

In This challenge i learned how to make accordion with react js, i used bootstrap accordion as a reference and how to implement the stacked illustration.

Also i learned more about Accessibility on my accordion (clicked faq) i put the source below.

Useful resources

Install

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

to start gulp js processing scss run:

gulp

Author

About


Languages

Language:JavaScript 74.5%Language:HTML 25.5%