This is a solution to the Multi-step form challenge on Frontend Mentor.
- Complete each step of the sequence
- Go back to a previous step to update their selections
- See a summary of their selections on the final step and confirm their order
- View the optimal layout for the interface depending on their device's screen size
- See hover and focus states for all interactive elements on the page
- Receive form validation messages if:
- A field has been missed
- The email address is not formatted correctly
- A step is submitted, but no selection has been made
- Solution URL: [https://github.com/Soaphub/Multi-step-form-solution]
- Live Site URL: [https://multi-step-form-solution.vercel.app/]
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- React - JS library
- Next.js - React framework
Learned about Redux toolkit
To see how you can add code snippets, see below:
const addOnsNext= ()=>{
const addplan=[];
if(planLevel && addOns){
addOns.forEach(add => {
const addOnsAmt= parseInt(document.querySelector("#"+add+"ed h3").textContent.match(/\d+/));
addplan.push(addOnsAmt);
});
if( addplan.length > 0){
const toatalAddOns= addplan.reduce((pre,cur)=> pre + cur);
dispatch(addOnsTotal(toatalAddOns));
}
}
router.push("/summary");
}- [https://www.youtube.com/watch?v=HKU24nY8Hsc&ab_channel=TheNetNinja] - This was amazing platform for redux.
The udemdy coarse by Angela helped a lot in completing the project.