Design comparison
SolutionDesign
Solution retrospective
Feedback appreciated. Thanks!
Community feedback
- @vanzasetiaPosted almost 3 years ago
š Hi Anna!
š Congratulations on finishing this challenge! I have some feedback on this solution:
- Accessibility
- Create a custom
:focus-visible
styling to any interactive elements (button
, links,input
,textarea
). This will make the users can navigate this website using keyboard (by usingTab
key) easily. - Alternative text for images should not contain any words that related to image, such as picture, logo, graphic, icon, etc. The user of assistive technology will know that it is either a logo or an icon the same as the normal user.
- For the alternative text of the logo, you can write the company name as the alternative text of it.
- Wrap the
input
element and the submit button withform
element. - The
button
should have a `type="submit" attribute. - Use
rem
or sometimesem
unit instead ofpx
. Usingpx
will not allow the users to control the size of the page based on their needs.
- Create a custom
- Styling
- On mobile landscape view (640px * 360px), the hero image get cut off.
- JavaScript
- Separate the
addEventListener
with thefunction
. - I would recommend making the
form
element listen for thesubmit
event instead of the submit button listen for the click event.
- Separate the
const submitEmail = (e) => { // some code } form.addEventListener("submit", submitEmail);
That's it! Hopefully, this is helpful!
0 - Accessibility
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