Skip to content

nablanco/product-preview-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Product preview card component solution

Table of contents

Overview

Build out a product preview card component and get it to look as close as possible to the design preview and style-guide.

Important note: I followed the screen sizing in the style guide literally, and so the webpage will only work at the specified 375px and 1440px. In the future, I will have the component change from vertical to horizontal at a screen width in-between the two.

The challenge

Users should be able to:

  • View the optimal layout depending on their device's screen size:
    • Mobile: width = 375px
    • Desktop: width = 1440px
  • See hover state for the "Add to Cart" button.

Screenshot

Links

My process

  • Building out HTML to determine overall structure.
    • Create parent component which will hold image and story divs
    • Add mobile and desktop images to image div
    • Organize story div with approriate text elements
  • Build out style sheet.

Built with

  • Semantic HTML5
  • CSS custom properties
  • Flexbox
  • CSS Flex
  • Mobile-first workflow

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published