Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/bccpadge/faq-accordion-card-main

Frontend Mentor - FAQ Accordion Card using HTML, CSS & JavaScript
https://github.com/bccpadge/faq-accordion-card-main

accessibility frontendmentor-challenge html-css-javascript lighthouse

Last synced: about 1 month ago
JSON representation

Frontend Mentor - FAQ Accordion Card using HTML, CSS & JavaScript

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)
- [Useful resources](#useful-resources)
- [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

![](./desktop.png)

### Links

- Solution URL: [Frontend Mentor](https://www.frontendmentor.io/solutions/responsive-faq-accordion-card-using-html-css-and-js-DSGW7CVYdR)
- Live Site URL: [Github Pages](https://bccpadge.github.io/faq-accordion-card-main/)

## My process

### Built with





### What I learned

I learned you can load CSS in JavaScript using insertAdjacentHTML on the body element.

```js
document.body.insertAdjacentHTML(
"beforeend",
`

`
);
```

### Continued development

I want to learn more how to implement keyboard accessibility within the website.

### Useful resources

- [Web code tools](https://webcode.tools/) - Web code tools website has HTML and CSS snippets. I used the box shadow generator.
- [Cubic Bezier](https://cubic-bezier.com/) - Cubic Beizer Generator website generator
- [ARIA Authoring Pratices Guide (APG)](https://www.w3.org/WAI/ARIA/apg/patterns/accordion/examples/accordion/) - An Accessibile Accordion example for HTML markup
- [Bootstrap 5 Accordion](https://getbootstrap.com/docs/5.3/components/accordion/) - Accordion example

## Author










## Acknowledgments

- [YouTube Tutorial](https://www.youtube.com/watch?v=AxD9slgNDJI)