Skip to content

kens-visuals/3-column

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 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

screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • SCSS variables
  • CSS Flexbox
  • CSS Grid
  • Mobile-first workflow

What I learned

I experimented with CSS Grid where my goal was to make the project fully responsive using media queries as little as possible

To see how you can add code snippets, see below:

<div class="col">
  <div class="col--1">
    <h1 class="col__heading">Sedans</h1>
    <p class="col__text">Choose a sedan for its affordability...</p>
    <a class="btn orange">Learn more</a>
  </div>
</div>
.col {
  /* ... */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  /* ... */
}

Continued development

Planning on using more CSS Grid and Flexbox, to improve the overall workflow and maintainability of the code. Also considering on researching about media queries and responsive web development

Useful resources

  • stackedit.io - This website helped me to write my markdown files faster and easier, highly recommended.

  • Flexbox Cheat Sheet and Grid Cheat Sheet - These two amazing websites can be very useful for beginners to improve their skills in CSS flexbox and grid.

Author