Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zun-liang/fem-faq-accordion-card

Frontend Mentor Challenge Solution FAQ Accordion Card
https://github.com/zun-liang/fem-faq-accordion-card

css html javascript

Last synced: 9 days ago
JSON representation

Frontend Mentor Challenge Solution FAQ Accordion Card

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)
- [What I learned](#what-i-learned)
- [Continued development](#continued-development)
- [Author](#author)
- [Acknowledgments](#acknowledgments)

## 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

- Mobile screenshot: [here](./screenshots/screenshot-mobile.png)
- Desktop screenshot: [here](./screenshots/screenshot-desktop.png)

### Links

- Solution URL: [here](https://www.frontendmentor.io/solutions/faqaccordioncard-using-html-css-and-javascript-A3eaqmaPbk)
- Live Site URL: [here](https://zun-liang.github.io/fem-faq-accordion-card/)

## My process

### Built with

- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Javascript
- Mobile-first workflow

### What I learned

- positioning
- overflow
- NodeList

### Continued development

- DOM
- React

## Author

- Website - [Zun Liang](https://zunldev.com/)
- GitHub - [@zun-liang](https://github.com/zun-liang)
- Frontend Mentor - [@zun-liang](https://www.frontendmentor.io/profile/zun-liang)
- freeCodeCamp - [@zun-liang](https://www.freecodecamp.org/zun-liang)

## Acknowledgments

Thanks so much for [Manoj Kumar Singh](https://www.frontendmentor.io/profile/dev-mksingh)'s generous help on solving the desktop view's overflow problem!