Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Stats Preview Card Solution [Plain HTML + CSS, Flexbox and Grid]

@faruqAbdulHakim

Desktop design screenshot for the Stats preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Any feedback and suggestions on this solution are welcome. 😃

Community feedback

@petritnuredini

Posted

Congratulations on completing your "Stats Preview Card Component" project! It's a significant achievement to finish a project, and your dedication to learning and improving is evident in your work. Here are some best practices and recommendations to further enhance your project:

  1. HTML Structure and Semantics:

    • Semantic Elements: Good use of semantic HTML. Consider using <section> for the .content-container and <figure> for the .img-container for better semantic structure.
    • ARIA Attributes: Well done using aria-hidden="true" on the image. This helps with accessibility for screen readers.
    • Alt Text: Ensure the alt text for images is descriptive of the content or purpose of the image.
  2. CSS Styling:

    • CSS Variables: Great job using CSS variables for maintaining a consistent color scheme. This is a best practice for maintaining and scaling styles.
    • Responsive Design: Your media queries show a good understanding of responsive design. Continue testing on various devices to ensure consistent behavior.
  3. Accessibility:

    • Color Contrast: Ensure that the text color contrasts well with the background for readability, especially for users with visual impairments.
    • Keyboard Navigation: Make sure that all interactive elements are accessible via keyboard.
  4. Performance Optimization:

    • Image Optimization: Consider using responsive images with different resolutions for different screen sizes to improve loading times.
    • Minification: For production, minify your CSS and HTML to reduce file sizes and improve load times.
  5. Code Organization and Readability:

    • Comments: Adding comments to your CSS can help explain complex sections or styling decisions, making it easier for others (and future you) to understand the code.
    • Consistent Formatting: Ensure consistent indentation and spacing in your HTML and CSS for better readability.
  6. Cross-Browser Compatibility:

    • Testing Across Browsers: Ensure your component looks good and functions well across different browsers for a consistent user experience.
  7. Further Learning Resources:

Keep pushing forward and challenging yourself! Each project is a learning opportunity, and you're doing an excellent job. Stay curious, keep experimenting, and never stop learning. Your progress is impressive, and I can't wait to see what you'll create next!

Marked as helpful

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord