Skip to content

Commit 9a9739b

Browse files
authored
fix: 修復手風琴展開問題並統一全站 Footer 與 Navigation (#19)
* fix: 修復手風琴展開問題並統一全站 Footer 與 Navigation ## 修復內容 ### 1. 手風琴展開問題 (competency-map.html) - 修正 CSS:使用 !important 確保 accordion-content 正確隱藏 - 修正 JS:改用 CSS class 切換方式取代內聯樣式 - 移除 HTML 中的 pb-4 類別,由 CSS 統一控制 ### 2. Footer 統一 (20 個頁面) - 所有頁面使用統一的 Footer 格式 - 包含:網站標題、描述、關於我們/網站地圖/聯絡我們 連結 - 統一版權聲明格式 ### 3. Navigation 統一 (15 個頁面) - 為所有頁面的導航欄新增「關於我們」連結 - 確保導航一致性 * fix: 修復 PR 審查中 AI 建議的問題 - 新增遺漏的「關於我們」導航連結 (portfolio-gallery.html, career-exploration/index.html) - 統一 footer 描述文字以保持一致性 - 增強手風琴元件的無障礙支援 (aria-expanded, aria-controls 屬性) * chore: 更新聯絡信箱為 hctsai@linux.com 將全站 Footer 中的 contact@example.com 替換為正式信箱 * refactor: 移除 CSS !important,改用高特異性選擇器 使用 #competency-grid 作為父選擇器提高特異性, 取代原本的 !important 宣告,改善 CSS 可維護性
1 parent a7b07dc commit 9a9739b

21 files changed

+270
-39
lines changed

about.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,20 @@ <h4 class="font-bold text-lg text-blue-600">介紹影片</h4>
185185
</main>
186186

187187
<!-- Footer -->
188-
<footer class="bg-gray-800 text-white">
188+
<footer class="bg-gray-800 text-white mt-20">
189189
<div class="container mx-auto px-6 py-10">
190-
<p class="text-center">&copy; 2026 台灣教育處方籤</p>
190+
<div class="text-center">
191+
<h3 class="text-2xl font-bold">台灣教育處方籤</h3>
192+
<p class="text-gray-400 mt-1">一個由關心台灣教育的學生與開發者發起的專案。</p>
193+
<div class="flex justify-center space-x-6 mt-4">
194+
<a href="about.html" class="text-gray-400 hover:text-white transition duration-300">關於我們</a>
195+
<a href="sitemap.html" class="text-gray-400 hover:text-white transition duration-300">網站地圖</a>
196+
<a href="mailto:hctsai@linux.com" class="text-gray-400 hover:text-white transition duration-300">聯絡我們</a>
197+
</div>
198+
</div>
199+
<div class="mt-8 border-t border-gray-700 pt-6 text-center text-gray-500 text-sm">
200+
&copy; 2026 台灣教育處方籤. All Rights Reserved.
201+
</div>
191202
</div>
192203
</footer>
193204

advanced-resources/competitions.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<a href="../career-exploration/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">未來生涯GPS</a>
5050
<a href="index.html" class="text-purple-600 font-semibold transition duration-300">進階資源探索區</a>
5151
<a href="../civic-tech-map/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">公民科技專案地圖</a>
52+
<a href="../about.html" class="text-gray-600 hover:text-blue-500 transition duration-300">關於我們</a>
5253
</div>
5354
</nav>
5455
</header>
@@ -124,7 +125,18 @@ <h3 class="mt-2 text-sm font-medium text-gray-900">找不到競賽</h3>
124125
<!-- Footer -->
125126
<footer class="bg-gray-800 text-white mt-20">
126127
<div class="container mx-auto px-6 py-10">
127-
<p class="text-center">&copy; 2026 台灣教育處方籤</p>
128+
<div class="text-center">
129+
<h3 class="text-2xl font-bold">台灣教育處方籤</h3>
130+
<p class="text-gray-400 mt-1">一個由關心台灣教育的學生與開發者發起的專案。</p>
131+
<div class="flex justify-center space-x-6 mt-4">
132+
<a href="../about.html" class="text-gray-400 hover:text-white transition duration-300">關於我們</a>
133+
<a href="../sitemap.html" class="text-gray-400 hover:text-white transition duration-300">網站地圖</a>
134+
<a href="mailto:hctsai@linux.com" class="text-gray-400 hover:text-white transition duration-300">聯絡我們</a>
135+
</div>
136+
</div>
137+
<div class="mt-8 border-t border-gray-700 pt-6 text-center text-gray-500 text-sm">
138+
&copy; 2026 台灣教育處方籤. All Rights Reserved.
139+
</div>
128140
</div>
129141
</footer>
130142

advanced-resources/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<a href="../career-exploration/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">未來生涯GPS</a>
5353
<a href="index.html" class="text-purple-600 font-semibold transition duration-300">進階資源探索區</a>
5454
<a href="../civic-tech-map/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">公民科技專案地圖</a>
55+
<a href="../about.html" class="text-gray-600 hover:text-blue-500 transition duration-300">關於我們</a>
5556
</div>
5657
</nav>
5758
</header>
@@ -191,7 +192,7 @@ <h3 class="text-2xl font-bold">台灣教育處方籤</h3>
191192
<div class="flex justify-center space-x-6 mt-4">
192193
<a href="../about.html" class="text-gray-400 hover:text-white transition duration-300">關於我們</a>
193194
<a href="../sitemap.html" class="text-gray-400 hover:text-white transition duration-300">網站地圖</a>
194-
<a href="mailto:contact@example.com" class="text-gray-400 hover:text-white transition duration-300">聯絡我們</a>
195+
<a href="mailto:hctsai@linux.com" class="text-gray-400 hover:text-white transition duration-300">聯絡我們</a>
195196
</div>
196197
</div>
197198
<div class="mt-8 border-t border-gray-700 pt-6 text-center text-gray-500 text-sm">

advanced-resources/online-courses.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<a href="../career-exploration/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">未來生涯GPS</a>
5050
<a href="index.html" class="text-purple-600 font-semibold transition duration-300">進階資源探索區</a>
5151
<a href="../civic-tech-map/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">公民科技專案地圖</a>
52+
<a href="../about.html" class="text-gray-600 hover:text-blue-500 transition duration-300">關於我們</a>
5253
</div>
5354
</nav>
5455
</header>
@@ -126,7 +127,18 @@ <h3 class="mt-2 text-sm font-medium text-gray-900">找不到課程</h3>
126127
<!-- Footer -->
127128
<footer class="bg-gray-800 text-white mt-20">
128129
<div class="container mx-auto px-6 py-10">
129-
<p class="text-center">&copy; 2026 台灣教育處方籤</p>
130+
<div class="text-center">
131+
<h3 class="text-2xl font-bold">台灣教育處方籤</h3>
132+
<p class="text-gray-400 mt-1">一個由關心台灣教育的學生與開發者發起的專案。</p>
133+
<div class="flex justify-center space-x-6 mt-4">
134+
<a href="../about.html" class="text-gray-400 hover:text-white transition duration-300">關於我們</a>
135+
<a href="../sitemap.html" class="text-gray-400 hover:text-white transition duration-300">網站地圖</a>
136+
<a href="mailto:hctsai@linux.com" class="text-gray-400 hover:text-white transition duration-300">聯絡我們</a>
137+
</div>
138+
</div>
139+
<div class="mt-8 border-t border-gray-700 pt-6 text-center text-gray-500 text-sm">
140+
&copy; 2026 台灣教育處方籤. All Rights Reserved.
141+
</div>
130142
</div>
131143
</footer>
132144

advanced-resources/reading-list.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<a href="../career-exploration/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">未來生涯GPS</a>
5353
<a href="index.html" class="text-purple-600 font-semibold transition duration-300">進階資源探索區</a>
5454
<a href="../civic-tech-map/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">公民科技專案地圖</a>
55+
<a href="../about.html" class="text-gray-600 hover:text-blue-500 transition duration-300">關於我們</a>
5556
</div>
5657
</nav>
5758
</header>
@@ -84,7 +85,18 @@ <h1 class="text-4xl md:text-5xl font-bold text-gray-800 mb-4">
8485
<!-- Footer -->
8586
<footer class="bg-gray-800 text-white mt-20">
8687
<div class="container mx-auto px-6 py-10">
87-
<p class="text-center">&copy; 2026 台灣教育處方籤</p>
88+
<div class="text-center">
89+
<h3 class="text-2xl font-bold">台灣教育處方籤</h3>
90+
<p class="text-gray-400 mt-1">一個由關心台灣教育的學生與開發者發起的專案。</p>
91+
<div class="flex justify-center space-x-6 mt-4">
92+
<a href="../about.html" class="text-gray-400 hover:text-white transition duration-300">關於我們</a>
93+
<a href="../sitemap.html" class="text-gray-400 hover:text-white transition duration-300">網站地圖</a>
94+
<a href="mailto:hctsai@linux.com" class="text-gray-400 hover:text-white transition duration-300">聯絡我們</a>
95+
</div>
96+
</div>
97+
<div class="mt-8 border-t border-gray-700 pt-6 text-center text-gray-500 text-sm">
98+
&copy; 2026 台灣教育處方籤. All Rights Reserved.
99+
</div>
88100
</div>
89101
</footer>
90102

autonomous-learning/index.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
<a href="../career-exploration/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">未來生涯GPS</a>
6363
<a href="../advanced-resources/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">進階資源探索區</a>
6464
<a href="../civic-tech-map/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">公民科技專案地圖</a>
65+
<a href="../about.html" class="text-gray-600 hover:text-blue-500 transition duration-300">關於我們</a>
6566
</div>
6667
</nav>
6768
</header>
@@ -151,7 +152,18 @@ <h3 class="font-bold text-lg">【自主學習】系列影片</h3>
151152
<!-- Footer -->
152153
<footer class="bg-gray-800 text-white mt-20">
153154
<div class="container mx-auto px-6 py-10">
154-
<p class="text-center">&copy; 2026 台灣教育處方籤</p>
155+
<div class="text-center">
156+
<h3 class="text-2xl font-bold">台灣教育處方籤</h3>
157+
<p class="text-gray-400 mt-1">一個由關心台灣教育的學生與開發者發起的專案。</p>
158+
<div class="flex justify-center space-x-6 mt-4">
159+
<a href="../about.html" class="text-gray-400 hover:text-white transition duration-300">關於我們</a>
160+
<a href="../sitemap.html" class="text-gray-400 hover:text-white transition duration-300">網站地圖</a>
161+
<a href="mailto:hctsai@linux.com" class="text-gray-400 hover:text-white transition duration-300">聯絡我們</a>
162+
</div>
163+
</div>
164+
<div class="mt-8 border-t border-gray-700 pt-6 text-center text-gray-500 text-sm">
165+
&copy; 2026 台灣教育處方籤. All Rights Reserved.
166+
</div>
155167
</div>
156168
</footer>
157169

autonomous-learning/methodology.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
<a href="../career-exploration/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">未來生涯GPS</a>
5959
<a href="../advanced-resources/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">進階資源探索區</a>
6060
<a href="../civic-tech-map/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">公民科技專案地圖</a>
61+
<a href="../about.html" class="text-gray-600 hover:text-blue-500 transition duration-300">關於我們</a>
6162
</div>
6263
</nav>
6364
</header>
@@ -125,7 +126,18 @@ <h2 class="text-2xl font-bold text-center mb-8">或,從下方直接探索所
125126
<!-- Footer -->
126127
<footer class="bg-gray-800 text-white mt-20">
127128
<div class="container mx-auto px-6 py-10">
128-
<p class="text-center">&copy; 2026 台灣教育處方籤</p>
129+
<div class="text-center">
130+
<h3 class="text-2xl font-bold">台灣教育處方籤</h3>
131+
<p class="text-gray-400 mt-1">一個由關心台灣教育的學生與開發者發起的專案。</p>
132+
<div class="flex justify-center space-x-6 mt-4">
133+
<a href="../about.html" class="text-gray-400 hover:text-white transition duration-300">關於我們</a>
134+
<a href="../sitemap.html" class="text-gray-400 hover:text-white transition duration-300">網站地圖</a>
135+
<a href="mailto:hctsai@linux.com" class="text-gray-400 hover:text-white transition duration-300">聯絡我們</a>
136+
</div>
137+
</div>
138+
<div class="mt-8 border-t border-gray-700 pt-6 text-center text-gray-500 text-sm">
139+
&copy; 2026 台灣教育處方籤. All Rights Reserved.
140+
</div>
129141
</div>
130142
</footer>
131143

autonomous-learning/plan-templates.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
<a href="../career-exploration/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">未來生涯GPS</a>
7171
<a href="../advanced-resources/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">進階資源探索區</a>
7272
<a href="../civic-tech-map/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">公民科技專案地圖</a>
73+
<a href="../about.html" class="text-gray-600 hover:text-blue-500 transition duration-300">關於我們</a>
7374
</div>
7475
</nav>
7576
</header>
@@ -130,7 +131,18 @@ <h2 class="text-2xl font-bold text-center mb-8">精選計畫範本藝廊</h2>
130131
<!-- Footer -->
131132
<footer class="bg-gray-800 text-white mt-20">
132133
<div class="container mx-auto px-6 py-10">
133-
<p class="text-center">&copy; 2026 台灣教育處方籤</p>
134+
<div class="text-center">
135+
<h3 class="text-2xl font-bold">台灣教育處方籤</h3>
136+
<p class="text-gray-400 mt-1">一個由關心台灣教育的學生與開發者發起的專案。</p>
137+
<div class="flex justify-center space-x-6 mt-4">
138+
<a href="../about.html" class="text-gray-400 hover:text-white transition duration-300">關於我們</a>
139+
<a href="../sitemap.html" class="text-gray-400 hover:text-white transition duration-300">網站地圖</a>
140+
<a href="mailto:hctsai@linux.com" class="text-gray-400 hover:text-white transition duration-300">聯絡我們</a>
141+
</div>
142+
</div>
143+
<div class="mt-8 border-t border-gray-700 pt-6 text-center text-gray-500 text-sm">
144+
&copy; 2026 台灣教育處方籤. All Rights Reserved.
145+
</div>
134146
</div>
135147
</footer>
136148

autonomous-learning/resource-map.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
<a href="../career-exploration/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">未來生涯GPS</a>
6363
<a href="../advanced-resources/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">進階資源探索區</a>
6464
<a href="../civic-tech-map/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">公民科技專案地圖</a>
65+
<a href="../about.html" class="text-gray-600 hover:text-blue-500 transition duration-300">關於我們</a>
6566
</div>
6667
</nav>
6768
</header>
@@ -149,7 +150,18 @@ <h3 class="mt-2 text-sm font-medium text-gray-900">找不到資源</h3>
149150
<!-- Footer -->
150151
<footer class="bg-gray-800 text-white mt-20">
151152
<div class="container mx-auto px-6 py-10">
152-
<p class="text-center">&copy; 2026 台灣教育處方籤</p>
153+
<div class="text-center">
154+
<h3 class="text-2xl font-bold">台灣教育處方籤</h3>
155+
<p class="text-gray-400 mt-1">一個由關心台灣教育的學生與開發者發起的專案。</p>
156+
<div class="flex justify-center space-x-6 mt-4">
157+
<a href="../about.html" class="text-gray-400 hover:text-white transition duration-300">關於我們</a>
158+
<a href="../sitemap.html" class="text-gray-400 hover:text-white transition duration-300">網站地圖</a>
159+
<a href="mailto:hctsai@linux.com" class="text-gray-400 hover:text-white transition duration-300">聯絡我們</a>
160+
</div>
161+
</div>
162+
<div class="mt-8 border-t border-gray-700 pt-6 text-center text-gray-500 text-sm">
163+
&copy; 2026 台灣教育處方籤. All Rights Reserved.
164+
</div>
153165
</div>
154166
</footer>
155167

autonomous-learning/topic-ideas.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
<a href="../career-exploration/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">未來生涯GPS</a>
7373
<a href="../advanced-resources/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">進階資源探索區</a>
7474
<a href="../civic-tech-map/index.html" class="text-gray-600 hover:text-blue-500 transition duration-300">公民科技專案地圖</a>
75+
<a href="../about.html" class="text-gray-600 hover:text-blue-500 transition duration-300">關於我們</a>
7576
</div>
7677
</nav>
7778
</header>
@@ -182,7 +183,18 @@ <h2 class="text-2xl font-bold mb-2 text-center">3. 🌏 探索全球趨勢議題
182183
<!-- Footer -->
183184
<footer class="bg-gray-800 text-white mt-20">
184185
<div class="container mx-auto px-6 py-10">
185-
<p class="text-center">&copy; 2026 台灣教育處方籤</p>
186+
<div class="text-center">
187+
<h3 class="text-2xl font-bold">台灣教育處方籤</h3>
188+
<p class="text-gray-400 mt-1">一個由關心台灣教育的學生與開發者發起的專案。</p>
189+
<div class="flex justify-center space-x-6 mt-4">
190+
<a href="../about.html" class="text-gray-400 hover:text-white transition duration-300">關於我們</a>
191+
<a href="../sitemap.html" class="text-gray-400 hover:text-white transition duration-300">網站地圖</a>
192+
<a href="mailto:hctsai@linux.com" class="text-gray-400 hover:text-white transition duration-300">聯絡我們</a>
193+
</div>
194+
</div>
195+
<div class="mt-8 border-t border-gray-700 pt-6 text-center text-gray-500 text-sm">
196+
&copy; 2026 台灣教育處方籤. All Rights Reserved.
197+
</div>
186198
</div>
187199
</footer>
188200

0 commit comments

Comments
 (0)