Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

faq accordion with eleventy

accessibility, sass/scss, eleventy
Darek•140
@DarekRepos
A solution to the FAQ accordion challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

It was a big challenge for me to glue everything together. I improved my use of grids and flexbox, but I'd like to work on more projects to become more confident with these layout methods. I learned how to set up an Eleventy project from scratch. Next time I set up a project differently, there are still some improvements to be made. I was very adventurous and excited to create a solution that saves and loads data from a JSON file. I also tried creating a basic component for the FAQ.

What challenges did you encounter, and how did you overcome them?

I learned about accessibility best practices for decorative elements. I also learned more about Sass variables and how to use basic components with JavaScript and Nunjucks. I encountered trouble with links and CSS url() for background images. I also had issues with permalinks when deploying my site, but documentation proved to be a valuable resource. I successfully learned how to import variables in the newest version of Sass. While I initially had problems with links and URLs on the production environment compared to the development server, I was able to troubleshoot and fix the issues. I've learned to think about solutions and check documentation first before getting overwhelmed. It's important to keep things simple and avoid overengineering solutions.

What specific areas of your project would you like help with?

I'm still confused about when to use rem and em. Have you found any resources with good explanations? I'm not entirely sure if my solution fully meets accessibility standards. Is it a good solution? If you find any mistakes or have suggestions for improvement, please let me know. I will be very grateful.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Darek's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License