Responsive Sign Up Master Intro Component with Javascript.
Design comparison
Solution retrospective
Used font awesome for symbols since the design was easier to control using the i syntax rather than svg. However if you know any solutions for the svg error icon, would be much appreciated if you gave me some tips.
First time I did most of the javascript with my head and 20% using some tutorials. Understood some of the basic structures and even added some extra functions to the form.
Any tips for the script will be very appreciated as well.
Hope the responsiveness of the page is well.
Community feedback
- @vanzasetiaPosted about 2 years ago
Hi, Caleb Sim! 👋
Congratulations on finishing this challenge! 🎉
For the error icon, I recommend making it the background image of the
input
element. So, there's no need for extra HTML markup to show the error icon.For the JavaScript, here are some suggestions:
- Firstly, I recommend formatting the code in a consistent way. You can use code-formatter like Prettier or even let your code editor automatically format the code. This way, it will be much easier to understand the code.
- Secondly, I recommend having the password criteria always visible on the user interface. Having the password criteria on the browser's console won't help your users.
- I recommend using all classes begin with
js-
to select DOM elements within the JavaScript. Keep in mind, that only use thejs-
classes only for JavaScript purposes.
const form = document.querySelector(".js-form");
For the HTML:
<container>
is not a valid HTML. Use valid HTML markup.input
must have a label. I recommend usingaria-label
to give each input a label.
Currently, there's no way for the screen readers to pronounce the error message. So, I recommend doing some research on this. You can see my solution as your reference.
I hope this helps! Happy coding!
1
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