Skip to content

akshaymagrani/webDev-n16-3-column-preview-card-component-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - 3-column preview card component solution

This is a solution to the 3-column preview card component challenge on Frontend Mentor.

Table of contents

Overview

The challenge

Users should be able to:

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

Screenshot

desktop screenshot

Links

My process

Built with

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

What I learned

Recap over some of your major learnings while working through this project.

/*Use of CSS variables*/
:root {
  /*bg-colors*/
  --brightOrange: hsl(31, 77%, 52%);
  --darkCyan: hsl(184, 100%, 22%);
  --veryDarkCyan: hsl(179, 100%, 13%);
  /*text-colors*/
  --paragraphs: hsla(0, 0%, 100%, 0.75);
  --bg_headings_buttons: hsl(0, 0%, 95%);
}
/*D.R.Y Code using multiple classes at once*/
.sedan,
.suv,
.luxury {
  padding: 3rem;
  max-width: 220px;
  margin: auto;
}

If you want more help with writing markdown, we'd recommend checking out The Markdown Guide to learn more.

Continued development

Techniques I found useful that I want to refine and perfect:

  • Transitions before and after pages load.
  • Libraries to make animation easier.
  • Difference between different display styles and associated position values.

Author