Skip to content

tmerrick17/faq-accordion-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 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

Challenge specific to Trevor Merrick

  • Created accordion with just CSS

Screenshot

Links

My process

With the HTML basic content provided, worked on:

  • assigning CSS class names using the BEM method
  • used SASS (7-1 file structure, I only needed to use 4 modular folders in tis project)
  • creating variables in SASS for color schemes, fonts, font-sizes, etc
  • adding Google Fonts provided
  • reset CSS to give all browsers a common starting point

Next worked on:

  • building mobile first
  • Figuring out where to use Flex vs Grid (used both)
  • Worked on media query for smaller-mobile/tablet/desktop

Finally worked on:

  • Worked on accessibility features for the accordion and footer links

Built with

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

What I learned

Using Sass more and more has been great. I've been really learning how to write as little code possible by using Sass. It's very gratifying when I can see where I would have had to write more if I wrote in just CSS.

Working on the accordion was fun. I really showed the power of CSS/Sass alone. I found a video online where someone created a different accordion and went from there. It wasn't too hard really.

Continued development

I need to continue developing my skills in CSS. It is easy to learn and hard to master. I think that sums up CSS. But I love it so that helps.

Useful resources

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published