Skip to content

Latest commit

 

History

History

FrontendMentor07—stats-preview-card-component

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Frontend Mentor - Stats preview card component solution

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.

Table of contents

Overview

The challenge

Your challenge is to build out this 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

Screenshot

Screen Shot.png

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • responsiveness

What I learned

  • HTML Accessibility with Semantic Tags: When developing your HTML, prioritize accessibility by incorporating semantic tags. These tags, explained here, not only enhance search engine discoverability but also ensure that individuals with disabilities can navigate and utilize your site. In some jurisdictions, the accessibility of websites carries legal implications. It's crucial to avoid overusing generic divs, as they lack semantic value.

  • Logical Control with box-sizing: border-box;: To maintain logical control over elements in your project, consider adding the CSS property box-sizing: border-box;. This recommendation ensures that the specified width/height corresponds to the actual dimensions rendered on the screen. Embracing this approach contributes to a more predictable layout.

  • Optimal Font Loading in HTML: For consistent font rendering, it's advisable to include font links directly within your HTML. By doing so, your site maintains its original fonts even if the CSS hasn't fully loaded. This practice prevents the reliance on browser defaults, resulting in a more cohesive and user-friendly experience.

Code Highlights

  • using css reset correctly
    * {
      padding: 0;
      margin: 0;
      box-sizing: border-box;
      }

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