Skip to content

hadodev/FaqAccordion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - FAQ accordion solution

This is a solution to the FAQ accordion challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • Hide/Show the answer to a question when the question is clicked
  • Navigate the questions and hide/show answers using keyboard navigation alone
  • View the optimal layout for the interface depending on their device's screen size
  • See hover and focus states for the questions

Screenshot

Desktop screenshot

Mobile screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • Vanilla CSS
  • CSS custom properties for colors
  • Flexbox for summary tag
  • CSS Grid for body tag
  • Responsive design based on clamp() function

Useful resources

  • CSS reset - Modern CSS reset.
  • Image compressor - This online image optimizer uses a smart combination of the best optimization and lossy compression algorithms to shrink JPEG, GIF and PNG images to the minimum possible size while keeping the required level of quality.
  • @font-face generator - Modern and simple css @font-face generator.

Author

Acknowledgments

For all authors who publish open source ressources and contents freely available and make Internet more awesome.