{"id":24785804,"url":"https://github.com/webdevbynight/faq-accordion-card-main","last_synced_at":"2026-02-16T19:03:21.335Z","repository":{"id":157471156,"uuid":"633109042","full_name":"webdevbynight/faq-accordion-card-main","owner":"webdevbynight","description":"This repository is an exercise from a Frontend Mentor challenge made during a course at Wild Code School.","archived":false,"fork":false,"pushed_at":"2023-04-27T16:27:33.000Z","size":481,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-11T22:49:10.499Z","etag":null,"topics":["exercise","frontendmentor-challenge"],"latest_commit_sha":null,"homepage":"https://webdevbynight.github.io/faq-accordion-card-main/","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/webdevbynight.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":"2023-04-26T19:55:06.000Z","updated_at":"2024-09-03T01:33:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"2a41a619-436d-40c1-9987-d50b8714ce9b","html_url":"https://github.com/webdevbynight/faq-accordion-card-main","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/webdevbynight/faq-accordion-card-main","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbynight%2Ffaq-accordion-card-main","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbynight%2Ffaq-accordion-card-main/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbynight%2Ffaq-accordion-card-main/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbynight%2Ffaq-accordion-card-main/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdevbynight","download_url":"https://codeload.github.com/webdevbynight/faq-accordion-card-main/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbynight%2Ffaq-accordion-card-main/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29515516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"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":["exercise","frontendmentor-challenge"],"created_at":"2025-01-29T14:31:36.538Z","updated_at":"2026-02-16T19:03:21.302Z","avatar_url":"https://github.com/webdevbynight.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  - [Screenshots](#screenshots)\n  - [Links](#links)\n- [My process](#my-process)\n  - [Built with](#built-with)\n  - [What I learned](#what-i-learned)\n  - [Continued development](#continued-development)\n  - [Useful resources](#useful-resources)\n- [Author](#author)\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### Screenshots\n\n![Screenshot of the solution on desktop](./screenshot-1.jpg)\n![Screenshot of the solution on mobile](./screenshot-2.jpg)\n\n### Links\n\n- Solution URL: [https://github.com/webdevbynight/faq-accordion-card-main](https://github.com/webdevbynight/faq-accordion-card-main)\n- Live Site URL: [https://webdevbynight.github.io/faq-accordion-card-main/](https://webdevbynight.github.io/faq-accordion-card-main/)\n\n## My process\n\n### Built with\n\n- Semantic HTML5 markup\n- CSS (via SCSS)\n  - custom properties\n  - pseudo-classes\n  - pseudo-elements\n  - CSS sprite\n- Mobile-first workflow\n\n### What I learned\n\nI learned how to show and hide the answers of the questions without using any line of JavaScript.\n\nSafari is buggy when using a pseudo-element with a height defined at 100%: when opening an answer, the container does not fit its new calculated height.\n\n### Continued development\n\nEven if I did not feel I spent too much time carrying out this challenge, I still have to learn about how to make front-end development in a more efficient way and to learn to manage to build web pages without seeming to be too slow.\n\n### Useful resources\n\n- [The “Interactive elements” section from the HTML 5 specification](https://html.spec.whatwg.org/multipage/interactive-elements.html#interactive-elements) - This helped me to learn about the `details` and `summary` elements and the `open` attribute.\n- [Can I use… HTML element: summary: `display: list-item`](https://caniuse.com/mdn-html_elements_summary_display_list_item) - This helped me about browsers compatibility of the use of `display: list-item` (and therefore of the `list-style-*` properties) on the `summary` element.\n- [Quick Reminder that Details/Summary is the Easiest Way Ever to Make an Accordion](https://css-tricks.com/quick-reminder-that-details-summary-is-the-easiest-way-ever-to-make-an-accordion/) - This article helped me to find an excellent solution to carry out the challenge, including its bonus (i.e. to make an accordion without JavaScript).\n- [Two Issues Styling the Details Element and How to Solve Them](https://css-tricks.com/two-issues-styling-the-details-element-and-how-to-solve-them/) - This article helped me about some issues when styling a `details` element.\n- [Personnaliser le marqueur de révélation](https://developer.mozilla.org/fr/docs/Web/HTML/Element/details#personnaliser_le_marqueur_de_r%C3%A9v%C3%A9lation) - This section of article (in French) gives a tip to customise the disclosure widget on Safari, which does not support the standard way of customising it (at the time when I wrote these lines, the issue concerned Safari 16.4 and lower versions).\n\n## Author\n\n- Website - [@webdevbynight](https://github.com/webdevbynight)\n- Frontend Mentor - [@webdevbynight](https://www.frontendmentor.io/profile/webdevbynight)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevbynight%2Ffaq-accordion-card-main","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdevbynight%2Ffaq-accordion-card-main","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevbynight%2Ffaq-accordion-card-main/lists"}