1+ import { SmartLink } from "@/components/primitives/smart-link" ;
12import { siteConfig } from "@/lib/config" ;
23import { cn } from "@/lib/utils" ;
34import { SiGithub , SiInstagram } from "@icons-pack/react-simple-icons" ;
45import { Mail } from "lucide-react" ;
5- import Link from "next/link" ;
66import { FaLinkedin } from "react-icons/fa" ;
77
88const sitemapLinks = [ ...siteConfig . mainNav , ...siteConfig . utilityNav ] ;
@@ -19,68 +19,60 @@ export function Footer() {
1919 < ul className = "grid grid-cols-2 gap-x-8 gap-y-2" >
2020 { sitemapLinks . map ( ( link ) => (
2121 < li key = { link . href } >
22- < Link
22+ < SmartLink
2323 href = { link . href }
2424 className = { baseTextLinkClass }
2525 >
2626 { link . label }
27- </ Link >
27+ </ SmartLink >
2828 </ li >
2929 ) ) }
3030 </ ul >
3131 </ div >
3232 < div className = "flex flex-col items-center space-y-4" >
3333 < h3 className = "font-semibold" > Connect with us!</ h3 >
3434 < div className = "flex flex-col items-start gap-3" >
35- < a
35+ < SmartLink
3636 href = { `mailto:${ siteConfig . email } ` }
3737 className = { cn ( baseTextLinkClass , "inline-flex items-center gap-2" ) }
3838 >
3939 < Mail size = { 18 } />
4040 { siteConfig . email }
41- </ a >
42- < a
41+ </ SmartLink >
42+ < SmartLink
4343 href = { siteConfig . instagram }
44- target = "_blank"
45- rel = "noopener"
4644 className = { cn ( baseTextLinkClass , "inline-flex items-center gap-2" ) }
4745 >
4846 < SiInstagram size = { 18 } />
4947 Instagram
50- </ a >
51- < a
48+ </ SmartLink >
49+ < SmartLink
5250 href = { siteConfig . github }
53- target = "_blank"
54- rel = "noopener"
5551 className = { cn ( baseTextLinkClass , "inline-flex items-center gap-2" ) }
5652 >
5753 < SiGithub size = { 18 } />
5854 GitHub
59- </ a >
60- < a
55+ </ SmartLink >
56+ < SmartLink
6157 href = { siteConfig . linkedin }
62- target = "_blank"
63- rel = "noopener"
6458 className = { cn ( baseTextLinkClass , "inline-flex items-center gap-2" ) }
6559 >
6660 < FaLinkedin size = { 18 } />
6761 LinkedIn
68- </ a >
62+ </ SmartLink >
6963 </ div >
7064 </ div >
7165 </ div >
7266 < div className = "border-border/40 text-muted-foreground mt-8 border-t pt-8 text-center text-sm" >
7367 © { new Date ( ) . getFullYear ( ) } ALPHA University Chapter at the University of Hong Kong. All rights
7468 reserved.
7569 < br />
76- < a
70+ < SmartLink
7771 href = { siteConfig . parentOrg }
78- target = "_blank"
79- rel = "noopener"
8072 className = { cn ( baseTextLinkClass , "inline-flex items-center gap-2 underline" ) }
8173 >
8274 { siteConfig . parentOrg . replace ( "https://" , "" ) }
83- </ a >
75+ </ SmartLink >
8476 </ div >
8577 </ div >
8678 </ div >
0 commit comments