Pushed “dark mode & about pg.”
Deleted some unused files that came from installing next.js on the wrong layer/folder. Launched the website via npm run dev and used the VS Code Simple Browser feature.
Took html notes in html.md, learned spacing, font size, and font color code. Found out I couldn’t use an apostrophe, and learned how to make next.js understand.
Deleted all the default next.js features and started using Tailwind to make it look presentable. Finally made what I’m most proud of this devlog: the light/dark mode toggle switch.
Switched dark mode from following the OS light/dark mode to following a class.
Tested if it works by adding the class to layout.tsx.
Made first client component (components/darkmode.tsx).
Made my own button, troubleshooted an error caused by a missing return, and import/export.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.