Accordion layout has all answers hidden and shows the answer when you click on the question. It makes the widget compact and clear, while you can create long detailed answers and avoid messy page made with HTML, CSS/Sass, JavaScript.
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
- Solution URL: Solution URL here
- Live Site URL: Solution URL here
- Semantic HTML5 markup
- CSS, Sass
- Flexbox
- Desktop First Workflow
- HTML DOM Document querySelector and querySelectorAll()
- JavaScript Array forEach()
- JavaScript if Statement
- HTML DOM Element classList.remove and classList.toggle
The designs were created to the following widths:
- Mobile: 375px
- Desktop: 1440px
- Very dark desaturated blue: hsl(238, 29%, 16%)
- Soft red: hsl(14, 88%, 65%)
Background gradient:
- Soft violet: hsl(273, 75%, 66%)
- Soft blue: hsl(240, 73%, 65%)
- Very dark grayish blue: hsl(237, 12%, 33%)
- Dark grayish blue: hsl(240, 6%, 50%)
- Light grayish blue: hsl(240, 5%, 91%)
- Font size: 12px
- Family: Kumbh Sans
- Weights: 400, 700