Code Monkey home page Code Monkey logo

Comments (9)

ipark604 avatar ipark604 commented on August 25, 2024 1

Here is some idea how to make it https://www.w3schools.com/howto/howto_js_toggle_dark_mode.asp

from ratemyloo.

johncmanuel avatar johncmanuel commented on August 25, 2024

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.

ipark604 avatar ipark604 commented on August 25, 2024

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.

ipark604 avatar ipark604 commented on August 25, 2024

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.

johncmanuel avatar johncmanuel commented on August 25, 2024

Could you create a branch containing your current code and send it here?

EDIT: Also send screenshots of your progress.

from ratemyloo.

ipark604 avatar ipark604 commented on August 25, 2024

yes i will do that tmw sir

from ratemyloo.

ipark604 avatar ipark604 commented on August 25, 2024

이미지 11-30-23 오후 2 45

from ratemyloo.

ipark604 avatar ipark604 commented on August 25, 2024

image

from ratemyloo.

johncmanuel avatar johncmanuel commented on August 25, 2024

Link to @ipark604's branch for user page design: https://github.com/johncmanuel/RateMyLoo/tree/user

Things to cover for review later:

  1. Fix placement of newly added/modified files (they are located in the root at first glance)
  2. Go over the code made by @ipark604
  3. When finished, create a pull request and check if things are working as intended in the Preview deployment
  4. Merge with main branch after another review

from ratemyloo.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.