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

#accessibility#angular#bootstrap#cube-css#django
Tan Nguyenβ€’ 160

@TanNguyen17112003

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


So happy to overcome this challenge

Community feedback

Abhishek choudharyβ€’ 1,570

@dazzlerabhi30800

Posted

Put your container inside main tag and your accessibility issues will be solved. use justify-content: space-between on the '.contain-desc' to align the text in center with the image.

0
Lucas πŸ‘Ύβ€’ 104,580

@correlucas

Posted

πŸ‘ΎHello TAN NGUYEN, congratulations for your new solution!

Here's some tips to improve your component and its responsiveness:

You need to fix the container size and responsiveness, to do that add max-width: 1110px to create the container size and make it responsive allowing it to scale.

.container {
    max-width: 1110px;
}

Then you've to align all the text for the container left:

.container {
text-align: left; 
}

To add the exact same purple overlay effect for the image, matching the design files you can use, filter, background-blend-mode or mix-blend-mode (the best choice in my opinion). See the code below

img {
mix-blend-mode: multiply;
opacity: 0.8;}

πŸ‘‹ I hope this helps you and happy coding!

0

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