Multistep form project built using Next.JS v13 and Tailwind.
The project uses custom useContextHook to globally manage state. It has two components the FormHandler which is the Sidebar and Footer but also nests a second component FormDisplay.
FormDisplay shows the necessary data for each step and gets it's data from /lib/data.ts.
As such I have created the array of steps which contains each case of a special selection and styled it accordingly. For example if the step contains plans array it will render it from the FormDisplay.
All feedback is welcome. NextJS for this is probably overkill but it's easiest for me to use and I am most comfortable with it.
Welcome to my submission for the Shortly URL shortening API Challenge on Frontend Mentor!
This submision contains the code for a fully functional URL shortening web application, built using NextJs using TypeScript. The application utilizes the API to shorten user-provided URLs and displays the shortened URL in a clean, user-friendly interface and web accessible way. The application also includes form validation and error handling to ensure that the input can't contain and invalid url.
The most difficult thing while building this project was getting the margins and paddings correctly positioned. It also took some time to get the local storage to work without causing a Next.js hydration error.