Loading...

  • HTML
  • CSS
  • JS
free

FAQ accordion card

Newbie

Assets Provided Include

  • Sketch and Figma design file access - Unlock access with pro
  • JPEG design files for mobile & desktop layouts
  • Style guide for fonts, colours, etc
  • Optimized image assets
  • README file to help you get started
  • HTML file with pre-written content

Challenge

Brief

Your challenge is to build out this FAQ accordion card and get it looking as close to the design as possible.

You can use any tools you like to help you complete the challenge. So if you've got something you'd like to practice, feel free to give it a go.

Your 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
  • Bonus: Complete the challenge without using JavaScript

Download the starter code and go through the README.md file. This will provide further details about the project. The style-guide.md file is where you'll find colors, fonts, etc.

Want some support on the challenge? Join our Slack community and ask questions in the help channel.

Getting started

  1. Download the starter code
  2. Set up the project with version control (e.g. Git)

  3. Read the README.md file and have a look around the project

  4. Get colors, fonts etc from the style-guide.md file

  5. Set up your project/file architecture however you want

  6. Start coding!

Ideas to test yourself

  • Write your styles using a pre-processor, such as Sass, Less or Stylus

  • Practice working in a team by building with friends

  • Train your eye for detail by getting your solution as close to the design as you can

  • Try estimating the time it will take for you to build the project then see if the time taken matches up to your estimate

FAQs

Slack logo

Join our Slack community

Join over 27,000 people taking the challenges, talking about their code, helping each other, and chatting about all things front-end!