-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
72 lines (65 loc) · 3.25 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
<!DOCTYPE html>
<!--
Copyright (c) 2020 - present, DITDOT Ltd. - MIT Licence
https://www.ditdot.hr/en
https://github.com/ditdot-dev/dark-mode-example
-->
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@900&display=swap" rel="stylesheet">
<script src="app.js"></script>
<title>Dark Mode Example</title>
</head>
<body>
<div class="background">
<div class="overlay">
<header class="header">
<div class="logo-wrapper">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="80" height="80" class="logo">
<g data-name="Layer 2">
<path
d="M12.26 16.84a12.08 12.08 0 013.15 12.21 15.46 15.46 0 008.06-13.43A24.39 24.39 0 0029.07 0a24.35 24.35 0 00-15.62 5.61 15.46 15.46 0 00-10.8 4.55A15.16 15.16 0 000 13.7a12.08 12.08 0 0112.26 3.14zm9.55-9.58a3.57 3.57 0 11-5 0 3.56 3.56 0 015 0zM11.25 22.54C9.76 24 4 25.09 4 25.09s1-5.77 2.54-7.27 3.16-1.05 4.46.25 1.75 2.93.25 4.47z"
fill="black" data-name="Layer 1" />
</g>
</svg>
</div>
<nav class="navigation">
<ul class="list">
<li class="list-item">Home</li>
<li class="list-item">Projects</li>
<li class="list-item">About</li>
</ul>
</nav>
</header>
<div class="mode-switch">
<p class="mode-label">Turn on the fun mode</p>
<label class="switch">
<input type="checkbox" />
<span class="slider">
<svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round"
stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z" />
</svg>
</span>
</label>
</div>
<h1 class="title">Light mode</h1>
<div class="main-svg-wrapper">
<svg class="main-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 -5 61.05 130.58">
<g id="Layer_2" data-name="Layer 2">
<g id="robot">
<path class="head"
d="M14.88,27.82H46.21A15.8,15.8,0,0,0,21.33,12.75V6.62a3.49,3.49,0,1,0-3,0v9A15.72,15.72,0,0,0,14.88,27.82Zm21.25-5.48A1.65,1.65,0,1,1,34.48,24,1.65,1.65,0,0,1,36.13,22.34Zm-5.58-9.27A3.94,3.94,0,1,1,26.61,17,3.93,3.93,0,0,1,30.55,13.07ZM39,37.5H22.13a13.05,13.05,0,0,1-6.12-6H45.08A13.05,13.05,0,0,1,39,37.5Z" />
<path
d="M52.67,45.14A30.41,30.41,0,0,1,61,63.5,10.68,10.68,0,0,1,52.67,45.14ZM19.74,55.27A10.69,10.69,0,0,0,9,44.59,30.43,30.43,0,0,0,.36,61.46C6.41,69.93,19.74,65.61,19.74,55.27Zm25.9-2.4A14.33,14.33,0,0,1,50,42.61,30.62,30.62,0,0,0,38.55,36.7l.41-.2H22.13l.41.2a30.44,30.44,0,0,0-9.79,4.68A14.37,14.37,0,1,1,0,66.43,30.54,30.54,0,0,0,27.5,96.56a14.38,14.38,0,1,1,25.23-9.42A30.44,30.44,0,0,0,61.05,67.2,14.37,14.37,0,0,1,45.64,52.87Zm-7.3,23.59c-11.07,0-14.82,14.9-5,20.12A30.34,30.34,0,0,0,48.28,91,10.68,10.68,0,0,0,38.34,76.46Z" />
</g>
</g>
</svg>
</div>
</div>
</div>
</body>
</html>