{"id":24956509,"url":"https://github.com/all-my-frontend-mini-projects/product-preview-card-component_frontend_project","last_synced_at":"2025-06-29T06:07:29.016Z","repository":{"id":219393477,"uuid":"748942740","full_name":"all-my-frontend-mini-projects/Product-preview-card-component_frontend_project","owner":"all-my-frontend-mini-projects","description":"Explore product details seamlessly with this interactive product preview card component. Users can view the optimal layout for the component depending on their device's screen size and experience hover and focus states for interactive elements.","archived":false,"fork":false,"pushed_at":"2024-10-10T10:13:05.000Z","size":275,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T19:13:13.271Z","etag":null,"topics":["beginner-friendly","css","frontend-project","html","interactive","mern-stack","nextjs","nodejs","react","responsive","vanilla-javascript"],"latest_commit_sha":null,"homepage":"https://product-preview-card-comp-frontend.netlify.app/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/all-my-frontend-mini-projects.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-01-27T05:25:25.000Z","updated_at":"2024-10-27T08:11:42.000Z","dependencies_parsed_at":"2024-01-27T06:28:50.498Z","dependency_job_id":"8dd12547-ccea-4261-bbe9-93f3d80efb57","html_url":"https://github.com/all-my-frontend-mini-projects/Product-preview-card-component_frontend_project","commit_stats":null,"previous_names":["sarthak-0-sach/product-preview-card-component_frontend_project","all-my-frontend-mini-projects/product-preview-card-component_frontend_project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/all-my-frontend-mini-projects/Product-preview-card-component_frontend_project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/all-my-frontend-mini-projects%2FProduct-preview-card-component_frontend_project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/all-my-frontend-mini-projects%2FProduct-preview-card-component_frontend_project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/all-my-frontend-mini-projects%2FProduct-preview-card-component_frontend_project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/all-my-frontend-mini-projects%2FProduct-preview-card-component_frontend_project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/all-my-frontend-mini-projects","download_url":"https://codeload.github.com/all-my-frontend-mini-projects/Product-preview-card-component_frontend_project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/all-my-frontend-mini-projects%2FProduct-preview-card-component_frontend_project/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262545037,"owners_count":23326660,"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":["beginner-friendly","css","frontend-project","html","interactive","mern-stack","nextjs","nodejs","react","responsive","vanilla-javascript"],"created_at":"2025-02-03T06:35:37.778Z","updated_at":"2025-06-29T06:07:28.998Z","avatar_url":"https://github.com/all-my-frontend-mini-projects.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Product Preview Card Component\n\n## Explore product details seamlessly with this interactive product preview card component.\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\nExplore product details seamlessly with this interactive product preview card component. Users can view the optimal layout for the component depending on their device's screen size and experience hover and focus states for interactive elements.\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\n### Screenshot\n\n![Design Preview](./design/active-states.jpg)\n\n### Links\n\n- Solution URL: [GitHub Repository](https://github.com/SartHak-0-Sach/Product-preview-card-component_frontend_project)\n- Live Site URL: [Live Site](https://product-preview-card-comp-frontend.netlify.app/)\n\n## My process\n\n### Built with\n\n- HTML5\n- CSS3\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\n### What I learned\n\nLearning has become easier by making projects like these to make interactive responsive layouts for users in real time environment.\nThrough this project, I got to implement almost all concepts that I had previously learned in tutorials and bootcamps which helped me learn them through muscle memory. \n\nJS snippet that I am proud of\n```js\n// Changing the image for mobile version\n\nconst imageElement = document.querySelector(\".product-image\");\nconst mobileImageUrl = \"./images/image-product-mobile.jpg\";\nconst desktopImageUrl = \"./images/image-product-desktop.jpg\";\n\nfunction handleMediaQueryChange(mediaQuery) {\n  if (mediaQuery.matches) {\n    imageElement.src = mobileImageUrl;\n  } else {\n    imageElement.src = desktopImageUrl;\n  }\n}\n\nconst mediaQuery = window.matchMedia(\"(max-width:420px)\");\n\nhandleMediaQueryChange(mediaQuery);\nmediaQuery.addEventListener(\"change\", handleMediaQueryChange);\n```\n\n### Continued development\n\nThe continuously learning journey of a programmer never ends. This project made me realize that there are many concepts that I need to work upon including fundamentals like flex-box and its properties, to more complex concepts like working with fetch and async await in JavaScript. These areas are some that I think I need to work more upon in the upcoming future as they highlight some of the most significant regions of web development that are important for every developer to know of. \n\nThese key points mentioned here will help me grow accountable and consistent towards improving at writing good quality code and be a successful full stack developer one day.\n\n### Useful resources\n\n- [Harkirat Singh course notes](https://github.com/SartHak-0-Sach/harkirat-singh-course_code_and_notes) - I have added notes of all lectures along with code and lecture insights of all weeks along with bonus lectures to help you all as much as I can.\n- [My development code and notes](https://github.com/SartHak-0-Sach/cwh-web-dev-playlist_code_and_notes) - These are my notes that I made while working on my development skills in initial days and did these courses. Make sure to star the repository if you like it.✨💫\n- [MDN documentation hover state for CSS](https://developer.mozilla.org/en-US/docs/Web/CSS/:hover) - This is an amazing article which helped me finally understand hover states. I'd recommend it to anyone still learning this concept.\n\n## Author\n\n\u003cb\u003e\u003cstrong\u003eSarthak Sachdev\u003c/strong\u003e\u003c/b\u003e\n- Website - [Sarthak Sachdev](https://itsmesarthak.netlify.app/)\n- LeetCode - [@sarthak_sachdev](https://leetcode.com/u/sarthak_sachdev/)\n- Twitter - [@sarthak_sach69](https://www.twitter.com/sarthak_sach69)\n\n## Acknowledgments\n\nI feel like the solutions provided on the website and the continuous doubt solving by industry experts on discord for free is something that is unmatched by anyone else and need to be acknowledged for their efforts in improving me as a developer by suggesting the best practices in your respective tech stack.\n\n## Got feedback for me?\n\nI love receiving feedback! I am always looking to improve my code and take up new innovative ideas to work upon. So if you have anything you'd like to mention, please email 'hi' at saarsaach30[at]gmail[dot]com.\n\nIf you liked this project make sure to spread the word and share it with all your friends.\n\n**Happy coding!** ☺️🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fall-my-frontend-mini-projects%2Fproduct-preview-card-component_frontend_project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fall-my-frontend-mini-projects%2Fproduct-preview-card-component_frontend_project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fall-my-frontend-mini-projects%2Fproduct-preview-card-component_frontend_project/lists"}