@@ -13,15 +13,21 @@ export function Footer() {
1313 support : [ 'docs' , 'faq' , 'contact' ] ,
1414 } ;
1515
16+ const categories : Record < string , string > = {
17+ product : t ( 'categories.product' ) ,
18+ community : t ( 'categories.community' ) ,
19+ support : t ( 'categories.support' )
20+ } ;
21+
1622 return (
1723 < footer className = "py-20 px-4 sm:px-6 lg:px-8 linear-gradient-bg relative overflow-hidden" >
18- { /* 背景装饰 */ }
24+ { /* Background decoration */ }
1925 < div className = "absolute inset-0 overflow-hidden" >
2026 < div className = "absolute top-0 left-1/4 w-96 h-96 bg-gradient-to-r from-purple-500/10 via-blue-500/10 to-cyan-500/10 rounded-full blur-3xl" />
2127 < div className = "absolute bottom-0 right-1/4 w-80 h-80 bg-gradient-to-l from-cyan-500/10 via-blue-500/10 to-purple-500/10 rounded-full blur-3xl" />
2228 </ div >
2329
24- { /* 顶部分割线 */ }
30+ { /* Top divider */ }
2531 < div className = "absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-purple-500/20 to-transparent" />
2632
2733 < div className = "container mx-auto max-w-7xl relative z-10" >
@@ -36,14 +42,14 @@ export function Footer() {
3642 </ div >
3743 </ div >
3844 < div className = "flex flex-col" >
39- < span className = "text-2xl font-bold bg-gradient-to-r from-purple-400 via-blue-400 to-cyan-400 bg-clip-text text-transparent" > Typix</ span >
40- < span className = "text-xs text-muted-foreground font-medium tracking-wider uppercase" >
41- AI Image Generator
42- </ span >
45+ < span className = "text-2xl font-bold bg-gradient-to-r from-purple-400 via-blue-400 to-cyan-400 bg-clip-text text-transparent" > Typix</ span >
46+ < span className = "text-xs text-muted-foreground font-medium tracking-wider uppercase" >
47+ { t ( 'subtitle' ) }
48+ </ span >
4349 </ div >
4450 </ div >
4551 < p className = "text-muted-foreground mb-8 leading-relaxed" >
46- Transform your words into stunning visuals with our advanced AI image generation technology.
52+ { t ( 'description' ) }
4753 </ p >
4854 < div className = "flex space-x-4" >
4955 { [
@@ -67,7 +73,7 @@ export function Footer() {
6773 { Object . entries ( footerLinks ) . map ( ( [ category , links ] ) => (
6874 < div key = { category } >
6975 < h3 className = "font-semibold text-foreground mb-6 bg-gradient-to-r from-purple-400 via-blue-400 to-cyan-400 bg-clip-text text-transparent" >
70- { category . charAt ( 0 ) . toUpperCase ( ) + category . slice ( 1 ) }
76+ { categories [ category ] }
7177 </ h3 >
7278 < ul className = "space-y-4" >
7379 { links . map ( ( link ) => (
@@ -76,7 +82,7 @@ export function Footer() {
7682 href = { category === 'product' ? `#${ link } ` : '#' }
7783 variant = "footer"
7884 >
79- { link . charAt ( 0 ) . toUpperCase ( ) + link . slice ( 1 ) }
85+ { t ( `links. ${ category } . ${ link } ` ) }
8086 </ TextLinkButton >
8187 </ li >
8288 ) ) }
@@ -88,29 +94,32 @@ export function Footer() {
8894
8995 { /* Bottom Section */ }
9096 < div className = "mt-16 pt-8 relative" >
91- { /* 分割线 */ }
97+ { /* Divider */ }
9298 < div className = "absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-border to-transparent" />
9399
94100 < div className = "flex flex-col sm:flex-row justify-between items-center space-y-4 sm:space-y-0" >
95101 < p className = "text-muted-foreground text-sm" >
96- © 2024 Typix AI. All rights reserved.
102+ { t ( 'copyright' ) }
97103 </ p >
98104 < div className = "flex items-center space-x-8 text-sm" >
99- { [ 'Privacy Policy' , 'Terms of Service' ] . map ( ( item ) => (
105+ { [
106+ { id : 'privacy' , label : t ( 'legal.privacy' ) } ,
107+ { id : 'terms' , label : t ( 'legal.terms' ) }
108+ ] . map ( ( item ) => (
100109 < TextLinkButton
101- key = { item }
110+ key = { item . id }
102111 href = "#"
103112 variant = "footer"
104113 >
105- { item }
114+ { item . label }
106115 </ TextLinkButton >
107116 ) ) }
108117 </ div >
109118 </ div >
110119 </ div >
111120 </ div >
112121
113- { /* 底部渐变 */ }
122+ { /* Bottom gradient */ }
114123 < div className = "absolute bottom-0 left-0 right-0 h-32 bg-gradient-to-t from-background/80 to-transparent pointer-events-none" />
115124 </ footer >
116125 ) ;
0 commit comments