{"id":25075055,"url":"https://github.com/dentednerd/fm-accordion-sass","last_synced_at":"2026-02-28T10:05:13.552Z","repository":{"id":95786662,"uuid":"347170356","full_name":"dentednerd/fm-accordion-sass","owner":"dentednerd","description":"A solution to the FAQ accordion card challenge on Frontend Mentor.","archived":false,"fork":false,"pushed_at":"2021-03-24T08:58:26.000Z","size":388,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-28T00:26:39.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dentednerd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-12T19:04:05.000Z","updated_at":"2021-03-24T08:58:28.000Z","dependencies_parsed_at":"2023-04-23T20:27:07.557Z","dependency_job_id":null,"html_url":"https://github.com/dentednerd/fm-accordion-sass","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dentednerd/fm-accordion-sass","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dentednerd%2Ffm-accordion-sass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dentednerd%2Ffm-accordion-sass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dentednerd%2Ffm-accordion-sass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dentednerd%2Ffm-accordion-sass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dentednerd","download_url":"https://codeload.github.com/dentednerd/fm-accordion-sass/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dentednerd%2Ffm-accordion-sass/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29929621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T09:58:13.507Z","status":"ssl_error","status_checked_at":"2026-02-28T09:57:57.047Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-07T00:29:52.198Z","updated_at":"2026-02-28T10:05:13.523Z","avatar_url":"https://github.com/dentednerd.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend Mentor - FAQ accordion card solution\n\nThis is a solution to the [FAQ accordion card challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/faq-accordion-card-XlyjD0Oam). Frontend Mentor challenges help you improve your coding skills by building realistic projects.\n\n## Table of contents\n\n- [Overview](#overview)\n  - [The challenge](#the-challenge)\n  - [Screenshot](#screenshot)\n  - [Links](#links)\n- [My process](#my-process)\n  - [Built with](#built-with)\n  - [Continued development](#continued-development)\n- [Author](#author)\n- [Acknowledgments](#acknowledgments)\n\n## Overview\n\n### The challenge\n\nUsers should be able to:\n\n- View the optimal layout for the component depending on their device's screen size\n- See hover states for all interactive elements on the page\n- Hide/Show the answer to a question when the question is clicked\n\n### Screenshot\n\n![Screenshot of solution](./screenshot.png)\n\n### Links\n\n- Solution URL: [https://www.frontendmentor.io/solutions/mobilefirst-faq-accordion-card-with-sass-fEUro54g2](https://www.frontendmentor.io/solutions/mobilefirst-faq-accordion-card-with-sass-fEUro54g2)\n- Live Site URL: [https://dentednerd.github.io/fm-accordion-sass/](https://dentednerd.github.io/fm-accordion-sass/)\n\n## My process\n\n### Built with\n\n- Semantic HTML5 markup\n- Sass\n- Flexbox\n- Mobile-first workflow\n\nKept the Javascript minimal:\n\n```js\nfunction onClick() {\n  var thisItem = event.target.parentNode;\n  thisItem.classList.toggle(\"open\");\n};\n```\n\nUsed CSS variables:\n\n```css\n:root {\n  --text-primary-blue: hsl(238, 29%, 16%);\n  --text-primary-red: hsl(14, 88%, 65%);\n  --text-neutral-vdark: hsl(237, 12%, 33%);\n  --text-neutral-dark: hsl(240, 6%, 50%);\n  --bg-violet: hsl(273, 75%, 66%);\n  --bg-blue: hsl(240, 73%, 65%);\n  --divider-blue: hsl(240, 5%, 91%);\n}\n```\n\nEach answer animates into view:\n\n```css\n.answer {\n  height: 0;\n  transform: scaleY(0);\n  transform-origin: center top;\n}\n\n\u0026.open {\n  .answer {\n    height: auto;\n    transform: scaleY(1);\n    transform-origin: center top;\n    transition: transform 0.2s ease-in-out;\n  }\n}\n\n```\n\nThe arrow on each item flips:\n\n```css\nbutton.question {\n  \u0026::after {\n    content: '';\n    background-image: url('../images/icon-arrow-down.svg');\n    transform: scaleY(1);\n    transition: transform 0.2s ease-in-out;\n  }\n}\n\n\u0026.open {\n  button.question {\n    \u0026::after {\n      transform: scaleY(-1);\n      transition: transform 0.2s ease-in-out;\n    }\n  }\n}\n```\n\nMade use of the [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) and [Live Sass Compiler](https://marketplace.visualstudio.com/items?itemName=ritwickdey.live-sass) extensions for VSCode in development.\n\n### Continued development\n\nI'd like to rebuild this in React, with styled-components.\n\n## Author\n\n- Website - [Joey Imlay](https://joeyimlay.dev)\n- Frontend Mentor - [@dentednerd](https://www.frontendmentor.io/profile/dentednerd)\n- Twitter - [@dentednerd](https://www.twitter.com/dentednerd)\n\n## Acknowledgments\n\nI was inspired to pick this up by [Coder Coder](https://www.youtube.com/watch?v=FboXxLxg8eo).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdentednerd%2Ffm-accordion-sass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdentednerd%2Ffm-accordion-sass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdentednerd%2Ffm-accordion-sass/lists"}