{"id":20309618,"url":"https://github.com/coder-abdo/frontend-mentor-e-commerce-product-page","last_synced_at":"2025-06-10T19:37:14.107Z","repository":{"id":246833398,"uuid":"820062558","full_name":"coder-abdo/frontend-mentor-E-commerce-product-page","owner":"coder-abdo","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-03T22:01:40.000Z","size":833,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T07:47:13.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://frontend-mentor-e-commerce-product-page-alpha.vercel.app","language":"JavaScript","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/coder-abdo.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-06-25T18:11:15.000Z","updated_at":"2024-07-03T22:01:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"13234423-35f6-4274-99f3-18bc229cade5","html_url":"https://github.com/coder-abdo/frontend-mentor-E-commerce-product-page","commit_stats":null,"previous_names":["coder-abdo/frontend-mentor-e-commerce-product-page"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder-abdo%2Ffrontend-mentor-E-commerce-product-page","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder-abdo%2Ffrontend-mentor-E-commerce-product-page/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder-abdo%2Ffrontend-mentor-E-commerce-product-page/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder-abdo%2Ffrontend-mentor-E-commerce-product-page/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coder-abdo","download_url":"https://codeload.github.com/coder-abdo/frontend-mentor-E-commerce-product-page/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder-abdo%2Ffrontend-mentor-E-commerce-product-page/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259137228,"owners_count":22810646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-11-14T17:28:02.362Z","updated_at":"2025-06-10T19:37:14.060Z","avatar_url":"https://github.com/coder-abdo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend Mentor - E-commerce product page solution\n\nThis is a solution to the [E-commerce product page challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/ecommerce-product-page-UPsZ9MJp6). 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  - [What I learned](#what-i-learned)\n  - [Continued development](#continued-development)\n  - [Useful resources](#useful-resources)\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 site depending on their device's screen size\n- See hover states for all interactive elements on the page\n- Open a lightbox gallery by clicking on the large product image\n- Switch the large product image by clicking on the small thumbnail images\n- Add items to the cart\n- View the cart and remove items from it\n\n### Screenshot\n\n![project screenshot](./src/assets/images/screenshot.png)\n\n### Links\n\n- Solution URL: [frontendmentor solution URL](https://www.frontendmentor.io/solutions/e-commerce-product-page-Ad1dDTNhCT)\n- Live Site URL: [vercel](https://frontend-mentor-e-commerce-product-page-alpha.vercel.app/)\n\n## My process\n\n### Built with\n\n- [React](https://reactjs.org/) - JS library.\n- [TailwindCSS](https://tailwindcss.com/) - For styles.\n- [Zustand](https://zustand-demo.pmnd.rs/) - For state management.\n\n### What I learned\n\nI used React, TailwindCSS, and Zustand to build this project.\n\n```js\nimport { useState } from \"react\";\nimport { useLightBoxStore } from \"../store\";\n\nexport const useLightBoxHook = (images) =\u003e {\n  const closeLightBox = useLightBoxStore((state) =\u003e state.closeLightBox);\n  const selectedImage = useLightBoxStore((state) =\u003e state.selectedImage);\n  const changeImage = useLightBoxStore((state) =\u003e state.changeImage);\n  const [currentImage, setCurrentImage] = useState(0);\n  const handlePrevImage = () =\u003e {\n    setCurrentImage((currentImage - 1 + images.length) % images.length);\n    changeImage(currentImage);\n  };\n  const handleNextImage = () =\u003e {\n    setCurrentImage((currentImage + 1) % images.length);\n    changeImage(currentImage);\n  };\n  return { closeLightBox, selectedImage, handleNextImage, handlePrevImage };\n};\n```\n\n### Continued development\n\nI will continue building challenges with more technologies such as `Vue`, `Svelte`, and `Solid`.\n\n## Author\n\n- Website - [my portfolio](https://abdelmonaem-portfolio.vercel.app/)\n- Frontend Mentor - [@coder-abdo](https://www.frontendmentor.io/profile/coder-abdo)\n- LinkedIn - [abdelmonaem](https://www.linkedin.com/in/abdelmonaem/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder-abdo%2Ffrontend-mentor-e-commerce-product-page","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoder-abdo%2Ffrontend-mentor-e-commerce-product-page","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder-abdo%2Ffrontend-mentor-e-commerce-product-page/lists"}