{"id":23377558,"url":"https://github.com/mayen007/product-preview-card-component","last_synced_at":"2025-07-27T14:08:11.008Z","repository":{"id":262686410,"uuid":"888038920","full_name":"Mayen007/product-preview-card-component","owner":"Mayen007","description":"A responsive product preview card component solution for the Frontend Mentor challenge. Built using HTML, CSS, and responsive images, this project features a clean and minimal design. It includes mobile-first styling, custom fonts with @font-face, hover effects, and media queries for an optimal user experience on different devices.","archived":false,"fork":false,"pushed_at":"2024-12-11T14:52:49.000Z","size":10052,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T04:32:53.222Z","etag":null,"topics":["beginner","beginner-code","beginner-friendly","card","css-flexbox","html-css","media-queries"],"latest_commit_sha":null,"homepage":"https://mayen007.github.io/product-preview-card-component/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mayen007.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-11-13T17:52:20.000Z","updated_at":"2024-12-17T07:20:11.000Z","dependencies_parsed_at":"2024-11-13T18:53:13.593Z","dependency_job_id":null,"html_url":"https://github.com/Mayen007/product-preview-card-component","commit_stats":null,"previous_names":["mayen007/product-preview-card-component"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mayen007/product-preview-card-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayen007%2Fproduct-preview-card-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayen007%2Fproduct-preview-card-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayen007%2Fproduct-preview-card-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayen007%2Fproduct-preview-card-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mayen007","download_url":"https://codeload.github.com/Mayen007/product-preview-card-component/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mayen007%2Fproduct-preview-card-component/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267368932,"owners_count":24076093,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["beginner","beginner-code","beginner-friendly","card","css-flexbox","html-css","media-queries"],"created_at":"2024-12-21T18:15:44.451Z","updated_at":"2025-07-27T14:08:10.983Z","avatar_url":"https://github.com/Mayen007.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend Mentor - Product Preview Card Component Solution\n\nThis is my solution to the [Product Preview Card Component challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/product-preview-card-component-GO7UmttRfa). This project was a great opportunity to enhance my skills in responsive design using HTML and CSS, focusing on creating a clean, elegant product preview card.\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- [Acknowledgments](#acknowledgments)\n\n## Overview\n\n### The challenge\n\nUsers should be able to:\n\n- View the optimal layout for the product card depending on their device's screen size (mobile or desktop)\n- See hover and focus states for the \"Add to Cart\" button\n\n### Screenshots\n\n#### Desktop View\n\n![Desktop View](./assets/images/desktop-view.png)\n\n#### Mobile View\n\n![Mobile View](./assets/images/mobile-view.png)\n\n### Links\n\n- [Solution URL](https://github.com/Mayen007/product-preview-card) \u003c!-- Add your GitHub repo link --\u003e\n- [Live Site URL](https://mayen007.github.io/product-preview-card) \u003c!-- Add your live site link --\u003e\n\n## My process\n\n### Built with\n\n- **Semantic HTML5** for better structure\n- **CSS Custom Properties** for maintainable and reusable styling\n- **Flexbox** for flexible and responsive layout control\n- **Responsive Images** to provide optimal visuals for both mobile and desktop views\n- **Mobile-first workflow** to ensure a great user experience on smaller screens\n\n### What I learned\n\nHere are some key learnings from this project:\n\n1. **Font Management with @font-face**:\n   - I implemented custom fonts using `@font-face` for a consistent and unique typography style throughout the component.\n   ```css\n   @font-face {\n     font-family: \"Fraunces-Italic\";\n     src: url(\"./assets/fonts/Fraunces/static/Fraunces_144pt_Soft-Black.ttf\")\n       format(\"truetype\");\n     font-weight: 700;\n     font-style: normal;\n   }\n   ```\n2. **Responsive Design Using Media Queries**:\n\n- I used media queries to switch between mobile and desktop layouts. The images are swapped using CSS based on the viewport size.\n\n```css\n@media (max-width: 768px) {\n  .desktop-image {\n    display: none;\n  }\n  .mobile-image {\n    display: block;\n  }\n}\n\n@media (min-width: 768px) {\n  .desktop-image {\n    display: block;\n  }\n  .mobile-image {\n    display: none;\n  }\n}\n```\n\n3. **Button Hover Effects**:\n\n- I applied a smooth transition effect to the \"Add to Cart\" button for a better user interaction experience.\n\n```css\n.card-button:hover {\n  background-color: var(--dark-cyan-hover);\n}\n```\n\n### Continued development\n\nMoving forward, I plan to:\n\n- Experiment more with **CSS Grid** for complex layouts\n- Enhance my understanding of responsive design techniques like **fluid typography**\n- Explore **JavaScript** for adding dynamic interactivity to similar projects\n\n### Useful resources\n\n- [MDN Web Docs - @font-face](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face) - This helped me understand how to implement custom fonts effectively.\n- [CSS Tricks - Media Queries](https://css-tricks.com/css-media-queries/) - A great guide for understanding and utilizing media queries for responsive design.\n\n## Author\n\n- **GitHub** - [Mayen007](https://github.com/Mayen007)\n- **Frontend Mentor** - [@Mayen007](https://www.frontendmentor.io/profile/Mayen007)\n\n## Acknowledgments\n\nThanks to **Frontend Mentor** for providing this challenge, which helped me solidify my understanding of responsive design and CSS techniques.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayen007%2Fproduct-preview-card-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmayen007%2Fproduct-preview-card-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayen007%2Fproduct-preview-card-component/lists"}