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

Interactive rating component with Flexbox

kristi 130

@kristiingco

Desktop design screenshot for the Interactive rating component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I decided to be focusing on strengthening my fundamentals! That means I am going to try out challenges using Vanilla CSS and Vanilla JS to hone my foundations for both! 💪

Feedback is always welcome!

Community feedback

Prantik 660

@prantiknoor

Posted

Hey @kristiingco, Excellent work. Your code is neat & clean.🙂

I want to give you some little recommendations. You can give a try, center the card using grid. (it's more simple than flex)

.container {
  height: 100vh;
  /* display: flex;
  justify-content: center;
  align-items: center; */
  display: grid;
  place-content: center;
}

Secondly, you can use linear-gradient for card background:

background: linear-gradient(
    var(--dark-blue), /* hsl(213, 19%, 18%) */
    var(--dark-blue-plus)  /* hsl(213, 19%, 12%) */
  );

Marked as helpful

1

kristi 130

@kristiingco

Posted

@prantiknoor I'll definitely try CSS grid out more often! I'll also be sure to update the code with the linear gradients when I can. :) Thank you so much!

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