-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
393 lines (346 loc) · 11.8 KB
/
index.html
File metadata and controls
393 lines (346 loc) · 11.8 KB
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
<!DOCTYPE html>
<html lang="en">
<head>
<title>spruceOS Homepage</title>
<meta property="og:title" content="spruceOS" />
<meta property="og:description" content="SpruceOS custom firmware for the Miyoo A30" />
<meta property="og:image" content="https://github.com/user-attachments/assets/675d57a1-c318-4537-adc6-e7c2151aa175" />
<meta property="og:url" content="https://spruceui.github.io/" />
<meta property="og:type" content="website" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/styles.css">
<link rel="icon" href=
"img/logo.png"
type="image/x-icon" />
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body, html {
position: relative;
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
font-family: Arial, sans-serif;
color: #EBDBB2;
background: #282828;
background: -moz-radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(40,40,40,1) 35%, rgba(0,0,0,1) 100%);
background: -webkit-radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(40,40,40,1) 35%, rgba(0,0,0,1) 100%);
background: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(40,40,40,1) 35%, rgba(0,0,0,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#000000",GradientType=1);
overflow-x: hidden;
}
.page_title {
font-size: 50px;
text-align: center;
position: relative;
margin-top:3.69%
}
.additional-content {
margin-top: 1%;
position: relative;
text-align: center;
font-size: 18px;
}
.a30-row {
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: min(92vw, 1100px);
margin: 4% auto 0;
padding: 0 1.5rem;
}
.a30-container {
position: relative;
width: 100%;
}
.a30_bg{
position:absolute;
inset: 18% 14%;
border-radius: 12px;
background-color:#1d1d1d;
filter: blur(20px);
opacity: 0.5;
z-index: 0;
}
.a30_hardware{
display:block;
width:100%;
height:auto;
position: relative;
z-index: 1;
}
.a30-display {
position:absolute;
top: 13.7%;
left: 27.8%;
width: 44.8%;
height: 74.3%;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: nowrap;
gap: clamp(8px, 1.4vw, 18px);
padding: clamp(10px, 2vw, 26px);
z-index: 2;
}
.a30-display::before {
content: "";
position: absolute;
inset: 0;
border-radius: 8px;
pointer-events: none; /* Makes sure that content beneath is clickable */
background: repeating-linear-gradient(
to bottom,
rgba(0, 0, 0, 0.2),
rgba(0, 0, 0, 0.2) 1px,
transparent 1px,
transparent 3px
);
z-index: 0; /* effect sits beneath interactive elements */
opacity: 0.369; /* fix transparency */
}
.a30-display > * {
position: relative;
z-index: 1;
}
.button, .icon-button {
flex: 1 1 25%;
min-width: 0;
cursor: pointer;
box-sizing: border-box;
text-decoration: none;
color: #b0a89f;
background: transparent;
border: none;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 0;
gap: 8px;
transition: transform 0.2s ease, color 0.2s ease;
}
.button:hover, .icon-button:hover {
color: #EBDBB2; /* color on hover */
transform: translateY(-2px);
}
.spruceLogo{
position:absolute;
opacity: 0.3;
width: 9%;
min-width: 32px;
top: 8%;
left: 6%;
}
.logo-below {
position: absolute;
display: block;
margin: 0 auto; /* center image */
width: 9%; /* fix image dimension */
bottom: 3.69%;
left:3.69%;
opacity:0.369;
}
.github-icon-right {
position: absolute;
bottom: 3.69%;
right: 3.69%;
width: 8%;
opacity: 0.369;
transition: opacity 0.3s ease;
}
.github-icon-right:hover {
opacity: 0.77;
}
.github-icon-right svg {
width: 100%;
height: auto;
fill: #ffffff;
}
.learn-more-button {
background: #282828;
border-radius: 3.69px;
opacity:0.639;
position: absolute;
bottom: 3.69%;
left: 50%;
transform: translateX(-50%);
font-size: 18px;
color: #EBDBB2;
text-decoration: none;
padding: 2px;
}
.button svg, .icon-button svg {
width: clamp(42px, 4.6vw, 64px);
height: clamp(42px, 4.6vw, 64px);
}
.button.clicked svg {
fill: currentColor;
}
.button p, .icon-button p {
font-size: clamp(11px, 1.2vw, 15px);
letter-spacing: 0.5px;
}
@media only screen and (hover: none) and (pointer: coarse) and (min-width: 800px) {
.a30-row {
width: min(96vw, 860px);
}
}
@media only screen and (max-width: 768px){
body, html {
justify-content: flex-start;
}
.page_title{
margin-top: 16%;
}
.additional-content{
font-size: 16px;
}
.a30-row {
width: 160vw;
margin-top: 12%;
margin-left: -30vw;
padding: 0;
}
.a30-container{
overflow: visible;
}
.a30-display{
padding: clamp(18px, 5vw, 36px);
gap: clamp(12px, 4vw, 28px);
}
.button svg, .icon-button svg {
width: clamp(52px, 12vw, 78px);
height: clamp(52px, 12vw, 78px);
}
.button p, .icon-button p {
font-size: clamp(11px, 2.6vw, 15px);
}
}
/* scrolling animation (right to left) */
.slide-in-right {
transform: translateX(100%); /* initially moved at the right */
opacity: 0;
animation: slideInRight 0.5s forwards;
}
@keyframes slideInRight {
to {
transform: translateX(0); /* resets original position */
opacity: 1;
}
}
/* scrolling animation (top to bottom) */
.slide-in-down {
transform: translateY(-100%); /* initially moved to the top */
opacity: 0;
animation: slideInDown 0.5s forwards;
}
@keyframes slideInDown {
to {
transform: translateY(0); /* resets original position */
opacity: 1;
}
}
/* scrolling animation (bottom to top) */
.slide-in-up {
transform: translateY(100%); /* initially moved to the bottom */
opacity: 0;
animation: slideInUp 0.5s forwards;
}
@keyframes slideInUp {
to {
transform: translateY(0); /* resets original position */
opacity: 1;
}
}
</style>
</head>
<body>
<h1 class="page_title hidden slide-in-down">spruceOS</h1>
<div class="additional-content hidden slide-in-down">
<p>Make the most out of your Miyoo A30</p>
</div>
<div class="a30-row">
<div class="a30-container">
<div class="a30_bg"></div>
<img src="img/miyooa30.png" class="a30_hardware"></img>
<div class="a30-display">
<img class="spruceLogo" src="img/logo.png">
<a href="https://github.com/spruceUI/spruceOS/releases/latest" class="button hidden slide-in-up" id="downloadButton">
<div id="downloadIcon">
<!-- download icon -->
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 13V4M7 14H5a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2m-1-5-4 5-4-5m9 8h.01"/>
</svg>
</div>
<p>Download</p>
</a>
<a href="https://github.com/spruceUI/Ports-and-Free-Games" class="button hidden slide-in-up" id="gamesButton">
<div id="gamesIcon">
<!-- games icon -->
<svg class="w-[48px] h-[48px] text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
<path stroke="currentColor" stroke-linejoin="round" stroke-width="1.5" d="M4 5a1 1 0 0 1 1-1h11.586a1 1 0 0 1 .707.293l2.414 2.414a1 1 0 0 1 .293.707V19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5Z"/>
<path stroke="currentColor" stroke-linejoin="round" stroke-width="1.5" d="M8 4h8v4H8V4Zm7 10a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"/>
</svg>
</div>
<p>Games</p>
</a>
<a href="https://github.com/spruceUI/spruceOS/wiki" class="icon-button hidden slide-in-up" id="wikiButton">
<div id="wikiIcon">
<!-- wiki icon -->
<svg class="w-[48px] h-[48px] text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 6.03v13m0-13c-2.819-.831-4.715-1.076-8.029-1.023A.99.99 0 0 0 3 6v11c0 .563.466 1.014 1.03 1.007 3.122-.043 5.018.212 7.97 1.023m0-13c2.819-.831 4.715-1.076 8.029-1.023A.99.99 0 0 1 21 6v11c0 .563-.466 1.014-1.03 1.007-3.122-.043-5.018.212-7.97 1.023"/>
</svg>
</div>
<p>Wiki</p>
</a>
<a href="https://github.com/spruceUI/spruceOS/" class="icon-button hidden slide-in-up" id="faqButton">
<div id="faqIcon">
<!-- GitHub icon -->
<svg class="w-[48px] h-[48px] text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M15 17h3a3 3 0 0 0 0-6h-.025a5.56 5.56 0 0 0 .025-.5A5.5 5.5 0 0 0 7.207 9.021C7.137 9.017 7.071 9 7 9a4 4 0 1 0 0 8h2.167M12 19v-9m0 0-2 2m2-2 2 2"/>
</svg>
</div>
<p>Connect</p>
</a>
</div>
</div>
</div>
<img src="img/spruce_logo.png" class="logo-below" alt="Spruce Logo">
<a href="#" class="learn-more-button ">▼ Learn More ▼</a>
<a href="https://github.com/spruceUI/spruceOS" class="github-icon-right">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<path fill-rule="evenodd" d="M12 2C6.477 2 2 6.477 2 12a10.001 10.001 0 006.838 9.481c.5.092.682-.217.682-.482 0-.237-.009-.867-.014-1.701-2.782.605-3.369-1.343-3.369-1.343-.454-1.154-1.11-1.46-1.11-1.46-.907-.62.069-.608.069-.608 1.002.07 1.53 1.029 1.53 1.029.891 1.528 2.34 1.087 2.91.832.091-.646.35-1.088.636-1.338-2.22-.253-4.555-1.112-4.555-4.951 0-1.093.39-1.988 1.03-2.686-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.025A9.56 9.56 0 0112 6.845c.853.004 1.71.115 2.512.337 1.91-1.295 2.75-1.025 2.75-1.025.544 1.378.202 2.397.1 2.65.64.698 1.03 1.593 1.03 2.686 0 3.847-2.337 4.695-4.565 4.942.36.31.68.923.68 1.859 0 1.342-.013 2.425-.013 2.754 0 .267.18.578.688.48A10.001 10.001 0 0022 12c0-5.523-4.477-10-10-10z"/>
</svg>
</a>
<script>
function toggleIcon(buttonId, iconId) {
const button = document.getElementById(buttonId);
const iconContainer = document.getElementById(iconId);
const isClicked = button.classList.toggle('clicked');
if (iconId === 'wikiIcon') {
iconContainer.innerHTML = isClicked ?
`<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11 4.717c-2.286-.58-4.16-.756-7.045-.71A1.99 1.99 0 0 0 2 6v11c0 1.133.934 2.022 2.044 2.007..."/></svg>` :
`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.03v13..."/></svg>`;
}
}
document.addEventListener('DOMContentLoaded', () => {
const elements = document.querySelectorAll('.hidden');
// add animation classes
elements.forEach((element, index) => {
setTimeout(() => {
element.classList.remove('hidden');
element.classList.add(element.classList.contains('slide-in-right') ? 'slide-in-right' : 'slide-in-down');
}, index * 200); // add increasing delay for each element
});
});
</script>
</body>
</html>