/frontEndMentor_ch01

Product preview card component

Primary LanguageCSS

Frontend Mentor - Product preview card component solution

This is a solution to the Product preview card component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

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 Version Solution

drawing

  • Desktop Version Solution

drawing

Links

My process

Built with

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

What I learned

Importing fonts directly on CSS

import url('link');

Setting variables in CSS

::root {
    --var1: parameters;
    --var2: parameters;
}

I learned a lot about the use of Grid and Flex as well as how to format my layouts according to a screen size.

Continued development

I would like to develop more using Flex and Grid.

Useful resources

Author

Acknowledgments

I would like to thanks Keving Powell for all the tips and trick and for guiding me to Frontend Mentor.