Comments (9)
Here is some idea how to make it https://www.w3schools.com/howto/howto_js_toggle_dark_mode.asp
from ratemyloo.
That's a good start. We can use React to define a component that is applied to all pages. Inside the component, we can use TailwindCSS's dark variant feature for styling. We'll need to use React's states to trigger the switch between light and dark mode, then store the setting in one of the browser storages called localStorage. That way, the browser will remember the user's preference.
Reference:
from ratemyloo.
the issues i am having right now is i can see the toggle button to change the light and dark mode but It's not functioning correctly i think this might be related about global.css i will keep looking for it
from ratemyloo.
i think i am going on the right track? i guess now i can see at least the toggler is changing light and dark mode
from ratemyloo.
Could you create a branch containing your current code and send it here?
EDIT: Also send screenshots of your progress.
from ratemyloo.
yes i will do that tmw sir
from ratemyloo.
from ratemyloo.
from ratemyloo.
Link to @ipark604's branch for user page design: https://github.com/johncmanuel/RateMyLoo/tree/user
Things to cover for review later:
- Fix placement of newly added/modified files (they are located in the root at first glance)
- Go over the code made by @ipark604
- When finished, create a pull request and check if things are working as intended in the Preview deployment
- Merge with main branch after another review
from ratemyloo.
Related Issues (12)
- Add integration and end to end testing
- Add "purge history" function for the user
- Add screenshots HOT 1
- Add Firebase Local Emulators
- Add Redis HOT 1
- Allow user to upload multiple pictures at once HOT 1
- Update the README HOT 1
- Add email verification
- Add social logins
- Replace "any" types with defined types
- Style and design the website HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ratemyloo.