Skip to content

Commit

Permalink
STARTED 25_website_dark_mode_toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
nitishkhobragade committed Apr 12, 2024
1 parent 22d9365 commit 2ecda3e
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 25_website_dark_mode_toggle/darkmode.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
display: flex;
justify-content: center;
align-items: center;
}
Empty file.
Binary file added 25_website_dark_mode_toggle/images/icons/moon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 25_website_dark_mode_toggle/images/icons/sun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions 25_website_dark_mode_toggle/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Website dark mode</title>
<link rel="stylesheet" href="./darkmode.css">
</head>
<body>
<div id="toggle">
<i id="indicator"></i>
</div>
<script src="./darkmode.js"></script>
</body>
</html>

0 comments on commit 2ecda3e

Please sign in to comment.