Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/haquanq/fm-faq-accordion

Solution for frontendmentor.io challenge: faq-accordion
https://github.com/haquanq/fm-faq-accordion

accessibility css frontendmentor frontendmentor-challenge frontendmentor-solution html javascript js

Last synced: 9 days ago
JSON representation

Solution for frontendmentor.io challenge: faq-accordion

Awesome Lists containing this project

README

        

## Frontend Mentor - FAQ accordion solution

This is a solution to the [FAQ accordion challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/faq-accordion-wyfFdeBwBz).
Frontend Mentor challenges help you improve your coding skills by building realistic projects.

### The challenge

- No access to design files, attempt pixel-perfect

Users should be able to:

- Hide/Show the answer to a question when the question is clicked
- Navigate the questions and hide/show answers using keyboard navigation alone
- View the optimal layout for the interface depending on their device's screen size
- See hover and focus states for all interactive elements on the page

### Solution

- Built with: `HTML` `CSS` `JS`
- Mobile-first workflow

![](./.docs/design/desktop-design.jpg)

## Working in `fm-faq-accordion` repository

### Clone this project to your machine

Make sure you have Git installed in your system, open new terminal, run the following command:

```
git clone https://github.com/haquanq/fm-faq-accordion.git
```

Then, run `npm install` to install all dependencies.

```
npm install
```

### Development workflow

In terminal, run `npm run dev` to start development server:

```
npm run dev
```