Annmayn / fem_faq_accordion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Frontend Mentor - FAQ accordion solution

This is a solution to the FAQ accordion challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

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

Screenshot

Desktop view Mobile view

Links

My process

Built with

  • Flexbox
  • Mobile-first workflow
  • React
  • Typescript
  • Tailwind

What I learned

useOutsideClick is useful but I couldn't make it bubble the event for some reason.

Continued development

I'd want to make useOutsideClick viable, as that would make for a good design pattern

Author

About


Languages

Language:TypeScript 60.5%Language:CSS 21.0%Language:JavaScript 13.8%Language:HTML 4.7%