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

Single Price Component with HTML and CSS

#accessibility
Cor-Inaβ€’ 250

@CorinaMurg

Desktop design screenshot for the Single price grid component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hi Everyone,

I am learning React and I picked this easy challenge to practice my skills, but now I’m a bit distracted by its design. The original design is beautiful but it does not meet the contrast ratio guidelines, so I wanted to try out different shades of green. The page does pass the contrast ratio test now, but the design is less … appealing.

Questions: Do you find my design acceptable? If not, what would you change? Would it work better if I replaced the green with a different color?

I completed this version with just plain HTML and CSS, but would like to try a different color scheme with the React version.

Thank you in advance for you feedback!

Community feedback

_nehalπŸ’Žβ€’ 6,730

@NehalSahu8055

Posted

Hello Coder πŸ‘‹.

Congratulations on successfully completing the challenge! πŸŽ‰

Few suggestions regarding design.

  • Responsive πŸ’―

  • Instead of having multiple css files try to merge them in a main css file, it would impact a lot in the speed of loading.

  • Try to add accessibility features like aria, sr-only, title.

aria : link

.sr-only:link

I hope you find this helpful.

Happy codingπŸ˜„

Marked as helpful

1

Cor-Inaβ€’ 250

@CorinaMurg

Posted

Hi @Nehal

Thank you for your feedback! I know having multiple CSS files slows down performance, but as I am still learning how to work with a great amount of CSS code, I find it easy when I break it into multiple files. Once I get more comfortable in my coding, I will switch to just one file. Many thanks! Corina

1
Gesiereβ€’ 780

@Gesiere

Posted

Great Work, your layout is perfect so is your design, Where my issues stands, would be the colors not matching the actual design. Compare the design that was given look at the colors and note where they are not similar.

While the your layout is fine, you are not matching the colors in the design, all the same great work.

And agreeing with the comment above some box-shadow would make the card section more pronounce.

Marked as helpful

1

Cor-Inaβ€’ 250

@CorinaMurg

Posted

Hi @Gesiere,

Thank you for your feedback! As I mentioned in my original post, I changed the design on purpose because the contrast ratio of the given colors does not comply with the a11y guidelines. I know my design is not as appealing, but I'm still working on finding a better color scheme.

I did forget about the shadow, so I will add it now. Many thanks!

0
devendraβ€’ 70

@devendra-alt

Posted

Hello @Cor-Ina, Great Work,

I have some suggestions for you,

  • you can add box-shadow to the info card.
  • you can use the <article> tag in place of <main class="price"><main/>, it was a better choice from the website accessibility point-of-view.
  • you can use descriptive class names to make your code more maintainable and consistent.

Marked as helpful

1
Abdul Khalid πŸš€β€’ 72,160

@0xabdulkhalid

Posted

Hello there πŸ‘‹. Congratulations on successfully completing the challenge! πŸŽ‰

  • I have other recommendations regarding your code that I believe will be of great interest to you.

BODY MEASUREMENTS πŸ“:

  • Use min-height: 100vh for body instead of height: 100vh. Setting the height: 100vh may result in the component being cut off on smaller screens, such as mobile devices in landscape orientation
  • For example; if we set height: 100vh then the body will have 100vh height no matter what. Even if the content spans more than 100vh of viewport.
  • But if we set min-height: 100vh then the body will start at 100vh, if the content pushes the body beyond 100vh it will continue growing. However if you have content that takes less than 100vh it will still take 100vh in space.

.

I hope you find this helpful πŸ˜„ Above all, the solution you submitted is great !

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