Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pktcodes/dark-mode-react-project

Dark Mode Project using React
https://github.com/pktcodes/dark-mode-react-project

css3 dark-mode ecmascript html5 javascript localstorage momentjs react react-hooks useeffect usestate

Last synced: 20 days ago
JSON representation

Dark Mode Project using React

Awesome Lists containing this project

README

        

# Dark Mode 🌓
> PROD [Live] : https://react-dark-mode-prod.netlify.app/

#### Dark Mode consists of a straightforward user interface where there is a
- Blog with a list of static text posts, navbar with a title *Overreacted* and a **Toggle** button.
- Toggle button has the functionality to switch between the **light** and **dark** modes of the blog on click and its logic is handled by CSS.
- By default, the site is set to a light theme with a `background: white`, `font: black and a dark shade of pink`. When switched to a dark theme using the toggle, colors are changed to `background: black`, `font: white and a light shade of pink` for a flexible user experience.
- **Local Storage** has been implemented to remember the mode of theme the user has been using. So, when the user revisits the site or on page reloads the mode of theme is still saved up.
- To run the project locally, clone the repo, `npm install` to install the dependencies, and `npm start` to start up the development server on default port 3000.

#### Languages
HTML, CSS, JavaScript, ECMAScript, React - Hooks ~ useState, useEffect

#### Packages
[Moment.js](https://momentjs.com/)

#### Deployment / Hosting
Netlify

---

**To install Moment.js**

```sh
npm install moment
```

*Note: I have developed this project ~ [20] as part of React and Projects Course taught by John Smilga..*