https://github.com/jkellerman/faq-accordion-card-main
https://github.com/jkellerman/faq-accordion-card-main
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jkellerman/faq-accordion-card-main
- Owner: jkellerman
- Created: 2022-02-04T11:25:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-04T22:05:04.000Z (over 4 years ago)
- Last Synced: 2025-06-07T23:05:01.386Z (about 1 year ago)
- Language: HTML
- Size: 789 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Frontend Mentor - FAQ accordion card solution
This is a solution to the [FAQ accordion card challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/faq-accordion-card-XlyjD0Oam). Frontend Mentor challenges help you improve your coding skills by building realistic projects.
## Table of contents
- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [Continued development](#continued-development)
- [Useful resources](#useful-resources)
- [Author](#author)
## 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
- Solution URL: [Solution](https://github.com/jkellerman/faq-accordion-card-main)
- Live Site URL: [Live](https://jkellerman.github.io/faq-accordion-card-main/)
## My process
### Built with
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
- ES6 JavaScript
### Continued development
- I would like to know how I can make sure that the illustration and the illustration box for desktop version can remain static when the accordion expands and collapses. As the accordion makes the container expand it means the illustrations move with it.
- Also figuring out how to build an accordion without JS is something I would like to look at in the future.
### Useful resources
- [jsfiddle.net](http://jsfiddle.net/eytdnspo/1/) - This helped me with the tricky overflow part of this project. It demonstrates how to make one element be hidden by its parent element whilst the other doesn't.
## Author
- Frontend Mentor - [@jkellerman](https://www.frontendmentor.io/profile/jkellerman)