Skip to content

This repository is an exercise from a Frontend Mentor challenge made during a course at Wild Code School.

Notifications You must be signed in to change notification settings

webdevbynight/faq-accordion-card-main

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

Screenshots

Screenshot of the solution on desktop Screenshot of the solution on mobile

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS (via SCSS)
    • custom properties
    • pseudo-classes
    • pseudo-elements
    • CSS sprite
  • Mobile-first workflow

What I learned

I learned how to show and hide the answers of the questions without using any line of JavaScript.

Safari is buggy when using a pseudo-element with a height defined at 100%: when opening an answer, the container does not fit its new calculated height.

Continued development

Even if I did not feel I spent too much time carrying out this challenge, I still have to learn about how to make front-end development in a more efficient way and to learn to manage to build web pages without seeming to be too slow.

Useful resources

Author

About

This repository is an exercise from a Frontend Mentor challenge made during a course at Wild Code School.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published