elidrissidev / faq-accordion-card

This is a solution to the FAQ accordion card challenge on Frontend Mentor.

Home Page:https://faq-accordion-card-elidrissidev.vercel.app/

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

Users should be able to:

  • 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

Mobile (375px) Deskop (1440px)
Mobile Desktop

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • Parcel

What I learned

I learned in this challenge about the details and summary elements that can be used to build an accordion, it was funny because I stumbled accross them only after building the entire thing with javascript :D, but still better late than never.

Continued development

Positioning the image in both desktop and mobile was the most difficult part of this challenge for me. I was confused at first if I should be using a background image on a div, an img, or ::before pseudo-class which is what I ended up using. Hopefully in the next challenges It will get easier as I get to practice it more.

Useful resources

Author

License

This project is licensed under the MIT License.

About

This is a solution to the FAQ accordion card challenge on Frontend Mentor.

https://faq-accordion-card-elidrissidev.vercel.app/

License:MIT License


Languages

Language:CSS 72.1%Language:HTML 23.8%Language:JavaScript 4.1%