Submitted about 3 years ago
Mobile First ReactJS WebPage using useState, Props
@Amanpatil-Dev
Design comparison
SolutionDesign
Solution retrospective
Any feedbacks are Welcome
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, great work on this one. Layout in general is good and the responsiveness is great as well.
Some suggestions would be:
- Always have a
main
element on a webpage. This helps users to properly navigate your website. On this one, the.container
selector could have used themain
tag. - The
svg
on the website logo should have atitle
element inside it. Thistitle
tag describes thatsvg
itself since it is a graphic. On yoursvg
, add atitle="Ping"
inside it. - Always have a
h1
element on a webpage. Thewe are launching soon
could be theh1
on this. Also a reminder, when using heading tags, do not skip a level. If you have for exampleh4
, make sure thath3, h2, h1
are present. - The
input
as well as thebutton
should have been inside aform
element, since this is data submission. - The
input
as well needs to have alabel
element, or anaria-label
being used. - The
button
should havetype="submit"
since on a real component, this will submit theemail
form. - The email
input
as well should have aaria-invalid
being triggered if the user submitted a wrong input. Addition to this, when it is invalid, you should addaria-describedBy
element. The error-message should have anid
attribute. Thisid
will be used in thearia-describedBy
on theinput
, linking those to create a more accessible feature for users. You can search about this one. - The
alt
text of the hero-image could have used a better descriptive value. Usingalt="sss"
doesn't make sense at all. Instead you could have usedalt="ping dashboard"
on it. - The social media links should have been using
a
tags because those are links. It also needs to havearia-label
indicating where this link would take the user. Example, thea
tag that will wrap facebook icon would havearia-label="facebook"
. - The social media links should be inside as well in
ul
element, since those are list of links.
Learning a library can really help you, but, do NOT build up your fundamentals first. There are lots of things going on in here, you are not using the proper semantics. Before you go doing libraries, make sure that even html usage is proper. You don't want to use react without proper knowledge of how element should be used.
Still, great work on this.
0@Amanpatil-DevPosted about 3 years ago@pikamart thank you so much for your kind words I will make a note
0 - 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