I have been using frontity for a few months now, and everyday i learn more.
In a couple of months, I’m starting my new side business, and I have just published my website.
I love working with Frontity, this is one of 5 projects I have ongoing, and every new project I’m working on, I now always consider Frontity first. The thing I like most about Frontity is the lovely community, and I would not be able to produce the websites I’m doing now without the the community.
Here is the repo for those interrested.
Edit:
Just added darkmode to my site as well, is it possible to save a cookie in the browser that remembers the state.theme.mode ?
You should be able to store either in a cookie or in local storage any settings you’d like as you’d do in any other app. In this case, I’d say that you should set the localStorage on the click handler of the dark mode button. The api for localStorage is defined here: Window.localStorage - Web APIs | MDN
The site looks really great! Thank you for the nice words and for your contributions in helping out other members of the community. Can’t wait to see what you build next!
So now it checs if you have anyting in the local storage, or if you have darkmode on the device. And it checks the local storage first, so if a person with a dark mode device have been on the website before, and switched it to light mode, it chooses light mode. The code works, but does it look okay? I’m not very experienced in this kind of stuff.