forked from lumalabs/luma-web-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
210 lines (171 loc) · 3.71 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title></title>
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
position: absolute;
width: 100%;
height: 100%;
color: #2d2d2d;
background-color: #111111;
/* sans-serif */
font-family: -apple-system, BlinkMacSystemFont, "Open Sans", "Helvetica Neue", sans-serif;
}
#react-root {
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
gap: 2px;
}
.demo-menu {
background: white;
border-radius: 10px;
padding: 60px;
width: 100%;
font-size: 1.1em;
/* subtle shadow */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
overflow: auto;
/* smooth scroll */
scroll-behavior: smooth;
}
.demo-menu pre>pre {
border-radius: 10px !important;
padding: 1.5em !important;
}
.demo-menu h1 {
text-align: center;
font-size: 2.5em;
margin: 0 0 1.2em 0;
}
.demo-menu h2 {
padding-left: 20px;
padding-right: 20px;
margin-left: -20px;
margin-right: -20px;
display: flex;
justify-content: space-between;
margin-top: 2.5em;
cursor: pointer;
border-radius: 10px;
padding-top: 10px;
padding-bottom: 10px;
font-size: 1.8em;
transition: all 0.05s ease-in-out;
}
.demo-menu h2:hover {
background-color: #f1f1f1;
}
.demo-menu h2.active {
/* background */
background: #3f8fcc;
}
.demo-menu h2.active a {
/* color */
color: white;
}
.demo-menu img {
max-width: 100%;
}
button {
cursor: pointer;
border: none;
border-radius: 5px;
padding: 10px;
background-color: #3f8fcc;
color: white;
transition: all 0.05s ease-in-out;
opacity: 1;
}
a {
color: #007cc1;
text-decoration: none;
cursor: pointer;
}
a:hover {
color: #089eef;
}
/* For small screen widths change flex-direction to column */
@media (max-width: 768px) {
#react-root {
flex-direction: column;
}
.demo-menu {
width: auto;
height: 100%;
padding: 25px;
}
}
.expand-button {
position: absolute;
top: 20px;
left: 20px;
width: 30px;
height: 30px;
text-align: center;
border-radius: 5px;
overflow: hidden;
display: flex;
align-content: center;
justify-content: center;
align-items: center;
color: white;
border: 1px solid rgba(255, 255, 255, 0.5);
cursor: pointer;
user-select: none;
text-shadow: 0 1px 1px #0000005c;
box-shadow: 0 1px 2px #0000005c;
font-size: 18px;
/* this is critical to workaround a Firefox performance bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1867791 */
backdrop-filter: blur(10px);
}
</style>
<style>
@font-face {
font-family: 'icons';
src:
url('assets/fonts/icons.ttf?38h6mp') format('truetype'),
url('assets/fonts/icons.woff?38h6mp') format('woff'),
url('assets/fonts/icons.svg?38h6mp#icons') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}
[class^="icon-"],
[class*=" icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'icons' !important;
speak: never;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-compress:before {
content: "\f066";
}
.icon-navicon:before {
content: "\f0c9";
}
.icon-expand:before {
content: "\e900";
}
</style>
</head>
<body>
<div id="react-root"></div>
<script src="dist/index.js"></script>
</body>
</html>