Responsive contact form using css flexbox property

Solution retrospective
- I can now write css custom properties with confidence
- I made the page responsive to different screen sizes
- I saw some use cases of JavaScript as a beginner in learning the programming language
-
I had problems in the query section of my page. But all thanks to ChatGPT as it gave me insight on the accent-color Property. So rather than using JavaScript to change the checkbox icon when clicked, I decided to keep it Simple with css accent-color property
-
I also had problem with writing out the code for form validation but I sort that out by declaring a variable and setting its value to true
let isValid = true
. so when the conditions for a valid input is not met I set the variableisValid = false
and so I return the value of isValid at the end of the codereturn isValid
. This checks whether all the inputs have been validated
- Naming conventions for writing css custom property
- A better code refactoring or a better version of a form validation code
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Odoh Onyedika Johnpaul's solution.
Join 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