-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
769 lines (683 loc) · 24 KB
/
index.html
File metadata and controls
769 lines (683 loc) · 24 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
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
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WeedWilly - BioPharmChE</title>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-2PBJC013DH"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-2PBJC013DH');
</script>
<script src="https://www.google.com/recaptcha/api.js?render=6Le2Rp0rAAAAACjw5A_-8rn79LxZJgsvVIfV8NT_"></script>
<style>
.grecaptcha-badge { visibility: hidden; }
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-color: #145DA0;
--secondary-color: #0C2D48;
--accent-color: #2E8BC0;
--text-color: #1b2733;
--bg-color: #f4f8fb;
--card-bg: rgba(255,255,255,0.93);
--shadow: 0 10px 32px rgba(44,79,123, 0.10);
}
[data-theme="dark"] {
--primary-color: #2E8BC0;
--secondary-color: #145DA0;
--accent-color: #4f92c6;
--text-color: #e0e6ee;
--bg-color: #111922;
--card-bg: rgba(30,40,60,0.96);
--shadow: 0 10px 32px rgba(44,79,123,0.25);
}
body {
font-family: "Roboto", "Noto Sans TC", Arial, sans-serif;
background: var(--bg-color);
color: var(--text-color);
}
.logo::before {
content: "⚗️";
font-size: 1.3rem;
}
.cta-button {
background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
color: #fff;
}
.feature-icon { font-size: 2.2rem; }
.features h2, .blog h2, .about-text h2, .contact h2 {
color: var(--primary-color);
}
.floating-elements .molecule {
font-size: 2.1rem;
opacity: 0.24;
animation: float2 7s ease-in-out infinite;
}
@keyframes float2 {
0%, 100% { transform: translateY(0) scale(1); }
50% { transform: translateY(-22px) scale(1.07);}
}
/* 導航欄 */
.navbar {
position: fixed;
top: 0;
width: 100%;
background: var(--card-bg);
backdrop-filter: blur(10px);
padding: 1rem 2rem;
z-index: 1000;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
}
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}
.logo {
font-size: 1.8rem;
font-weight: bold;
color: var(--primary-color);
text-decoration: none;
display: flex;
align-items: center;
gap: 0.5rem;
}
.logo::before {
content:"💊";
font-size: 1.5rem;
}
.nav-links {
display: flex;
gap: 2rem;
list-style: none;
}
.nav-links a {
text-decoration: none;
color: var(--text-color);
font-weight: 500;
position: relative;
transition: all 0.3s ease;
}
.nav-links a::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background: var(--primary-color);
transition: width 0.3s ease;
}
.nav-links a:hover::after {
width: 100%;
}
.theme-toggle {
background: none;
border: 2px solid var(--primary-color);
color: var(--primary-color);
padding: 0.5rem 1rem;
border-radius: 25px;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.3s ease;
}
.theme-toggle:hover {
background: var(--primary-color);
color: white;
transform: scale(1.05);
}
/* 主要內容 */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
/* Hero Section */
.hero {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
position: relative;
overflow: hidden;
}
.hero-content {
background: var(--card-bg);
backdrop-filter: blur(20px);
padding: 3rem;
border-radius: 20px;
box-shadow: var(--shadow);
max-width: 600px;
animation: slideUp 1s ease-out;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.hero h1 {
font-size: 3rem;
margin-bottom: 1rem;
background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero p {
font-size: 1.2rem;
margin-bottom: 2rem;
opacity: 0.8;
}
.cta-button {
display: inline-block;
background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
color: white;
padding: 1rem 2rem;
border-radius: 50px;
text-decoration: none;
font-weight: bold;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.cta-button:hover {
transform: translateY(-3px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
/* 浮動元素 */
.floating-elements {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
.molecule {
position: absolute;
font-size: 2rem;
opacity: 0.3;
animation: float 6s ease-in-out infinite;
}
.molecule:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.molecule:nth-child(2) { top: 60%; right: 15%; animation-delay: 2s; }
.molecule:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; }
.molecule:nth-child(4) { top: 40%; right: 30%; animation-delay: 1s; }
@keyframes float {
0%, 100% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-20px) rotate(10deg); }
}
/* 特色區塊 */
.features {
padding: 5rem 0;
background: var(--bg-color);
}
.features h2 {
text-align: center;
font-size: 2.5rem;
margin-bottom: 3rem;
color: var(--primary-color);
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.feature-card {
background: var(--card-bg);
padding: 2rem;
border-radius: 15px;
text-align: center;
box-shadow: var(--shadow);
transition: all 0.3s ease;
backdrop-filter: blur(10px);
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.feature-icon {
font-size: 3rem;
margin-bottom: 1rem;
display: block;
}
.feature-card h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: var(--primary-color);
}
/* 關於區塊 */
.about {
padding: 5rem 0;
background: var(--card-bg);
}
.about-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
align-items: center;
}
.about-text h2 {
font-size: 2.5rem;
margin-bottom: 1.5rem;
color: var(--primary-color);
}
.about-text p {
font-size: 1.1rem;
margin-bottom: 1.5rem;
line-height: 1.8;
}
.about-image {
position: relative;
border-radius: 20px;
overflow: hidden;
height: 400px;
background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
display: flex;
align-items: center;
justify-content: center;
font-size: 8rem;
color: rgba(255, 255, 255, 0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-image:hover {
transform: translateY(-10px) scale(1.02);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
/* 聯絡區塊 */
.contact {
padding: 5rem 0;
background: var(--bg-color);
text-align: center;
}
.contact h2 {
font-size: 2.5rem;
margin-bottom: 2rem;
color: var(--primary-color);
}
.contact-form {
max-width: 600px;
margin: 0 auto;
display: grid;
gap: 1rem;
}
.contact-form input,
.contact-form textarea {
padding: 1rem;
border: 2px solid var(--accent-color);
border-radius: 10px;
background: var(--card-bg);
color: var(--text-color);
font-size: 1rem;
transition: all 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 10px rgba(45, 90, 39, 0.3);
}
.contact-form button {
background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
color: white;
padding: 1rem 2rem;
border: none;
border-radius: 50px;
font-size: 1rem;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
}
.contact-form button:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* 響應式設計 */
@media (max-width: 768px) {
.nav-links {
display: none;
}
.hero h1 {
font-size: 2rem;
}
.hero-content {
padding: 2rem;
margin: 1rem;
}
.about-content {
grid-template-columns: 1fr;
text-align: center;
}
.container {
padding: 0 1rem;
}
}
/* 載入動畫 */
.loading {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--bg-color);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
transition: opacity 0.5s ease;
}
.loading.hidden {
opacity: 0;
pointer-events: none;
}
.spinner {
width: 50px;
height: 50px;
border: 5px solid var(--accent-color);
border-top: 5px solid var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body>
<!-- 載入畫面 -->
<div class="loading" id="loading">
<div class="spinner"></div>
</div>
<!-- 背景動畫 -->
<div class="bg-animation"></div>
<!-- 導航欄 -->
<nav class="navbar">
<div class="nav-container">
<a href="#" class="logo">BioPharmLab</a>
<ul class="nav-links">
<li><a href="#home">Home</a></li>
<li><a href="#research">Research</a></li>
<li><a href="#publications">Publications</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<button class="theme-toggle" id="themeToggle">🌙 Dark Mode</button>
</div>
</nav>
<!-- Hero Section -->
<section class="hero" id="home">
<div class="hero-content">
<h1>Welcome to BioPharmLab</h1>
<p>Advancing pharmaceutical innovation and biochemical engineering to shape a healthier future</p>
<a href="#research" class="cta-button">Explore Our Research</a>
</div>
<div class="floating-elements">
<div class="molecule">⚛️</div>
<div class="molecule">🔬</div>
<div class="molecule">💊</div>
<div class="molecule">🧬</div>
</div>
</section>
<!-- 特色區塊 -->
<section class="features" id="research">
<div class="container">
<h2>Research Areas</h2>
<div class="features-grid">
<div class="feature-card">
<span class="feature-icon">💊</span>
<h3>Drug Discovery and Development</h3>
<p>Developing innovative drugs and optimizing formulations to enhance therapeutic efficacy and safety</p>
</div>
<div class="feature-card">
<span class="feature-icon">🧬</span>
<h3>Biotechnology</h3>
<p>Applying bioengineering techniques to improve cell culture and product purification processes.</p>
</div>
<div class="feature-card">
<span class="feature-icon">⚗️</span>
<h3>Green Synthesis</h3>
<p>Designing eco-friendly chemical pathways to improve process efficiency and reduce environmental impact.</p>
</div>
<div class="feature-card">
<span class="feature-icon">🧠</span>
<h3>Biochip & Exosome</h3>
<p>Developing microfluidic biochips to isolate and analyze exosomes for early disease detection, personalized medicine, and therapeutic monitoring.</p>
</div>
</div>
</div>
</section>
<section class="features" id="publications">
<div class="container">
<h2>Latest Publications</h2>
<div class="features-grid">
<div class="feature-card">
<span class="feature-icon">🦠</span>
<h3>Discovery of Novel Antibacterial Molecules</h3>
<p>Our team utilized high-throughput screening to identify promising new compounds.</p>
</div>
<div class="feature-card">
<span class="feature-icon">🧬</span>
<h3>Enhanced Protein Yield in Cell Factories</h3>
<p>Optimizing expression systems and culture conditions to boost protein production efficiency.</p>
</div>
<div class="feature-card">
<span class="feature-icon">⚗️</span>
<h3>Patented Green Synthesis Catalyst</h3>
<p>Our novel catalyst enables sustainable chemical reactions with improved efficiency and reduced waste.</p>
</div>
<div class="feature-card">
<span class="feature-icon">🧠</span>
<h3>Biochip-Driven Neural Interface</h3>
<p>We engineered a microfluidic biochip capable of isolating neuron-derived exosomes, enabling real-time monitoring of neural activity and advancing brain-computer interface diagnostics.</p>
</div>
</div>
</div>
</section>
<!-- 關於區塊 -->
<section class="about" id="about">
<div class="container">
<div class="about-content">
<div class="about-text">
<h2>Our Team</h2>
<p>BioPharmLab is composed of interdisciplinary experts in pharmacy, biotechnology, and biochemical engineering. We integrate clinical and industrial experience to drive innovation from fundamental research to practical applications.</p>
<a href="#contact" class="cta-button">Join Us</a>
</div>
<div class="about-image">
<img src="https://cdn-icons-png.flaticon.com/512/13518/13518002.png" alt="BioPharmLab 團隊圖示" style="max-height: 100%; max-width: 100%; object-fit: contain;">
</div>
</div>
</div>
</section>
<!-- 聯絡區塊 -->
<section class="contact" id="contact">
<div class="container">
<h2>Contact Us</h2>
<form class="contact-form" id="contactForm">
<input type="text" name="name" placeholder="Your name" required>
<input type="email" name="email" placeholder="Your Email" required>
<textarea rows="5" name="message" placeholder="Your message" required></textarea>
<input type="hidden" name="recaptcha-token" id="recaptcha-token">
<button type="submit">Submit</button>
</form>
</div>
</section>
<script>
// 載入動畫
window.addEventListener('load', () => {
const loading = document.getElementById('loading');
setTimeout(() => {
loading.classList.add('hidden');
}, 1000);
});
// 主題切換
const themeToggle = document.getElementById('themeToggle');
const body = document.body;
themeToggle.addEventListener('click', () => {
const currentTheme = body.getAttribute('data-theme');
if (currentTheme === 'dark') {
body.removeAttribute('data-theme');
themeToggle.textContent = '🌙 Dark Mode';
} else {
body.setAttribute('data-theme', 'dark');
themeToggle.textContent = '☀️ Light Mode';
}
});
// 平滑滾動
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
// 導航欄滾動效果
window.addEventListener('scroll', () => {
const navbar = document.querySelector('.navbar');
if (window.scrollY > 100) {
navbar.style.background = 'rgba(248, 249, 250, 0.95)';
navbar.style.backdropFilter = 'blur(20px)';
} else {
navbar.style.background = 'var(--card-bg)';
navbar.style.backdropFilter = 'blur(10px)';
}
});
// 視差滾動效果
window.addEventListener('scroll', () => {
const scrolled = window.pageYOffset;
const parallax = document.querySelector('.bg-animation');
if (parallax) {
const speed = scrolled * 0.5;
parallax.style.transform = `translateY(${speed}px)`;
}
});
// 卡片懸停效果增強
document.querySelectorAll('.feature-card').forEach(card => {
card.addEventListener('mouseenter', () => {
card.style.transform = 'translateY(-15px) scale(1.02)';
});
card.addEventListener('mouseleave', () => {
card.style.transform = 'translateY(0) scale(1)';
});
});
// 文字打字效果
function typeWriter(element, text, speed = 100) {
let i = 0;
element.innerHTML = '';
function type() {
if (i < text.length) {
element.innerHTML += text.charAt(i);
i++;
setTimeout(type, speed);
}
}
type();
}
// 當頁面載入完成後啟動打字效果
setTimeout(() => {
const heroTitle = document.querySelector('.hero h1');
if (heroTitle) {
const originalText = heroTitle.textContent;
typeWriter(heroTitle, originalText, 150);
}
}, 1500);
// 修復後的表單提交處理
document.getElementById('contactForm').addEventListener('submit', function(e) {
e.preventDefault();
const formData = new FormData(this);
const name = formData.get('name');
const email = formData.get('email');
const message = formData.get('message');
// 檢查必填欄位
if (!name || !email || !message) {
alert('請填寫所有必填欄位');
return;
}
// 執行 reCAPTCHA
grecaptcha.ready(() => {
grecaptcha.execute('6Le2Rp0rAAAAACjw5A_-8rn79LxZJgsvVIfV8NT_', {action: 'submit'})
.then((token) => {
// 發送數據到 Google Apps Script
fetch('https://script.google.com/macros/s/AKfycbwjqAUFW5dqrQNdByQWHefssyN4R7Xom6zkVXQJjj5vRfhas33_5C_b_Gfw0jN_ImQiaA/exec', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
body: JSON.stringify({
name: name,
email: email,
message: message,
token: token
})
})
.then(response => {
if (response.ok) {
alert('感謝您的訊息!我們會盡快回覆您。');
this.reset(); // 清空表單
} else {
throw new Error('伺服器回應錯誤');
}
})
.catch(error => {
console.error('Error:', error);
alert('送出失敗,請稍後再試!');
});
})
.catch(error => {
console.error('reCAPTCHA Error:', error);
alert('驗證失敗,請重新整理頁面再試!');
});
});
});
</script>
<p style="font-size: 0.8rem; text-align: center; opacity: 0.6; padding: 20px;">
本網站使用 Google reCAPTCHA 保護安全,並遵守 <a href="https://policies.google.com/privacy">隱私權政策</a> 與 <a href="https://policies.google.com/terms">使用條款</a>。
</p>
<script src="https://cdn.jsdelivr.net/npm/js-cookie@3.0.5/dist/js.cookie.min.js"></script>
<script>
// 判斷是否第一次造訪
const hasVisited = document.cookie.includes('visited=');
const cookieValue = hasVisited ? 'true' : 'first-time';
// 設定 visited cookie(7 天)
document.cookie = 'visited=true; max-age=604800; path=/';
const data = {
cookieName: 'visited',
cookieValue,
userLang: navigator.language,
platform: navigator.platform,
userAgent: navigator.userAgent,
screenSize: `${screen.width}x${screen.height}`,
isMobile: /Mobile/i.test(navigator.userAgent) ? 'Yes' : 'No',
pagePath: location.pathname
};
// 關鍵:POST + x-www-form-urlencoded(避免預檢)且 URL 不加任何 ?params
fetch('https://script.google.com/macros/s/AKfycbwRqreJ0axnyU8tLHVxwncCrPejWDaQVwknuLqjNZOXMjUZCxtTIBPMWbsM8sX6BMEF/exec', {
method: 'POST',
credentials: 'omit',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
body: new URLSearchParams(data).toString()
})
.catch(console.error);
</script>
</body>
</html>