-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (69 loc) · 2.39 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
74
75
76
77
78
79
80
<html>
<head>
<title>Pictor</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link href="https://fonts.cdnfonts.com/css/inter" rel="stylesheet" />
<link rel="stylesheet" href="src/pictor.css" />
</head>
<body>
<button
style="margin-left: 20%; margin-top: 1%"
class="btn"
id="theme-toggle"
>
Toggle Theme
</button>
<main style="margin: 0% 20%; align-items: center">
<h1>Typography</h1>
<hr />
<h1>Heading Size 1</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Pharetra convallis
posuere morbi leo.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Pharetra convallis
posuere morbi leo.
</p>
<h2>Heading Size 2</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Pharetra convallis
posuere morbi leo.
</p>
<h3>Heading Size 3</h3>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Pharetra convallis
posuere morbi leo.
</p>
<h4>Heading Size 4</h4>
<h5>Heading Size 5</h5>
<h6>Heading Size 6</h6>
<h1>Buttons</h1>
<hr />
<button class="btn">Label</button>
<button class="btn btn-light">Label</button>
<button class="btn btn-theme-1">Label</button>
<button class="btn btn-theme-2">Label</button>
<button class="btn btn-theme-3">Label</button>
<button class="btn btn-theme-4">Label</button>
<h1>Inputs</h1>
<hr />
<input class="inpt" type="text" placeholder="First name..." />
<input class="inpt" type="text" placeholder="Disabled" disabled />
</main>
</body>
<script>
let currentTheme = "light-mode";
const element = document.getElementById("theme-toggle");
element.onclick = () => {
currentTheme = currentTheme === "light-mode" ? "dark-mode" : "light-mode";
document.body.classList.remove("light-mode");
document.body.classList.remove("dark-mode");
document.body.classList.add(currentTheme);
};
</script>
</html>