{"id":19854420,"url":"https://github.com/6hislain/product-preview-card-component","last_synced_at":"2026-06-16T14:31:23.629Z","repository":{"id":45775967,"uuid":"512039928","full_name":"6hislain/product-preview-card-component","owner":"6hislain","description":"Product preview card component - frontend mentor challenge","archived":false,"fork":false,"pushed_at":"2022-07-16T06:42:06.000Z","size":429,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-23T15:02:56.592Z","etag":null,"topics":["challenge","frontendmentor","frontendmentor-challenge"],"latest_commit_sha":null,"homepage":"https://astounding-tiramisu-40832e.netlify.app/","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/6hislain.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}},"created_at":"2022-07-08T22:21:58.000Z","updated_at":"2023-11-20T08:22:58.000Z","dependencies_parsed_at":"2022-08-28T13:31:30.577Z","dependency_job_id":null,"html_url":"https://github.com/6hislain/product-preview-card-component","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/6hislain/product-preview-card-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6hislain%2Fproduct-preview-card-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6hislain%2Fproduct-preview-card-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6hislain%2Fproduct-preview-card-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6hislain%2Fproduct-preview-card-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/6hislain","download_url":"https://codeload.github.com/6hislain/product-preview-card-component/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6hislain%2Fproduct-preview-card-component/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34410778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"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":["challenge","frontendmentor","frontendmentor-challenge"],"created_at":"2024-11-12T14:09:28.224Z","updated_at":"2026-06-16T14:31:23.611Z","avatar_url":"https://github.com/6hislain.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend Mentor - Product preview card component solution\n\nThis is a solution to the [Product preview card component challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/product-preview-card-component-GO7UmttRfa). 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\n## Overview\n\n### The challenge\n\nUsers should be able to:\n\n- View the optimal layout depending on their device's screen size\n- See hover and focus states for interactive elements\n\n### Screenshot\n\n![Screenshot](./screenshot.png)\n\n### Links\n\n- Solution URL: [github.com/6hislain/product-preview-card-component](https://github.com/6hislain/product-preview-card-component)\n- Live Site URL: [demo on netlify](https://62c8b3308a4a7a1232e54de8--astounding-tiramisu-40832e.netlify.app/)\n\n## My process\n\n### Built with\n\n- Semantic HTML5 markup\n- CSS custom properties\n- Flexbox\n\n### What I learned\n\nWorking on this coding challenge; I learnt about media queries in css\n\n```css\n/* css/style.css line 40 */\n\n/* DESKTOP */\n@media (min-width: 1440px) {\n  .container {\n    min-height: 100vh;\n  }\n\n  .card {\n    max-width: 600px;\n    flex-direction: row;\n  }\n\n  .card-img,\n  .card-body {\n    width: 50%;\n  }\n\n  .card-img {\n    border-radius: 10px 0 0 10px;\n    background-image: url(\"../images/image-product-desktop.jpg\");\n  }\n}\n\n/* MOBILE */\n@media (min-width: 375px) and (max-width: 1440px) {\n  .card {\n    max-width: 320px;\n    flex-direction: column;\n  }\n\n  .card-img {\n    height: 200px;\n    border-radius: 10px 10px 0 0;\n    background-image: url(\"../images/image-product-mobile.jpg\");\n  }\n}\n```\n\nI also learned about flexbox\n\n```css\n/* css/style.css line 8 */\n.container {\n  max-width: 1440px;\n  margin: auto;\n  padding: 20px 0 20px 0;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 30px;\n}\n\n/* css/style.css line 113 */\n.prices {\n  margin: 25px 0 25px 0;\n  display: flex;\n  gap: 30px;\n}\n```\n\n### Continued development\n\nI am going to try completing more coding challenges on _Frontend Mentor_\n\n### Useful resources\n\n- [CSS Tricks - flexbox guide](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) - this article guided me on how to use flexbox\n- [W3 School - css media queries](https://www.w3schools.com/css/css3_mediaqueries.asp) - this also helped me on media queries\n\n## Author\n\n- Bio Link - [bio.link/6hislain](https://www.bio.link/6hislain)\n- Frontend Mentor - [@6hislain](https://www.frontendmentor.io/profile/6hislain)\n- Twitter - [@6hislain](https://www.twitter.com/6hislain)\n\n## Acknowledgments\n\nThanks to [Kevin Powell](https://www.youtube.com/kepowob) youtube videos, I started doing _Frontend Mentor_ challenges\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F6hislain%2Fproduct-preview-card-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F6hislain%2Fproduct-preview-card-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F6hislain%2Fproduct-preview-card-component/lists"}