-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
137 lines (130 loc) · 3.87 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html lang="en">
<head>
<title>Iconic UI Demo</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="module" src="/src/index.ts"></script>
<style>
:root {
--primary-light: #88c9ff;
--primary: #549bfc;
--primary-dark: #0c71e9;
--white: #ffffff;
--black: #000000;
--grey-light-0: #eff3fa;
--grey-light-1: #e4ebf5;
--grey-light-2: #c8d0e7;
--grey-light-3: #bec8e4;
--grey-dark: #9baacf;
--accordion-bg: #e4ebf5;
--bg-light: #ffffff33;
--foreground-default: var(--black);
--shadow-color: rgba(255, 255, 255, 0.3);
--shadow-color-light: rgba(1, 1, 1, 0.1);
--outer-shadow-color: rgba(1, 1, 1, 0.1);
--iconic-invert: var(--black);
}
iconic-dark-mode {
display: block;
}
html {
box-sizing: border-box;
font-size: 62.5%;
overflow-y: scroll;
}
@media screen and (min-width: 900px) {
html {
font-size: 75%;
}
}
body {
margin: 0;
font-family: "Poppins", sans-serif;
}
h1 {
color: var(--foreground-default);
text-transform: uppercase;
padding: 1em 0;
text-align: center;
}
.title {
margin: 0;
}
.description {
margin: 0;
}
.container {
display: flex;
justify-content: center;
align-items: center;
background: var(--grey-light-1);
color: var(--foreground-default);
}
.components {
border-radius: 3rem;
box-shadow: 0.8rem 0.8rem 1.4rem transparent, /* warum eigentlich der 2. schatten? */
-0.2rem -0.2rem 1.8rem var(--white);
padding: 4rem;
margin: 30px;
display: flex;
flex-direction: column;
align-items: center;
}
.general-settings {
display: flex;
flex-direction: column;
width: 100%;
align-items: stretch;
margin: 30px 0;
}
.inline-settings {
display: flex;
flex-direction: row;
width: 100%;
align-items: center;
margin-bottom: 30px;
align-content: center;
gap: 3em;
margin: 30px 0;
}
.last-step {
justify-content: flex-end;
}
</style>
</head>
<body>
<iconic-dark-mode enabled="true">
<h1 class="title">Iconic UI Demo</h1>
<div class="container">
<div class="components">
<label for="dm">Light mode</label> <iconic-toggle-button name="dm" id="dm"></iconic-toggle-button>
<div class="general-settings">
<div class="inline-settings">
<h2 class="title">Basis der Funktionalität wählen</h2>
<p class="decription">Erklärung zur Basis der Funktionalität</p>
<label for="pdf">PDF Export</label> <iconic-toggle-button name="pdf" id="pdf">
</div>
<div class="inline-settings">
<h2 class="title">2. Basis der Funktionalität wählen</h2>
<p class="decription">Erklärung zur Basis der Funktionalität</p>
<label for="bmd">BMD CSV Export</label> <iconic-toggle-button name="bmd" id="bmd">
</div>
</div>
<div class="general-settings">
<div class="inline-settings last-step">
<iconic-button>Abbrechen</iconic-button>
<iconic-button iconic-style="action">Speichern</iconic-button>
</div>
</div>
</div>
</div>
</iconic-dark-mode>
<script>
document.getElementById("dm").addEventListener("click", () => {
const dm = document.querySelector("iconic-dark-mode");
console.log(dm, dm.enabled);
dm.enabled = !dm.enabled;
})
</script>
</body>
</html>