Skip to content

Commit b407a22

Browse files
committed
內容
1 parent bba2f42 commit b407a22

File tree

2 files changed

+45
-31
lines changed

2 files changed

+45
-31
lines changed

src/css/custom.css

Lines changed: 44 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,34 @@
3232
/* 置中 footer 內容 */
3333
.footer {
3434
text-align: center;
35+
width: 100%;
36+
overflow-x: hidden;
3537
}
3638

3739
.footer__links {
3840
justify-content: center !important;
3941
display: flex !important;
40-
flex-wrap: nowrap !important;
41-
gap: 0 !important;
42+
flex-wrap: wrap !important; /* 改為 wrap,允許換行 */
43+
gap: 2rem 0 !important; /* 調整間距 */
4244
}
4345

4446
.footer__col {
4547
text-align: center;
4648
}
4749

48-
/* Pages 欄位(第一欄)靠近 More */
49-
.footer__col:nth-child(1) {
50-
margin-right: 3rem;
51-
}
50+
/* Pages 欄位(第一欄)靠近 More - 僅在桌面版生效 */
51+
@media (min-width: 769px) {
52+
.footer__col:nth-child(1) {
53+
margin-right: 3rem;
54+
}
5255

53-
/* More 欄位(第二欄) */
54-
.footer__col:nth-child(2) {
55-
margin-left: 0;
56+
.footer__col:nth-child(2) {
57+
margin-left: 0;
58+
}
59+
60+
.footer__links {
61+
flex-wrap: nowrap !important; /* 桌面版不換行 */
62+
}
5663
}
5764

5865
.footer__copyright {
@@ -87,32 +94,39 @@
8794
color: #d4c4b0 !important;
8895
}
8996

90-
/* 將 Pages 區塊的項目改為兩欄三列佈局(垂直排列)*/
91-
.footer__links .footer__col:first-child .footer__items {
92-
display: grid !important;
93-
grid-template-columns: repeat(2, auto) !important;
94-
grid-auto-flow: column !important;
95-
grid-template-rows: repeat(3, auto) !important;
96-
gap: 0.5rem 3rem !important;
97-
max-width: 400px !important;
98-
margin: 0 auto !important;
97+
/* 將 Pages 區塊的項目改為兩欄三列佈局(垂直排列)- 僅桌面版 */
98+
@media (min-width: 769px) {
99+
.footer__links .footer__col:first-child .footer__items {
100+
display: grid !important;
101+
grid-template-columns: repeat(2, auto) !important;
102+
grid-auto-flow: column !important;
103+
grid-template-rows: repeat(3, auto) !important;
104+
gap: 0.5rem 3rem !important;
105+
max-width: 400px !important;
106+
margin: 0 auto !important;
107+
}
99108
}
100109

101-
/* 使用 grid-auto-flow: column 會自動按照垂直順序填充 */
102-
/* 項目會自動排列成:
103-
第1項(專題文章)→ 左欄第1列
104-
第2項(日常思考)→ 左欄第2列
105-
第3項(我的書櫃)→ 左欄第3列
106-
第4項(慢行生活)→ 右欄第1列
107-
第5項(教育倡議)→ 右欄第2列
108-
第6項(關於我)→ 右欄第3列
109-
*/
110-
111110
/* 響應式設計:在小螢幕上恢復單欄佈局 */
112111
@media (max-width: 768px) {
112+
.footer {
113+
padding: 2rem 1rem;
114+
}
115+
116+
.footer__links {
117+
flex-direction: column;
118+
gap: 2rem !important;
119+
}
120+
121+
.footer__col {
122+
width: 100%;
123+
margin: 0 !important;
124+
}
125+
113126
.footer__col:first-child .footer__items {
114-
grid-template-columns: 1fr !important;
115-
grid-template-rows: auto !important;
127+
display: flex !important;
128+
flex-direction: column !important;
129+
gap: 0.5rem !important;
116130
}
117131

118132
.footer__col:first-child .footer__item {

src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ export default function About() {
354354
fontSize: '0.95rem',
355355
margin: 0
356356
}}>
357-
我們重新理解教育,揭露被長期忽略的結構性問題,並付諸行動。
357+
我們重新理解教育揭露被長期忽略的結構性問題並付諸行動。
358358
</p>
359359
</div>
360360
</a>

0 commit comments

Comments
 (0)