{"id":18232776,"url":"https://github.com/rafal19987/accordion","last_synced_at":"2026-04-12T12:35:12.017Z","repository":{"id":259778159,"uuid":"878823981","full_name":"rafal19987/accordion","owner":"rafal19987","description":"Accordion Component with Sanity CMS integration","archived":false,"fork":false,"pushed_at":"2024-11-03T15:50:45.000Z","size":819,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-18T06:24:16.927Z","etag":null,"topics":["accordion-component","dynamic","frontend","nextjs","sanity","tailwindcss","typescript","vercel"],"latest_commit_sha":null,"homepage":"https://accordion-lilac-omega.vercel.app","language":"TypeScript","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/rafal19987.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":"2024-10-26T07:52:36.000Z","updated_at":"2024-11-03T15:50:49.000Z","dependencies_parsed_at":"2024-11-04T14:03:40.396Z","dependency_job_id":null,"html_url":"https://github.com/rafal19987/accordion","commit_stats":null,"previous_names":["rafal19987/accordion"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rafal19987/accordion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafal19987%2Faccordion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafal19987%2Faccordion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafal19987%2Faccordion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafal19987%2Faccordion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafal19987","download_url":"https://codeload.github.com/rafal19987/accordion/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafal19987%2Faccordion/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31715492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["accordion-component","dynamic","frontend","nextjs","sanity","tailwindcss","typescript","vercel"],"created_at":"2024-11-04T14:03:38.307Z","updated_at":"2026-04-12T12:35:11.988Z","avatar_url":"https://github.com/rafal19987.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Accordion Component for [Kryptonum Software house](https://kryptonum.eu/pl) Dev Task\n\n#### Live version [here](https://accordion-lilac-omega.vercel.app/)\n\n![public/screenshots/5](./public/screenshots/5.webp)\n\n\u003cbr /\u003e\n\n## How to run the project locally on Windows with npm:\n\nClone the repository\n\n```bash\ngit clone https://github.com/rafal19987/accordion.git\n```\n\nNavigate to the folder\n\n```bash\ncd accordion\n```\n\nInstall dependencies\n\n```bash\nnpm install\n```\n\nCreate .env file in root folder and create there variables from .env.EXAMPLE file\n\nStart the development environment\n\n```bash\nnpm run dev\n```\n\nGo to http://localhost:3000/\n\n\u003cbr /\u003e\n\n## Description:\n\nThe task was to recreate an accordion component based on a Figma mockup. Initially, I started creating a project based on a template created by programmer [Bogumił Milewski](https://github.com/milewskibogumil), who created the [Astro-Sanity-Starter](https://github.com/milewskibogumil/astro-sanity-starter) integration based on turborepo and bun. Unfortunately, I encountered a bug on Windows 11 that caused the bun to be changed to npm. The bug is described [here](https://github.com/getcursor/cursor/issues/1007).\n\nA big inspiration was also the [accordion component created by the same developer](https://github.com/kryptonum-dev/kryptonum-eu/blob/main/apps/astro/src/components/ui/Accordion.astro). During the development I found that the code borrowed too much from Bogumił's work, which I didn't feel comfortable with. So I decided to slightly change the implementation of the Sanity integration based on Next.js, also replacing scss with Tailwind, to add some freshness, drawing a lot of inspiration from the naming convention of elements and the schema structure for Sanity components.\n\nIn this way, instead of copying a large part of someone else's work, I wanted to demonstrate to everyone my actual skills and mindset of how I would approach the task, rather than working in a fully prepared environment. Mea Culpa\n\n\u003cbr /\u003e\n\n## Techstack:\n\n- [Next.js](https://nextjs.org/)\n- [Tailwind](https://tailwindcss.com/)\n- [Typescript](https://www.typescriptlang.org/)\n\n#### Tools\n\n- [Eslint](https://eslint.org/)\n- [Tailwind Typography Plugin](https://v1.tailwindcss.com/docs/typography-plugin)\n- [Sanity CMS](https://www.sanity.io/)\n\n#### Deployment\n\n- [Vercel](https://vercel.com/)\n\n\u003cbr /\u003e\n\n## Functionalities:\n\n- [x] Creating an accordion component\n- [x] Button that loads more questions with answers than the initial 10\n- [x] Accessibility using the details and summary tags\n- [x] Animated indicator informing about opening or closing details\n- [x] Animated gradient effect as border for expanded details\n- [x] Progressbar informing to what extent we have discovered all the questions with answers\n- [x] Connecting full site management via Sanity CMS\n- [x] Styling the entire site with Tailwind\n- [x] Using Tailwind Typography for content with prose\n- [x] Static typing with typescript\n- [x] Responsiveness for different screens\n- [x] Creating a sitemap and robots file\n- [x] Lighthouse score 100% for desktop and mobile\n\n\u003cbr /\u003e\n\n## ScreenShots:\n\n![public/screenshots/6](./public/screenshots/6.webp)\n\n![public/screenshots/1](./public/screenshots/1.webp)\n![public/screenshots/2](./public/screenshots/2.webp)\n\n![public/screenshots/3](./public/screenshots/3.webp)\n![public/screenshots/4](./public/screenshots/4.webp)\n\n![public/screenshots/5](./public/screenshots/5.webp)\n\n![public/screenshots/6](./public/screenshots/7.webp)\n\n![public/screenshots/8](./public/screenshots/8.webp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafal19987%2Faccordion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafal19987%2Faccordion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafal19987%2Faccordion/lists"}