Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Frontend Mentor - 3-column preview card component solution

This is a solution to the 3-column 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

Your challenge is to build out this 3-column preview card component and get it looking as close to the design as possible.

You can use any tools you like to help you complete the challenge. So if you've got something you'd like to practice, feel free to give it a go.

Your users should be able to:

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

Screenshot

Screen Shot.png

Links

My process

Built with

  • Semantic HTML5 markup
  • SCSS
  • CSS custom properties
  • CSS Grid
  • SCSS mixin

What I learned

Today, I explored the practical application of SCSS mixins, focusing on their versatility in managing parameters. A key observation is the capability to modify arguments when utilizing mixins, thereby improving their adaptability in diverse scenarios

Code Highlights

  • utilizing parameter and argument in mixin
// mixin for card and btn
@mixin card($card-primary-color) {
  background-color: $card-primary-color;

  .btn {
    color: $card-primary-color;
    background-color: white;

    &:hover,
    &:focus,
    &:active {
      color: white;
      background-color: transparent;
      outline: 2px solid white;
    }
  }
}

.card:nth-child(1) {
  @include card(var(--bright-orange));
}

.card:nth-child(2) {
  @include card(var(--dark-cyan));
}

.card:nth-child(3) {
  @include card(var(--very-dark-cyan));
}

Useful resources

Author

Acknowledgments

I would like to express my gratitude to the creators of the Frontend Mentor platform for providing an engaging and practical challenge in the form of the Blog Preview Card. The hands-on experience gained through tackling this project has significantly contributed to my growth as a web developer.

I want to acknowledge the supportive community at Frontend Mentor. The platform's collaborative environment and constructive feedback from peers have been invaluable in refining my skills and pushing me to strive for excellence.

This project has been a rewarding learning experience, and I look forward to applying these insights in future endeavors. Thank you to everyone who has played a part in my journey of continuous improvement.

Best regards,
Ranit Manik