@@ -3,23 +3,11 @@ import { Col, Nav, Row } from 'react-bootstrap';
33
44import { t } from '../../models/Translation' ;
55
6- //
6+ // 使用 Bootstrap 工具类替换内联样式的 ContentContainer
77const ContentContainer : React . FC < { children : React . ReactNode } > = ( {
88 children,
99} ) => {
10- return (
11- < div
12- style = { {
13- maxWidth : '1200px' ,
14- margin : '0 auto' ,
15- padding : '0 20px' ,
16- width : '100%' ,
17- boxSizing : 'border-box' ,
18- } }
19- >
20- { children }
21- </ div >
22- ) ;
10+ return < div className = "container-xl px-3" > { children } </ div > ;
2311} ;
2412
2513const FooterComponent = ( ) => {
@@ -31,75 +19,83 @@ const FooterComponent = () => {
3119 } , [ ] ) ;
3220
3321 return (
34- < footer className = "bg-dark text-light py-4 mt-5 " >
22+ < footer className = "bg-dark text-light py-4" >
3523 < ContentContainer >
3624 < Row >
3725 < Col md = { 4 } className = "mb-3 mb-md-0" >
38- < h5 > { t ( 'open_library' ) } </ h5 >
39- < p > { t ( 'footer_description' ) } </ p >
40- < div className = "mt-2" >
41- < a href = "#github" className = "text-light me-3" >
26+ < h5 className = "fw-bold mb-3" > { t ( 'open_library' ) } </ h5 >
27+ < p className = "text-light opacity-75 lh-base" >
28+ { t ( 'footer_description' ) }
29+ </ p >
30+ < div className = "mt-3" >
31+ < a
32+ href = "#github"
33+ className = "text-light text-decoration-none me-3 hover-opacity"
34+ >
35+ < i className = "bi bi-github me-1" > </ i >
4236 GitHub
4337 </ a >
44- < a href = "#twitter" className = "text-light me-3" >
38+ < a
39+ href = "#twitter"
40+ className = "text-light text-decoration-none me-3 hover-opacity"
41+ >
42+ < i className = "bi bi-twitter me-1" > </ i >
4543 Twitter
4644 </ a >
47- < a href = "#feishu" className = "text-light me-3" >
45+ < a
46+ href = "#feishu"
47+ className = "text-light text-decoration-none me-3 hover-opacity"
48+ >
49+ < i className = "bi bi-chat-dots me-1" > </ i >
4850 Feishu
4951 </ a >
50- < a href = "#instagram" className = "text-light" >
51- Instagram
52- </ a >
5352 </ div >
5453 </ Col >
5554 < Col md = { 3 } className = "mb-3 mb-md-0" >
56- < h5 > { t ( 'quick_links_footer' ) } </ h5 >
55+ < h5 className = "fw-bold mb-3" > { t ( 'quick_links_footer' ) } </ h5 >
5756 < Nav className = "flex-column" >
58- < Nav . Link href = "/open-library/books" className = "text-light px-0" >
57+ < Nav . Link
58+ href = "/open-library/books"
59+ className = "text-light px-0 py-1 text-decoration-none"
60+ >
61+ < i className = "bi bi-book me-2" > </ i >
5962 { t ( 'catalog_footer' ) }
6063 </ Nav . Link >
61- < Nav . Link href = "/open-library/donate" className = "text-light px-0" >
62- { t ( 'donate_footer' ) }
63- </ Nav . Link >
6464 < Nav . Link
6565 href = "/open-library/how-to-borrow"
66- className = "text-light px-0"
66+ className = "text-light px-0 py-1 text-decoration-none "
6767 >
68+ < i className = "bi bi-info-circle me-2" > </ i >
6869 { t ( 'how_to_borrow' ) }
6970 </ Nav . Link >
70- < Nav . Link href = "/open-library/about" className = "text-light px-0" >
71- { t ( 'about_us_footer' ) }
72- </ Nav . Link >
73- < Nav . Link href = "/open-library/faq" className = "text-light px-0" >
74- { t ( 'faq' ) }
75- </ Nav . Link >
7671 </ Nav >
7772 </ Col >
7873 < Col md = { 5 } >
79- < h5 > { t ( 'contact' ) } </ h5 >
80- < p className = "mb-1" > freeCodeCamp Chengdu Community</ p >
81- < p className = "mb-1" > Chengdu, Sichuan, China</ p >
82- < p className = "mb-1" > Email: contact@openlibrary.org</ p >
83- < p > WeChat: FCCChengdu</ p >
74+ < h5 className = "fw-bold mb-3" > { t ( 'contact' ) } </ h5 >
75+ < div className = "text-light opacity-75" >
76+ < p className = "mb-2" >
77+ < i className = "bi bi-geo-alt me-2" > </ i >
78+ freeCodeCamp Chengdu Community
79+ </ p >
80+ < p className = "mb-2" >
81+ < i className = "bi bi-pin-map me-2" > </ i >
82+ Chengdu, Sichuan, China
83+ </ p >
84+ < p className = "mb-2" >
85+ < i className = "bi bi-envelope me-2" > </ i >
86+ Email: contact@openlibrary.org
87+ </ p >
88+ < p className = "mb-0" >
89+ < i className = "bi bi-wechat me-2" > </ i >
90+ WeChat: FCCChengdu
91+ </ p >
92+ </ div >
8493 </ Col >
8594 </ Row >
8695
87- < hr
88- className = "mt-4 mb-3"
89- style = { { borderColor : 'rgba(255,255,255,0.2)' } }
90- />
96+ < hr className = "mt-4 mb-3 border-secondary opacity-25" />
9197
92- { /* Use a more direct approach with inline styles to ensure visibility */ }
93- < div
94- className = "py-2"
95- style = { {
96- textAlign : 'center' ,
97- color : '#6c757d' ,
98- fontSize : '0.875rem' ,
99- width : '100%' ,
100- display : 'block' ,
101- } }
102- >
98+ < div className = "text-center text-light opacity-75 py-2" >
10399 { isMounted ? (
104100 < >
105101 © { new Date ( ) . getFullYear ( ) } { t ( 'open_library' ) } .{ ' ' }
0 commit comments