-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: jomefavourite <jfjomefavourite@gmail.com>
- Loading branch information
1 parent
8cdc694
commit 390c05a
Showing
32 changed files
with
1,756 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"liveServer.settings.port": 5502 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<!-- Please update value in the {} --> | ||
|
||
<h1 align="center">{Your project name}</h1> | ||
|
||
<div align="center"> | ||
Solution for a challenge from <a href="http://devchallenges.io" target="_blank">Devchallenges.io</a>. | ||
</div> | ||
|
||
<div align="center"> | ||
<h3> | ||
<a href="https://{your-demo-link.your-domain}"> | ||
Demo | ||
</a> | ||
<span> | </span> | ||
<a href="https://{your-url-to-the-solution}"> | ||
Solution | ||
</a> | ||
<span> | </span> | ||
<a href="https://devchallenges.io/challenges/5ZnOYsSXM24JWnCsNFlt"> | ||
Challenge | ||
</a> | ||
</h3> | ||
</div> | ||
|
||
<!-- TABLE OF CONTENTS --> | ||
|
||
## Table of Contents | ||
|
||
- [Overview](#overview) | ||
- [Built With](#built-with) | ||
- [Features](#features) | ||
- [How to use](#how-to-use) | ||
- [Contact](#contact) | ||
- [Acknowledgements](#acknowledgements) | ||
|
||
<!-- OVERVIEW --> | ||
|
||
## Overview | ||
|
||
 | ||
|
||
Introduce your projects by taking a screenshot or a gif. Try to tell visitors a story about your project by answering: | ||
|
||
- Where can I see your demo? | ||
- What was your experience? | ||
- What have you learned/improved? | ||
- Your wisdom? :) | ||
|
||
### Built With | ||
|
||
<!-- This section should list any major frameworks that you built your project using. Here are a few examples.--> | ||
|
||
- [React](https://reactjs.org/) | ||
- [Vue.js](https://vuejs.org/) | ||
- [Tailwind](https://tailwindcss.com/) | ||
|
||
## Features | ||
|
||
<!-- List the features of your application or follow the template. Don't share the figma file here :) --> | ||
|
||
This application/site was created as a submission to a [DevChallenges](https://devchallenges.io/challenges) challenge. The [challenge](https://devchallenges.io/challenges/5ZnOYsSXM24JWnCsNFlt) was to build an application to complete the given user stories. | ||
|
||
## How To Use | ||
|
||
<!-- Example: --> | ||
|
||
To clone and run this application, you'll need [Git](https://git-scm.com) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line: | ||
|
||
```bash | ||
# Clone this repository | ||
$ git clone https://github.com/your-user-name/your-project-name | ||
|
||
# Install dependencies | ||
$ npm install | ||
|
||
# Run the app | ||
$ npm start | ||
``` | ||
|
||
## Acknowledgements | ||
|
||
<!-- This section should list any articles or add-ons/plugins that helps you to complete the project. This is optional but it will help you in the future. For example: --> | ||
|
||
- [Steps to replicate a design with only HTML and CSS](https://devchallenges-blogs.web.app/how-to-replicate-design/) | ||
- [Node.js](https://nodejs.org/) | ||
- [Marked - a markdown parser](https://github.com/chjj/marked) | ||
|
||
## Contact | ||
|
||
- Website [your-website.com](https://{your-web-site-link}) | ||
- GitHub [@your-username](https://{github.com/your-usermame}) | ||
- Twitter [@your-twitter](https://{twitter.com/your-username}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
function call(name) { | ||
return document.querySelector(name); | ||
} | ||
|
||
const night = call("#dark"); | ||
const light = call("#light"); | ||
|
||
night.addEventListener("click", () => { | ||
night.style.display = "none"; | ||
light.style.display = "block"; | ||
document.body.classList.add("dark-theme"); | ||
localStorage.setItem("theme", "dark-theme"); | ||
}); | ||
|
||
light.addEventListener("click", () => { | ||
night.style.display = "block"; | ||
light.style.display = "none"; | ||
document.body.classList.remove("dark-theme"); | ||
localStorage.removeItem("theme"); | ||
}); | ||
|
||
function checkTheme() { | ||
const localStorageTheme = localStorage.getItem("theme"); | ||
|
||
if (localStorageTheme !== null && localStorageTheme === "dark-theme") { | ||
document.body.classList.add("dark-theme"); | ||
} | ||
} | ||
|
||
checkTheme(); |
Oops, something went wrong.