Skip to content

Dev-Tron/FAQ-accordion-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

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

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • Styled Components - For styles
  • SASS

What I learned

I learned that images can be displayed hidden at different screen sizes, the use of hr tags, and how to properly use landmarks.

<hr>
.accordion-item:target .answer {
    max-height: 10rem;
}

Continued development

I would like to start implementing bootstrap into my projects. This way, I may be able to cut down the time it takes for me to finish a site.

Author

About

FAQ built with HTML5 and SASS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published