Design comparison
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
- @NehalSahu8055Posted over 1 year ago
Hello Coder π.
Congratulations on successfully completing the challenge! π
Few suggestions regarding design.
-
Responsive π―
-
Instead of having
multiple css files
try tomerge
them in amain css file
, it would impact a lot in thespeed
ofloading
. -
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 helpful1@CorinaMurgPosted over 1 year agoHi @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 -
- @GesierePosted over 1 year ago
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 helpful1@CorinaMurgPosted over 1 year agoHi @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-altPosted over 1 year ago
Hello @Cor-Ina, Great Work,
I have some suggestions for you,
- you can add
box-shadow
to the infocard
. - 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 helpful1 - you can add
- @0xabdulkhaliqPosted over 1 year ago
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
forbody
instead ofheight: 100vh
. Setting theheight: 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 thebody
will have100vh
height no matter what. Even if the content spans more than100vh
of viewport.
- But if we set
min-height: 100vh
then thebody
will start at100vh
, if the content pushes thebody
beyond100vh
it will continue growing. However if you have content that takes less than100vh
it will still take100vh
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 GitHubJoin 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