@@ -6,11 +6,11 @@ import { CustomLink } from '@/components/links/CustomLink';
66
77import FooterLink from './FooterLink' ;
88
9- import { SideProps } from '@/types/home' ;
9+ import { FooterProps } from '@/types/home' ;
1010
11- const Footer = ( { t } : SideProps ) => {
11+ const Footer = ( { t, isLite } : FooterProps ) => {
1212 return (
13- < footer className = 'flex flex-wrap items-center px-1 py-2.5 text-xs text-gray-400 lg:px-3 ' >
13+ < footer className = 'flex flex-wrap items-center px-1 py-2.5 text-xs text-gray-400 lg:px-2 ' >
1414 < div className = 'inline-flex space-x-1 lg:space-x-1.5' >
1515 < FeedbackModal feedbackType = { 2 } >
1616 < div className = 'cursor-pointer hover:text-blue-500' >
@@ -47,58 +47,64 @@ const Footer = ({ t }: SideProps) => {
4747 </ CustomLink >
4848 </ p >
4949
50- < FooterLink href = 'https://www.ucloud.cn/site/active/kuaijiesale.html?utm_term=logo& utm_campaign = hellogithub & utm_source = otherdsp & utm_medium = display & ytag = logo_hellogithub_otherdsp_display #wulanchabu' >
51- < div className = 'mt-2' >
52- < span > { t ( 'footer.server_sponsor' ) } </ span >
53- < span className = 'mx-0.5 align-[1px]' >
54- < img
55- className = 'inline-block'
56- src = 'https://img.hellogithub.com/ad/ucloud_footer.png'
57- width = '86'
58- height = '16'
59- alt = 'ucloud_footer'
60- />
61- </ span >
62- < span > { t ( 'footer.server_sponsor2' ) } </ span >
63- </ div >
64- </ FooterLink >
65-
66- < FooterLink href = 'https://www.upyun.com/league?utm_source=HelloGitHub& utm_medium = adting ' >
67- < div className = 'mt-2' >
68- < span > { t ( 'footer.cdn_sponsor' ) } </ span >
69- < span className = 'mx-0.5 align-[1px]' >
70- < img
71- className = 'inline-block'
72- src = 'https://img.hellogithub.com/ad/upyun_footer.png'
73- width = '42'
74- height = '16'
75- alt = 'upyun_footer'
76- />
77- </ span >
78- < span > { t ( 'footer.cdn_sponsor2' ) } </ span >
79- </ div >
80- </ FooterLink >
81-
82- < FooterLink className = 'mt-2 block' href = 'https://beian.miit.gov.cn/' >
83- < span > 京ICP备17046648号-1</ span >
50+ < FooterLink
51+ className = 'mt-2'
52+ href = 'https://www.ucloud.cn/site/active/kuaijiesale.html?utm_term=logo& utm_campaign = hellogithub & utm_source = otherdsp & utm_medium = display & ytag = logo_hellogithub_otherdsp_display #wulanchabu'
53+ >
54+ < span > { t ( 'footer.server_sponsor' ) } </ span >
55+ < span className = 'mx-0.5 align-[1px]' >
56+ < img
57+ className = 'inline-block'
58+ src = 'https://img.hellogithub.com/ad/ucloud_footer.png'
59+ width = '86'
60+ height = '16'
61+ alt = 'ucloud_footer'
62+ />
63+ </ span >
64+ < span > { t ( 'footer.server_sponsor2' ) } </ span >
8465 </ FooterLink >
8566
8667 < FooterLink
87- className = 'mt-2 block '
88- href = 'http ://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11011402013237 '
68+ className = 'mt-2'
69+ href = 'https ://www.upyun.com/?from=hellogithub '
8970 >
90- < span >
71+ < span > { t ( 'footer.cdn_sponsor' ) } </ span >
72+ < span className = 'mx-0.5 align-[1px]' >
9173 < img
9274 className = 'inline-block'
93- src = 'https://img.hellogithub.com/ad/filing .png'
94- width = '12 '
95- height = '12 '
96- alt = 'footer_filing '
75+ src = 'https://img.hellogithub.com/ad/upyun_footer .png'
76+ width = '42 '
77+ height = '16 '
78+ alt = 'upyun_footer '
9779 />
98- 京公网安备11011402013237号
9980 </ span >
81+ < span > { t ( 'footer.cdn_sponsor2' ) } </ span >
10082 </ FooterLink >
10183
84+ { ! isLite && (
85+ < FooterLink className = 'mt-2 block' href = 'https://beian.miit.gov.cn/' >
86+ < span > 京ICP备17046648号-1</ span >
87+ </ FooterLink >
88+ ) }
89+
90+ { ! isLite && (
91+ < FooterLink
92+ className = 'mt-2 block'
93+ href = 'http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11011402013237'
94+ >
95+ < span >
96+ < img
97+ className = 'inline-block'
98+ src = 'https://img.hellogithub.com/ad/filing.png'
99+ width = '12'
100+ height = '12'
101+ alt = 'footer_filing'
102+ />
103+ 京公网安备11011402013237号
104+ </ span >
105+ </ FooterLink >
106+ ) }
107+
102108 < p className = 'mt-2 flex items-center space-x-1 lg:space-x-1.5' >
103109 < span className = 'cursor-default' >
104110 ©{ new Date ( ) . getFullYear ( ) } HelloGitHub
0 commit comments