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

Responsive stats preview card component

@W1lsonCodes

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


This is my first project so anything you can see to improve. Please do tell!

Community feedback

@etiennedesfontaines

Posted

Hi Simon,

This is an excellent result for a first project - well done.

There are a few tweaks you could consider to more closely match the design:

  1. Changing the width of your .main-container to around 75% should adjust your card length and the surrounding space to more closely resemble the design.

  2. Increase your body font-size to 17px.

  3. Increase you h1 font size to around 40px.

  4. Adding some padding-right to your <p> element, perhaps around 50px or so, should create a similar rag to the one on the copy in the design. You can do the same with your stats.

If any of these changes distort the size ratio between your image and copy sections, just play around with adjusting the image section size until you find a size that looks correct.

Be sure to recheck your media queries against any changes maid to your main styling, incase they need adjusting to compensate.

It may also be advantageous to make a habit of considering your HTML semantically. This resource really helped me: https://developer.mozilla.org/en-US/docs/Web/HTML/Element

Good luck with the adjustments. I hope my advice comes in handy and I look forward to seeing your future projects.

Marked as helpful

1

@W1lsonCodes

Posted

@etiennedesfontaines thanks for the feedback!

0
Varvara 90

@Varvaron

Posted

Hi, Simon!

I'm a beginner of coding, so i chose to try this challenge too. This is my second one. I did almost everything except a color of this image. I had no idea how to mix it even if i learnt something about filters in CSS. Thanks to your solution now i know how to do it very easy.

I haven't published my solution yet, but i will soon.

Marked as helpful

1

@W1lsonCodes

Posted

@Varvaron Hey,

Thanks for the comment. I actually had to google this and look at some code to understand how it worked haha. Look forward to seeing your code

0
Varvara 90

@Varvaron

Posted

@W1lsonCodes I tried to google too but wasn't such succeed as you are :)

0

@W1lsonCodes

Posted

@Varvaron So i was looking @ this

https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode

Since it is similar to photoshop blending. Then just looked at some YT vids on how to apply it

1
Varvara 90

@Varvaron

Posted

@W1lsonCodes hey, I've uploaded my solution. It would be nice if you will see it https://www.frontendmentor.io/solutions/flexbox-7ilyW80iH

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