-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
567 lines (496 loc) · 19.9 KB
/
index.html
File metadata and controls
567 lines (496 loc) · 19.9 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
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>心域 Innera|情緒、心理App、日記、藥物紀錄、身心照護</title>
<meta name="description" content="心域 Innera 是專為身心健康設計的心理 App,提供情緒紀錄、心理日記、藥物紀錄與身心照護功能,幫助你探索身心的每一個角落。">
<meta name="keywords" content="情緒,心理App,日記,藥物紀錄,身心照護,心理健康,情緒管理,心域,Innera">
<meta property="og:title" content="心域 Innera|情緒、心理App、日記、藥物紀錄、身心照護">
<meta property="og:description" content="心域 Innera 是專為身心健康設計的心理 App,提供情緒紀錄、心理日記、藥物紀錄與身心照護功能。">
<meta property="og:type" content="website">
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/png" href="logo.jpg">
<link rel="apple-touch-icon" href="logo.jpg">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"url": "https://2019chenqq.github.io/Innera/",
"logo": "https://2019chenqq.github.io/Innera/logo.png"
}
</script>
</head>
<body>
<header class="navbar">
<a class="logo-area" href="index.html" aria-label="回到首頁">
<img src="logo.jpg" class="logo">
<div class="brand-text">
<div class="brand-title">
<h1>心域</h1>
<span>INNERA</span>
</div>
</div>
</a>
<button class="nav-toggle" type="button" aria-label="開啟導覽選單" aria-expanded="false" aria-controls="primary-nav">
<span></span>
<span></span>
<span></span>
</button>
<nav id="primary-nav">
<a href="index.html">首頁</a>
<div class="nav-item has-submenu">
<a href="about/about.html">關於我們</a>
<button class="submenu-toggle" type="button" aria-label="展開關於我們子選單" aria-expanded="false">▾</button>
<div class="submenu">
<a href="about/about.html#about-motivation">開發動機</a>
<a href="about/about.html#about-expectation">我們期許</a>
<a href="about/about.html#about-social">社會議題</a>
<a href="about/about.html#about-timeline">發展時間線</a>
<a href="about/about.html#about-roadmap">未來規劃</a>
</div>
</div>
<a href="#feature-intro">功能介紹</a>
<div class="nav-item has-submenu">
<a href="guide/daily-record.html">App 使用指南</a>
<button class="submenu-toggle" type="button" aria-label="展開 App 使用指南子選單" aria-expanded="false">▾</button>
<div class="submenu">
<a href="guide/daily-record.html">紀錄系統</a>
</div>
</div>
<a href="#contact-us">聯繫我們</a>
<div class="nav-item has-submenu">
<a href="FAQ/faq.html">常見問題</a>
<button class="submenu-toggle" type="button" aria-label="展開常見問題子選單" aria-expanded="false">▾</button>
<div class="submenu">
<a href="FAQ/faq-emotion-trend.html">情緒趨勢圖</a>
<a href="FAQ/faq-diary.html">日記功能</a>
<a href="FAQ/faq-medication.html">藥物紀錄</a>
</div>
</div>
</nav>
</header>
<section class="hero">
<div class="hero-left">
<div class="hero-heading">
<img src="images/app_logo.png" class="hero-app-logo" alt="心域 App Logo">
<h2>心域</h2>
</div>
<p class="subtitle">探索內心世界的每一刻</p>
<p class="desc">
心域是一個探索身心的 App,提供各種資源和工具,
幫助您更好地理解自己。
</p>
<div class="download">
<div class="qr-item">
<img src="images/Android QR code.png" alt="Android QR code">
<a class="store-link" href="https://play.google.com/store/apps/details?id=tw.heartsshine.app" target="_blank" rel="noopener noreferrer">Google Play 下載</a>
</div>
<div class="qr-item">
<img src="images/ios QR code.png" alt="iOS QR code">
<a class="store-link" href="https://apps.apple.com/app/%E5%BF%83%E5%9F%9F/id6761364532" target="_blank" rel="noopener noreferrer">App Store 下載</a>
</div>
</div>
</div>
<div class="hero-right phone-showcase">
<img src="images/home.jpg" class="phone phone-left" alt="首頁">
<img src="images/幸運餅乾.jpg" class="phone phone-center" alt="幸運餅乾">
<img src="images/新增藥物.jpg" class="phone phone-right" alt="新增藥物">
</div>
</section>
<section class="brand-video-section" id="brand-video">
<div class="brand-video-container">
<div class="brand-video-text">
<span class="section-kicker">認識心域 Innera</span>
<h2>用 30 秒,看見心域如何陪你整理身心狀態</h2>
<p>
心域希望陪你在混亂的情緒與生活裡,慢慢找回可以整理、可以回顧、
也可以被理解的方式。不是急著改變自己,而是先溫柔地看見自己。
</p>
</div>
<div class="brand-video-card">
<video class="brand-video" controls playsinline preload="metadata">
<source src="Video/App形象影片.mp4" type="video/mp4">
您的瀏覽器不支援影片播放。
</video>
</div>
</div>
</section>
<section class="feature-menu" id="feature-intro">
<blockquote>心域,探索身心的每一個角落,<br>創造更好的身心照護。</blockquote>
<h2 class="feature-menu-title">功能介紹</h2>
<div class="feature-menu-grid">
<a href="#daily-record" class="feature-card">
<span>01</span>
<h3>日常狀態紀錄</h3>
<p>情緒、症狀與睡眠</p>
</a>
<a href="#trend" class="feature-card">
<span>02</span>
<h3>趨勢分析</h3>
<p>看見身心變化</p>
</a>
<a href="#diary" class="feature-card">
<span>03</span>
<h3>日記書寫</h3>
<p>安放每天的感受</p>
</a>
<a href="#medication-integrated" class="feature-card">
<span>04</span>
<h3>藥物與回診整合</h3>
<p>整理照護脈絡</p>
</a>
<a href="#medication-tools" class="feature-card">
<span>05</span>
<h3>藥物管理工具</h3>
<p>打卡、調藥與時間線</p>
</a>
</div>
</section>
<section class="feature-group" id="daily-record">
<h2>日常狀態紀錄</h2>
<p>從情緒、症狀到睡眠,整理每天真實的身心狀態。</p>
<div class="feature-grid">
<img src="images/情緒紀錄.jpg" alt="六大基礎情緒分類">
<img src="images/症狀頁.jpg" alt="多種症狀勾選,亦可自行新增">
<img src="images/睡眠頁.jpg" alt="多維度睡眠監測,幫助您追蹤自己的睡眠狀況">
</div>
</section>
<section class="feature-group blue-section" id="trend">
<h2>趨勢分析</h2>
<p>透過圖表看見身心變化,幫助你更清楚理解自己的狀態。</p>
<div class="video-banner-row">
<div class="video-banner">
<video class="feature-video" autoplay muted loop playsinline preload="metadata" controls>
<source src="Video/trend.mp4" type="video/mp4">
您的瀏覽器不支援影片播放。
</video>
<p class="video-fallback" hidden>
trend 影片無法播放,請點此
<a href="Video/trend.mp4" target="_blank" rel="noopener noreferrer">下載影片</a>
或改用其他瀏覽器。
</p>
</div>
<div class="video-banner">
<video class="feature-video" autoplay muted loop playsinline preload="metadata" controls>
<source src="Video/med_compare.mp4" type="video/mp4">
您的瀏覽器不支援影片播放。
</video>
<p class="video-fallback" hidden>
med_compare 影片無法播放,請點此
<a href="Video/med_compare.mp4" target="_blank" rel="noopener noreferrer">下載影片</a>
或改用其他瀏覽器。
</p>
</div>
</div>
</section>
<section class="feature-group" id="diary">
<h2>日記書寫</h2>
<p>用文字留下每天的感受,讓心裡的聲音有地方被安放。</p>
<div class="single-feature">
<img src="images/日記頁.jpg" alt="引導式日記,幫助您更好地沉思每日狀況">
</div>
</section>
<section class="feature-group blue-section" id="medication-integrated">
<h2>藥物與回診整合</h2>
<p>把用藥、回診與調藥歷程整理在一起,讓照護更有脈絡。</p>
<div class="single-feature">
<img src="images/藥物整合頁.jpg" alt="藥物整合頁,幫助您更好地管理藥物使用">
</div>
</section>
<section class="feature-group" id="medication-tools">
<h2>藥物管理工具</h2>
<p>從新增藥物、回診調藥到每日打卡,完整記錄用藥變化。</p>
<div class="feature-grid">
<img src="images/回診調藥.jpg" alt="回診調藥紀錄">
<img src="images/調藥時間線.jpg" alt="調藥時間線">
<img src="images/藥物打卡.jpg" alt="藥物打卡">
</div>
</section>
<div class="lightbox" id="image-lightbox" aria-hidden="true">
<button class="lightbox-close" type="button" aria-label="關閉放大圖片">×</button>
<img class="lightbox-image" src="" alt="放大預覽">
</div>
<section class="contact-section" id="contact-us">
<h2 class="section-heading">聯繫我們</h2>
<p>若您有任何合作提案、使用建議或服務諮詢,歡迎透過以下方式與我們聯絡:</p>
<div class="contact-list">
<p>電子信箱:innera0120@gmail.com</p>
<p>Instagram:innera0120.mentalhealthapp</p>
<p>Line@:@768aiwjs</p>
<p>服務時間:週一至週五 09:00 - 18:00</p>
</div>
<form
class="cooperation-form"
id="cooperation-form"
data-gform-action="https://docs.google.com/forms/d/e/1FAIpQLSeqIADPsazuuOQt42L-IsX3ao3HVnV0WATkOBvRD825s2kZyg/formResponse"
data-entry-name="entry.263943149"
data-entry-organization="entry.1408358673"
data-entry-email="entry.1960804853"
data-entry-phone="entry.2023624273"
data-entry-message="entry.1545663490"
>
<h3>合作洽詢表單</h3>
<p class="form-help">表單已串接 Google Forms,送出後我們會盡快與您聯繫。</p>
<div class="form-grid">
<label>
姓名
<input type="text" name="name" required placeholder="請輸入您的姓名">
</label>
<label>
單位 / 公司名稱
<input type="text" name="organization" required placeholder="請輸入您的單位或公司名稱">
</label>
<label>
電子信箱
<input type="email" name="email" required placeholder="name@example.com">
</label>
<label>
聯絡電話
<input type="tel" name="phone" placeholder="請輸入聯絡電話(選填)">
</label>
</div>
<label class="full-width">
合作需求內容
<textarea name="message" rows="5" required placeholder="請簡要描述合作需求、預期目標或時程"></textarea>
</label>
<button type="submit" class="submit-btn">送出合作需求</button>
<p class="form-note" id="form-note" aria-live="polite"></p>
</form>
</section>
<footer>
<p>copyright © 2026 心域 Innera All rights reserved.</p>
</footer>
<script>
(function () {
const navbar = document.querySelector(".navbar");
const navToggle = document.querySelector(".nav-toggle");
const primaryNav = document.getElementById("primary-nav");
const submenuItems = primaryNav ? Array.from(primaryNav.querySelectorAll(".has-submenu")) : [];
const zoomableImages = Array.from(document.querySelectorAll(".feature-grid img, .single-feature img"));
const lightbox = document.getElementById("image-lightbox");
const lightboxImage = lightbox.querySelector(".lightbox-image");
const closeButton = lightbox.querySelector(".lightbox-close");
const featureVideos = Array.from(document.querySelectorAll(".feature-video"));
const cooperationForm = document.getElementById("cooperation-form");
const formNote = document.getElementById("form-note");
let currentIndex = -1;
let touchStartX = 0;
let touchStartY = 0;
function closeMobileNav() {
if (!navbar || !navToggle) {
return;
}
navbar.classList.remove("is-open");
navToggle.setAttribute("aria-expanded", "false");
submenuItems.forEach((item) => {
item.classList.remove("submenu-open");
const toggle = item.querySelector(".submenu-toggle");
if (toggle) {
toggle.setAttribute("aria-expanded", "false");
}
});
}
if (navbar && navToggle && primaryNav) {
navToggle.addEventListener("click", () => {
const isOpen = navbar.classList.toggle("is-open");
navToggle.setAttribute("aria-expanded", String(isOpen));
});
primaryNav.querySelectorAll("a").forEach((anchor) => {
anchor.addEventListener("click", () => {
if (window.matchMedia("(max-width: 768px)").matches) {
closeMobileNav();
}
});
});
submenuItems.forEach((item) => {
const toggle = item.querySelector(".submenu-toggle");
if (!toggle) {
return;
}
toggle.addEventListener("click", (event) => {
event.preventDefault();
const isSubmenuOpen = item.classList.toggle("submenu-open");
toggle.setAttribute("aria-expanded", String(isSubmenuOpen));
});
});
window.addEventListener("resize", () => {
if (!window.matchMedia("(max-width: 768px)").matches) {
closeMobileNav();
}
});
}
function showImage(index) {
if (!zoomableImages.length) {
return;
}
const normalizedIndex = (index + zoomableImages.length) % zoomableImages.length;
const targetImage = zoomableImages[normalizedIndex];
currentIndex = normalizedIndex;
lightboxImage.src = targetImage.src;
lightboxImage.alt = targetImage.alt || "放大預覽";
}
function openLightbox(index) {
showImage(index);
lightbox.classList.add("is-open");
lightbox.setAttribute("aria-hidden", "false");
document.body.classList.add("no-scroll");
}
function closeLightbox() {
lightbox.classList.remove("is-open");
lightbox.setAttribute("aria-hidden", "true");
document.body.classList.remove("no-scroll");
lightboxImage.src = "";
currentIndex = -1;
}
function showNext() {
if (currentIndex === -1) {
return;
}
showImage(currentIndex + 1);
}
function showPrev() {
if (currentIndex === -1) {
return;
}
showImage(currentIndex - 1);
}
zoomableImages.forEach((img, index) => {
img.classList.add("zoomable-image");
img.addEventListener("click", () => openLightbox(index));
});
closeButton.addEventListener("click", closeLightbox);
lightboxImage.addEventListener("touchstart", (event) => {
if (!lightbox.classList.contains("is-open")) {
return;
}
touchStartX = event.changedTouches[0].clientX;
touchStartY = event.changedTouches[0].clientY;
});
lightboxImage.addEventListener("touchend", (event) => {
if (!lightbox.classList.contains("is-open")) {
return;
}
const touchEndX = event.changedTouches[0].clientX;
const touchEndY = event.changedTouches[0].clientY;
const deltaX = touchEndX - touchStartX;
const deltaY = touchEndY - touchStartY;
if (Math.abs(deltaX) > 50 && Math.abs(deltaX) > Math.abs(deltaY)) {
if (deltaX < 0) {
showNext();
} else {
showPrev();
}
}
});
lightbox.addEventListener("click", (event) => {
if (event.target === lightbox) {
closeLightbox();
}
});
document.addEventListener("keydown", (event) => {
if (!lightbox.classList.contains("is-open")) {
return;
}
if (event.key === "Escape") {
closeLightbox();
} else if (event.key === "ArrowRight") {
showNext();
} else if (event.key === "ArrowLeft") {
showPrev();
}
});
featureVideos.forEach((videoElement) => {
const fallback = videoElement.parentElement.querySelector(".video-fallback");
if (!fallback) {
return;
}
const showVideoFallback = () => {
fallback.hidden = false;
};
const hideVideoFallback = () => {
fallback.hidden = true;
};
videoElement.addEventListener("loadeddata", hideVideoFallback);
videoElement.addEventListener("playing", hideVideoFallback);
videoElement.addEventListener("error", showVideoFallback);
videoElement.addEventListener("stalled", showVideoFallback);
});
if (cooperationForm && formNote) {
cooperationForm.addEventListener("submit", async (event) => {
event.preventDefault();
const rawGformAction = cooperationForm.dataset.gformAction || "";
const gformAction = rawGformAction.includes("/viewform")
? rawGformAction.replace(/\/viewform.*$/, "/formResponse")
: rawGformAction;
const entryMap = {
name: cooperationForm.dataset.entryName,
organization: cooperationForm.dataset.entryOrganization,
email: cooperationForm.dataset.entryEmail,
phone: cooperationForm.dataset.entryPhone,
message: cooperationForm.dataset.entryMessage,
};
const hasValidAction =
gformAction &&
gformAction.includes("docs.google.com/forms") &&
gformAction.includes("/formResponse") &&
!gformAction.includes("YOUR_FORM_ID");
const availableEntries = Object.values(entryMap).filter((entryId) => entryId && entryId.startsWith("entry."));
const missingConfig = !hasValidAction || !availableEntries.length;
if (missingConfig) {
formNote.className = "form-note error";
formNote.textContent = "Google Forms 設定不完整:請使用 docs.google.com 的 formResponse 網址,並填入正確 entry 欄位編號。";
return;
}
const formData = new FormData(cooperationForm);
const body = new URLSearchParams();
const hasSingleEntryMode =
!!entryMap.message &&
!entryMap.name &&
!entryMap.organization &&
!entryMap.email &&
!entryMap.phone;
if (hasSingleEntryMode) {
const combinedMessage = [
`姓名:${(formData.get("name") || "").toString().trim()}`,
`單位 / 公司名稱:${(formData.get("organization") || "").toString().trim()}`,
`電子信箱:${(formData.get("email") || "").toString().trim()}`,
`聯絡電話:${(formData.get("phone") || "").toString().trim() || "未提供"}`,
"",
"合作需求內容:",
(formData.get("message") || "").toString().trim(),
].join("\n");
body.append(entryMap.message, combinedMessage);
} else {
Object.entries(entryMap).forEach(([fieldName, entryId]) => {
if (!entryId || !entryId.startsWith("entry.")) {
return;
}
const value = (formData.get(fieldName) || "").toString().trim();
if (value) {
body.append(entryId, value);
}
});
}
try {
await fetch(gformAction, {
method: "POST",
mode: "no-cors",
headers: {
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
},
body,
});
formNote.className = "form-note success";
formNote.textContent = "感謝您的來信,我們已收到合作需求,將於 1-3 個工作天內與您聯繫。";
cooperationForm.reset();
} catch (error) {
formNote.className = "form-note error";
formNote.textContent = "送出失敗,請稍後再試,或直接寄信到 innera0120@gmail.com。";
}
});
}
})();
</script>
</body>
</html>