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
Request path contains unescaped characters
Not Found

Submitted

Mobile-first flexbox react solution

Dmytro 70

@alkersan

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


What challenges did you encounter, and how did you overcome them?

After I've centered the parent container using Grid's place-content: center, I noticed the broken vertical scroll behavior on low-height viewports - content was spilling beyond viewport without possibility to scroll. The fixed min-height feels too hacky. Is there a better way?

const Main = styled.main`
...
  min-height: 780px;
  @media ${QUERIES.laptopAndUp} {
    min-height: 446px;
  }`

What specific areas of your project would you like help with?

I couldn't precisely reproduce the violet tint on the image, so what color blend recipe was used in the design files?

With only two given breakpoints (mobile and desktop) - what would be the proper strategy for viewports in between, like tablets?

Community feedback

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