Evavic44 / Stats-Preview-Card-Frontendmentor

Stats preview card coding challenge on Frontendmentor
https://stats-preview-card-evavic44.netlify.app
2 stars 0 forks source link
challenge coding css3 frontendmentor html5

Frontend Mentor - Stats preview card component

Netlify Status

Welcome! 👋

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

Overview

Thanks for checking out this front-end coding challenge.

Frontend Mentor challenges help you improve your coding skills by building realistic projects.

To do this challenge, you need a basic understanding of HTML and CSS.

The challenge

Users should be able to:

Screenshot

Links

Built with

What I learned

Building this project has helped me to fortify my CSS skills in the following departments

Code Snippets

I added the provided color code pallete to a var property as seen below. This pallete was really helpful to me adding it to a variable for easy reference is highly recommended.

:root {
  --main-background: hsl(233, 47%, 7%);
  --card-background: hsl(244, 38%, 16%);
  --accent: hsl(277, 64%, 61%);
  --main-heading: hsl(0, 0%, 100%);
  --text-secondary: hsla(0, 0%, 100%, 0.75);
  --text-secondary-card: hsla(0, 0%, 100%, 0.6);
}

Since the font family was gracefully provided by Frontend Mentor on google fonts, I added it to the css easily using the css import property. Do check it out for adding the fonts easily here

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Lexend+Deca&display=swap');

Continued development

Going forward, I would like to improve on my CSS skills -primarily on Alignment and Positioning. WHY!? well because I'm not quite satisfied with the length of CSS code I wrote to achieve this owing that to the alignment sections of this challenge.

Useful resources

Author

Acknowledgments

Credit goes to the team at Frontend Mentor for putting out this challenge freely. You all ROCK! 💎