forked from starve-l/starve-l.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (73 loc) · 2.02 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html>
<head>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
:root {
--primary-color: #9A97F3;
--secondary-color: #818cab;
--font-color: #e1e1ff;
--bg-color: #161625;
--heading-color: #818cab;
}
body {
background-color: var(--bg-color);
color: var(--font-color);
transition: 0.3s all ease-in;
padding: 25px;
}
.light-mode {
background-color: white;
color: black;
transition: 0.3s all ease-in;
}
* {
font-family: 'Poppins', Helvetica, arial, sans-serif;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
background-color: #dddddd;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
transition: 0.3s all ease-in;
}
li a:hover {
background-color: #111;
transition: 0.3s all ease-in;
}
</style>
<script>
function toggleLightMode() {
var element = document.body;
element.classList.toggle("light-mode");
}
</script>
</head>
<body>
<ul>
<li><a href="./">Home</a></li>
<li><a href="./tab-animation">Tab Animated Gradient Generator</a></li>
<li><a href="./gradient-text">Gradient Text Generator</a></li>
<li><a href="./cosmonaut">Cosmonaut</a></li>
<li><a href="./projects">Projects</a></li>
<li><a onclick="toggleLightMode()">Toggle light mode</a></li>
</ul>
</body>
</html>