Design comparison
SolutionDesign
Solution retrospective
Last few month I spent for learning React. Challenge is completed, but I still have some problems with animation. And I've learned how to deploy React app with git pages. Feels good.
Please, give your feedback.
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, awesome work on this one. Layout looks fine in general and that starting animation looks great.
Some suggestions would be:
- Always have a
main
element that will wrap the whole content.main
element helps users to navigate properly on your webpage. - You are missing the wavy-image on the background :>
- The vector
img
should have been usingalt=""
on it, since the image is just a decoration. If an image only acts as decor, usealt=""
on it, if the image adds content, then use meaningfulalt
value. - Avoid using
height: 100vh
on a large container, if you inspect you layout in dev tools at the bottom, hover on thebody
tag, you will see that it doesn't captures the whole layout, because theheight
of the#root
is limited to the remaining viewport's height. Instead, usemin-height: 100vh
on it, this takes full viewport and will expand if it needs to. - I see that you used
position: absolute
on the card itself, I don't really think you should use this, since you could have just usedisplay: flex
on the parent, just usingposition: absolute
makes hard for element to be captured. - The music icon
svg
should havearia-hidden="true"
since it is just decoration. annual plan
should be a heading tag, because it gives enough content overview about its section.- For this one, I think using
a
tag instead ofbutton
for the 3 interactive elements are better, since you are not using aform
element in here wherebutton
are used.
There are things in here, html usage, css, that lacks attention, are you sure you are ready for react? If you use react, make sure that you have fundamentals first.
But still, great work on this one.
Marked as helpful0 - Always have a
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