Create index.html

This commit is contained in:
2020-04-29 12:51:52 -04:00
committed by GitHub
parent cfe12d191a
commit ada763b8e2
+31
View File
@@ -0,0 +1,31 @@
<!doctype html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Welcome to the dark side</title>
<style>
body.light {
background-color: #fff;
color: #222;
}
body.dark {
background-color: #222;
color: #fff;
}
.dark-mode-toggle {
cursor: pointer;
padding: 1em;
/* hide toggle until we're sure user has JS enabled */
visibility: hidden;
}
</style>
</head>
<body class="light">
<h1>Welcome to the dark side</h1>
<button class="dark-mode-toggle">Click me!</button>
<script src="dark-mode.min.js"></script>
</body>
</html>