Submitted 3 days ago
Mortgage Calculator using Vanillas JavaScript and ES modules
@raulgaliciab
Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
Proud of:
- The FormData used to get the form information
- The toLocaleString() method to give comma format
- The JS code divided into ES Modules
Next time:
- Have a more detailed requirement list
- Optimize the CSS classes
- Separate the JS code into ES modules from the beginning
Challenges:
- How to add prefixes and suffixes to the inputs
- How to structure the input type radio in the form
- Styling the input type submit
- The pseudo-classes were not working
- In the Media Queries the dimensions were not working well
Solutions
- Using table display just for the inputs that had a prefix or suffix
- Use a fieldset
- Changing the input with a button tag
- Reading documentation. The focus pseudo-class only works on focusable elements
- The problem was not the display but the width and height
Any feedback is well received!
Community feedback
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