mrcbq / portfolio-mobile-first

Portfolio web page, it's a showcase of my main projects with my contact info. Built with JS Vanilla, HTML and CSS.
https://mrcbq.github.io/portfolio-mobile-first/
MIT License
5 stars 1 forks source link

Portfolio: preserve data in the browser #11

Closed mrcbq closed 1 year ago

mrcbq commented 1 year ago

We implemented the following interactions: 🏁 When the user changes the content of any input field, the data is saved to the local storage. 🏁 When the user loads the page, if there is any data in the local storage the input fields are pre-filled with this data.

We used the following data model: 🏁 Create a single JavaScript object with all the data from the entire form and save it in local storage. Do not create one local storage entry per input field