-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
570 lines (513 loc) · 19.6 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
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
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Anek+Bangla:wdth,wght@75..125,100..800&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap" rel="stylesheet">
<title>Radial Line Animation with Outward Emission</title>
<style>
* {
box-sizing: border-box;
}
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background: #F3F3F5;
color: #13111C;
display: flex;
flex-direction: column;
font-family: 'Bangla MN', Merriweather, sans-serif;
overflow-x: hidden;
}
button {
background-color: transparent;
border: none;
border-radius: 999px;
color: #3057C5;
font-size: 16px;
font-weight: 600;
padding: 12px 32px 8px;
}
button:hover {
background-color: rgba(70, 66, 88, 0.35);
}
.navbar {
width: 100%;
background: rgba(243, 243, 245, 0.5);
padding: 0.8rem 0;
position: fixed;
top: 0;
left: 50%;
transform: translate(-50%, 0);
z-index: 10;
border-bottom: 1px solid #EDEDEF;
}
.navbar a:hover {
color: #3057C5;
}
.navbar a {
color: #13111C;
text-decoration: none;
margin: 0 2.5rem;
transition: color 0.3s, text-decoration 0.3s;
}
.navbar a:hover,
.navbar a:focus,
.navbar a:active {
color: #3057C5;
text-decoration: underline;
text-underline-offset: 4px; /* 下划线距文字 4px */
}
.navbar a:focus,
.navbar a:active {
color: #67BCBD;
}
.navbar a.selected {
color: #67BCBD;
text-decoration: underline;
text-underline-offset: 4px; /* 下划线距文字 4px */
}
.logo img {
width: 42px;
height: auto;
}
.content {
background-image: url("assets/file/home-img.png");
height: 783px;
width: 100%;
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
}
.content,
.contentScenario,
.contentTeam,
.contentPro-info {
max-width: 1200px;
z-index: 5;
text-align: center;
margin: 0 auto;
box-sizing: border-box;
padding: 48px 0;
}
.h1 {
font-size: 62px;
line-height: 62px;
margin: 32px 0;
}
.contentPro-info h1{
font-size: 42px;
line-height: 66px;
margin-top: 58px;
text-align: left;
margin-bottom: 0;
}
.content p {
font-size: 24px;
margin: 24px 0;
line-height: 42px;
max-width: 70%;
text-align: left;
}
.contentPro-info p {
font-size: 16px;
line-height: 32px;
margin: 8px 0;
text-align: left;
max-width: 45%;
}
.email-input-container button {
padding: 22px 16px 16px;
font-size: 26px;
border: none;
background-color: #3057C5;
color: #fff;
cursor: pointer;
transition: background-color 0.3s;
border-top-right-radius: 999px;
border-bottom-right-radius: 999px;
outline: none;
}
.email-input-container button:hover {
background-color: #3057C5;
}
.email-input-container:focus-within {
border-color: #3057C5;
}
.content-background {
background-image: url("assets/file/product-baackground-img.png");
height: 578px;
width: 100%;
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
}
.productPhoto img {
margin-right: 8px;
}
.footer {
margin-top: 96px;
background-color: #fff;
color: #13111C;
padding: 20px 0;
text-align: center;
position: relative;
bottom: 0;
width: 100%;
}
.footer p {
margin: 0;
font-size: 14px;
}
.footer a {
color: #DFAD28;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
.rotated-container {
width: 50%;
margin: auto;
transform-origin: center;
transition: transform 0.5s;
transform: rotate(30deg);
}
.buttons {
display: flex;
flex-direction: column;
justify-content: center;
margin-right: 20px;
}
.contentScenario {
position: relative;
z-index: 5; /* Ensure it's above the canvas */
}
.contentScenarioInfo p{
font-size: 20px;
font-weight: 500;
color: #ffffff;
}
.contentScenarioInfo ul {
list-style-type: none;
counter-reset: item;
padding-left: 40px; /* 调整列表项的左边距以留出空间给序列号 */
}
.contentScenarioInfo ul li {
margin: 32px 0;
font-size: 16px;
text-align: left;
line-height: 28px;
counter-increment: item;
}
.contentScenarioInfo ul li::before {
content: counter(item) " . ";
font-weight: bold;
position: absolute;
left: 573px; /* 调整序列号的位置 */
}
.Scenarios01 li::before {
color: #3057C5;
}
.Scenarios02 li::before {
color: #549BD6;
}
.Scenarios03 li::before {
color: #67BCBD;
}
.contentTeam-info {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(579px, 1fr));
grid-gap: 1.2rem 1.2rem;
gap: 1.2rem 1.2rem;
}
.contentTeam-info div img {
width: 466px;
height: auto;
}
.contentTeam span {
border: 1px solid #BCBCC9; /* 边框颜色可以根据需要调整 */
border-radius: 12px;
padding: 16px 12px 8px;
display: inline-flex; /* 确保内联元素的padding和边框生效 */
margin: 6px; /* 添加一些上下间距,以避免内容拥挤 */
font-size: 14px;
line-height: 14px;
align-items: center;
}
.contentTeam div h3 {
margin: 0; /* 添加一些上下间距,以避免内容拥挤 */
display: inline-block;
}
button#upButton {
color: #C0C0C0; /* 默认灰色 */
}
button#upButton:disabled {
color: #C0C0C0; /* 灰色 */
}
button#downButton {
color: #3057C5;
}
button#upButton:enabled {
color: #67BCBD; /* 可点击时 */
}
</style>
</head>
<body>
<div class="navbar">
<div style="display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; margin: auto;">
<img src="assets/file/elab3-8.png" alt="Logo">
<nav style="display: flex; justify-content: center; align-items: center;">
<a href="#product">Product</a>
<a href="#scenarios">Scenarios</a>
<a href="#team">Team</a>
</nav>
</div>
</div>
<div class="content-container">
<div class="content" id="introduction" style="display: flex; flex-direction: column; justify-content: center;align-items: flex-start; max-width: 100%">
<div style="max-width: 1200px; margin: 0 auto;">
<h1 style="font-size: 52px;text-align: left;margin-bottom: 0">Sports Efficiency Lab</h1>
<p>Utilizing AI to improve the efficiency of insured individuals' exercise and rehabilitation, reducing insurance company premiums and other payers' expenses.</p>
</div>
</div>
<div class="contentPro" id="product">
<div class="content-background">
<div class="contentPro-info">
<h1>Product</h1>
<p style="font-size: 16px; line-height: 28px; margin: 8px 0; text-align: left;">
Over 700 sets of rehabilitation exercises<br>
Physical therapists tailor rehabilitation plans or adopt system recommended solutions based on the user's situation<br>
AI will correct actions in real-time based on the user's movement trajectory<br>
Users can also choose their own rehabilitation plans as well<br>
</p>
</div>
</div>
</div>
<div class="contentScenario" id="scenarios">
<h1 style="font-size: 42px; line-height: 66px; margin: 8px 0; text-align: left;">Scenarios, beneficial to all parts</h1>
<div style="display: flex; align-items: center;justify-content: space-between;position: relative">
<div class="rotated-container">
<canvas id="myChart"></canvas>
</div>
<div class="contentScenarioInfo">
<div class="Scenarios01" style="display: block;">
<p style="position:absolute; top: 251px;left: 287px" class="Scenarios01title">Therapists</p>
<ul >
<li>Currently only revenue per unit of time can be obtained.
For example, even if there is a large number of patients waiting in
line, only 8 hours of labor income can be obtained per day.
Assuming that the entire amount is paid by the insurance company,
that is, a maximum of $1,600.
</li>
<li>
Through this service, a rehabilitation program is developed for the patient, and the patient can perform the rehabilitation at home on his/her own, with the insurance company’s expenses reduced from $200 to $50.
</li>
<li>Physical therapists receive income outside of the 8-hour
period. Since it does not take away from their work time
and space, they can earn multiple additional $50 per hour
incomes by providing rehabilitation programs for multiple
patients.
</li>
</ul>
</div>
<div class="Scenarios02" style="display: none">
<p style="position:absolute; top: 245px;left: 295px" class="Scenarios02title">Insurance</p>
<ul >
<li>The annual premium expenditure provided for the rehab activities of its insured exceeds billions of dollars.
For example, insurance companies have to pay rehab fees of up to $200 per hour to physical therapists.
If purchasing this service, it will only cost
$50 per hour.
</li>
<li>
The corporate clients procure rehab
services annually for the welfare of its employees.
For example, Google and law firms
offer massage services, and our
product will significantly reduce such expenses.
</li>
</ul>
</div>
<div class="Scenarios03" style="display: none">
<p style="position:absolute; top: 249px;left: 313px" class="Scenarios02title">Patients</p>
<ul>
<li>
Currently it is only possible to go through a long wait while getting rehab from a physical therapist.
</li>
<li>
With this program, waiting times and visits can be significantly reduced and treatment time is more autonomous.
</li>
</ul>
</div>
</div>
<div class="buttons">
<button id="upButton">▲</button>
<button id="downButton">▼</button>
</div>
</div>
</div>
<div class="contentTeam" id="team">
<h1 style="font-size: 42px; line-height: 66px; margin: 8px 0; text-align: left;">Team</h1>
<div class="contentTeam-info">
<div>
<img src="assets/file/SeanLONG-img.png">
<div>
<span style="background-color: rgba(188,188,201,0.3); font-size: 14px;font-weight: 600;color: #67BCBD;border: none">Founder</span>
<h3>Dr. Sean LONG</h3>
</div>
<span>
Bachelor in Clinic Medicine
</span>
<span>
PhD in Finance
</span>
<span>
Serial Entrepreneur
</span>
<span>
Amteur Athlete
</span>
<span>
Investment Banker
</span>
</div>
<div>
<img src="assets/file/Elab-img.png">
<span>
Former China national basketball team coach
</span>
<span>
Former Yale varsity tennis player
</span>
<span>
Canadian registered therapist
</span>
<span>
Canadian insurance executive
</span>
</div>
</div>
</div>
</div>
<div class="footer">
<p>© 2024 Efficiency Lab | <span style="color: #666666">邮箱:</span><span style="color: #67BCBD">aetfopuca@gmail.com</span></p>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
const upButton = document.getElementById('upButton');
const downButton = document.getElementById('downButton');
const rotatedContainer = document.querySelector('.rotated-container');
let rotationAngle = 30;
let currentSegment = 0;
const originalColors = {
inner: ['#3057C5', '#BABDBD', '#BABDBD'],
outer: ['rgba(48,87,197,0.2)', 'rgba(186,189,189,0.2)', 'rgba(186,189,189,0.2)']
};
const colors = {
inner: [...originalColors.inner],
outer: ['rgba(48,87,197,0.2)', 'rgba(48,87,197,0.2)', 'rgba(48,87,197,0.2)', 'rgba(186,189,189,0.2)', 'rgba(186,189,189,0.2)', 'rgba(186,189,189,0.2)', 'rgba(186,189,189,0.2)']
};
const ctx = document.getElementById('myChart').getContext('2d');
const myChart = new Chart(ctx, {
type: 'pie',
data: {
datasets: [{
label: 'Outer Ring',
data: [1/9, 1/9, 1/9, 1/6, 1/6, 1/6, 1/6, 0, 0, 0],
backgroundColor: colors.outer,
borderWidth: 1,
hoverOffset: 4
}, {
label: 'Inner Ring',
data: [1/3, 1/3, 1/3],
backgroundColor: colors.inner,
borderWidth: 1,
hoverOffset: 4
}]
},
options: {
responsive: true,
layout: {
padding: {
top: 10,
bottom: 10,
left: 10,
right: 10
}
},
plugins: {
tooltip: {
enabled: false // 禁用工具提示
}
},
events: [] // 禁用所有交互事件
}
});
downButton.addEventListener('click', function () {
rotationAngle += 120;
currentSegment = (currentSegment + 1) % 3;
updateChart();
checkButtons();
});
upButton.addEventListener('click', function () {
if (rotationAngle === 0) return;
rotationAngle = 30;
currentSegment = 0;
updateChart();
checkButtons();
});
function updateChart() {
rotatedContainer.style.transform = `rotate(${rotationAngle}deg)`;
if (currentSegment === 1) {
colors.inner = ['#BABDBD', '#BABDBD', '#549BD6'];
colors.outer = ['rgba(186,189,189,0.2)', 'rgba(186,189,189,0.2)', 'rgba(186,189,189,0.2)', 'rgba(186,189,189,0.2)', 'rgba(186,189,189,0.2)', 'rgba(84,155,214,0.2)', 'rgba(84,155,214,0.2)'];
showScenario('Scenarios02');
} else if (currentSegment === 2) {
colors.inner = ['#BABDBD', '#67BCBD', '#BABDBD'];
colors.outer = ['rgba(186,189,189,0.2)', 'rgba(186,189,189,0.2)', 'rgba(186,189,189,0.2)', 'rgba(103,188,189,0.2)', 'rgba(103,188,189,0.2)', 'rgba(186,189,189,0.2)', 'rgba(186,189,189,0.2)'];
showScenario('Scenarios03');
} else {
colors.inner = [...originalColors.inner];
colors.outer = ['rgba(48,87,197,0.2)', 'rgba(48,87,197,0.2)', 'rgba(48,87,197,0.2)', 'rgba(186,189,189,0.2)', 'rgba(186,189,189,0.2)', 'rgba(186,189,189,0.2)', 'rgba(186,189,189,0.2)'];
showScenario('Scenarios01');
}
myChart.data.datasets[0].backgroundColor = colors.outer;
myChart.data.datasets[1].backgroundColor = colors.inner;
myChart.update();
}
function showScenario(scenarioClass) {
document.querySelectorAll('.contentScenarioInfo div').forEach(function (div) {
div.style.display = 'none';
});
document.querySelector('.' + scenarioClass).style.display = 'block';
}
function checkButtons() {
upButton.disabled = rotationAngle === 30;
if (upButton.disabled) {
upButton.style.color = "#C0C0C0"; // 灰色
} else {
upButton.style.color = "#67BCBD"; // 可点击时颜色
}
}
// 初始检查按钮状态
checkButtons();
});
document.addEventListener('DOMContentLoaded', function () {
const navLinks = document.querySelectorAll('.navbar a');
navLinks.forEach(link => {
link.addEventListener('click', function () {
// 移除所有链接的选中状态
navLinks.forEach(nav => nav.classList.remove('selected'));
// 为被点击的链接添加选中状态
this.classList.add('selected');
});
});
});
</script>
</body>
</html>