Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/almerleoalmazan/product-preview-card-component

Product preview card component
https://github.com/almerleoalmazan/product-preview-card-component

Last synced: about 1 month ago
JSON representation

Product preview card component

Awesome Lists containing this project

README

        

# Frontend Mentor - Product preview card component solution

This 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.

## Table of contents

- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Useful resources](#useful-resources)
- [Author](#author)

## Overview

### The challenge

Users should be able to:

- View the optimal layout depending on their device's screen size
- See hover and focus states for interactive elements

### Screenshot

![Mobile](./screenshots/first.png)

### Links

- Solution URL: [https://github.com/almerleoalmazan/product-preview-card-component](https://github.com/almerleoalmazan/product-preview-card-component)
- Live Site URL: [https://aa-product-preview-card-component.netlify.app/](https://aa-product-preview-card-component.netlify.app/)

## My process

### Built with

- CSS custom properties
- Flexbox
- Mobile-first workflow

### What I learned

I learned how to conditionally select image in different views (mobile and desktop).

### Useful resources

- [Josh Comeau - CSS Reset](https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles)
- [CSS Ordering Properties](https://css-tricks.com/poll-results-how-do-you-order-your-css-properties/) - This is an amazing article which helped me to organize my css properties.

## Author

- Frontend Mentor - [@almerleoalmazan](https://www.frontendmentor.io/profile/almerleoalmazan)