4242 gap : 10px ;
4343 }
4444
45+ /* 主標題及其圖片的容器 */
46+ .main-title-container {
47+ display : flex;
48+ align-items : center;
49+ justify-content : center; /* 使標題和圖片整體居中 */
50+ margin-bottom : 5px ;
51+ }
52+
4553 h1 {
4654 color : var (--primary-color );
47- margin-bottom : 5 px ;
55+ margin : 0 ; /* 移除 h1 自身的 margin */
4856 font-weight : 700 ;
4957 font-size : 28px ;
5058 }
5159
60+ /* 新圖片樣式 */
61+ .logo {
62+ height : 35px ; /* 調整圖片高度,使其與文字大致對齊 */
63+ width : auto; /* 保持圖片比例 */
64+ margin-left : 10px ; /* 在標題和圖片之間添加間距 */
65+ }
66+
5267 h2 {
5368 font-size : 20px ;
5469 color : var (--primary-color );
6883 .download-section , .mode-switcher {
6984 display : flex;
7085 justify-content : center;
71- align-items : center;
86+ align-items : center; /* 確保 flex 項目垂直置中 */
7287 gap : 10px ;
7388 flex-wrap : wrap;
7489 }
145160 background-color : white;
146161 }
147162
163+ /* Facebook 標誌圖片樣式 */
164+ .facebook-logo {
165+ width : 20px ; /* 調整圖片大小 */
166+ height : 20px ;
167+ vertical-align : middle; /* 確保圖片與文字垂直對齊 */
168+ margin-right : 0px ; /* 在圖片和文字之間添加一點間距 */
169+ flex-shrink : 0 ; /* 防止圖片被壓縮 */
170+ }
171+
172+ /* Facebook 連結樣式 */
173+ .facebook-link {
174+ font-size : 16px ; /* 與下載連結區的字體大小一致 */
175+ line-height : 1.5 ; /* 確保行高一致 */
176+ color : var (--primary-color );
177+ text-decoration : none;
178+ font-weight : 700 ;
179+ transition : color 0.2s ease-in-out;
180+ display : flex; /* 啟用 flex 佈局,以便與圖片對齊 */
181+ align-items : center; /* 確保圖片和文字垂直置中 */
182+ }
183+
184+ .facebook-link : hover {
185+ color : var (--primary-light );
186+ text-decoration : underline;
187+ }
148188
149189 /* 輸入與顯示區塊 */
150190 .text-output-area ,
275315 flex-direction : column;
276316 align-items : flex-start;
277317 width : 70px ; /* 固定寬度,足夠容納四碼 */
278- min-height : 140 px ; /* 確保至少有足夠的高度 */
318+ min-height : 120 px ; /* 確保至少有足夠的高度 */
279319 flex-shrink : 0 ;
280320 padding : 5px ;
281321 border : 1px solid var (--border-color );
378418 transform : translateY (0 );
379419 box-shadow : 1px 1px 3px rgba (0 , 0 , 0 , 0.2 );
380420 }
421+
422+ /* 版權宣告樣式 */
423+ .copyright {
424+ margin-top : 20px ;
425+ font-size : 14px ;
426+ color : # 757575 ;
427+ text-align : center;
428+ }
429+ .copyright a {
430+ color : # 757575 ;
431+ text-decoration : none;
432+ font-weight : bold;
433+ transition : color 0.2s ease-in-out;
434+ }
435+ .copyright a : hover {
436+ color : var (--primary-light );
437+ text-decoration : underline;
438+ }
381439 </ style >
382440</ head >
383441< body >
384442
385443 < div class ="container ">
386- < h1 > 三碼中文輸入法 - 查碼、練打網站</ h1 >
444+ < div class ="main-title-container ">
445+ < h1 > 三碼中文輸入法 - 查碼、練打網站</ h1 >
446+ < a href ="https://www.facebook.com/profile.php?id=61554969271873 " target ="_blank "> < img src ="logo.png " alt ="logo " class ="logo "> </ a >
447+ </ div >
387448
388449 < div class ="header-section ">
389450 < div class ="download-section ">
@@ -406,6 +467,8 @@ <h2>輸入法模式:</h2>
406467 < input type ="radio " name ="input_mode " value ="secondary ">
407468 三碼次常 (次常用字)
408469 </ label >
470+ < img src ="facebook_logo.png " alt ="Facebook Logo " class ="facebook-logo ">
471+ < a href ="https://www.facebook.com/groups/756940847492021 " target ="_blank " class ="facebook-link "> 臉書社團:三碼中文輸入法【無書自通】</ a >
409472 </ div >
410473 </ div >
411474
@@ -484,6 +547,10 @@ <h2>輸入法模式:</h2>
484547 </ div >
485548 </ div >
486549
550+ < div class ="copyright ">
551+ Copying © 2025 < a href ="https://www.facebook.com/groups/756940847492021 " target ="_blank "> 三碼中文輸入法</ a > by < a href ="https://www.facebook.com/profile.php?id=61554969271873 " target ="_blank "> 無書自通</ a > :「一字最多三碼,取決英文字形,符號輸入容易,速度潛力無限。」
552+ </ div >
553+
487554 < script >
488555 // --- 資料處理與解析 ---
489556 let primaryCodemap = null ;
@@ -1121,4 +1188,6 @@ <h2>輸入法模式:</h2>
11211188 switchInputMethod ( 'primary' ) ;
11221189 updateKeyboardDisplay ( ) ;
11231190 </ script >
1191+
1192+
11241193</ body > </ html >
0 commit comments