@@ -3,23 +3,25 @@ import { Mail } from "lucide-react";
33import { SiGithub , SiInstagram } from "@icons-pack/react-simple-icons" ;
44import { FaLinkedin } from "react-icons/fa" ;
55import Link from "next/link" ;
6+ import { cn } from "@/lib/utils" ;
67
78const sitemapLinks = [ ...siteConfig . mainNav , ...siteConfig . utilityNav ] ;
9+ const baseTextLinkClass = "text-sm hover:underline text-muted-foreground" ;
810
911export function Footer ( ) {
1012 return (
1113 < footer className = "w-full py-12 bg-muted/60" >
1214 < div className = "container mx-auto px-4 lg:px-6" >
1315 < div className = "max-w-4xl mx-auto" >
14- < div className = "grid md:grid-cols-2 gap-8 text-center md:text- left md:justify-items-center" >
16+ < div className = "grid md:grid-cols-2 gap-8 text-left md:justify-items-center" >
1517 < div className = "space-y-4 flex flex-col items-center md:items-start" >
1618 < h3 className = "font-semibold" > Sitemap</ h3 >
1719 < ul className = "grid grid-cols-2 gap-x-8 gap-y-2" >
1820 { sitemapLinks . map ( ( link ) => (
1921 < li key = { link . href } >
2022 < Link
2123 href = { link . href }
22- className = "text-sm hover:underline text-muted-foreground"
24+ className = { baseTextLinkClass }
2325 >
2426 { link . label }
2527 </ Link >
@@ -29,10 +31,10 @@ export function Footer() {
2931 </ div >
3032 < div className = "space-y-4 flex flex-col items-center" >
3133 < h3 className = "font-semibold" > Connect with us!</ h3 >
32- < div className = "flex flex-col items-center md:items- start gap-2 " >
34+ < div className = "flex flex-col items-start gap-3 " >
3335 < a
3436 href = { `mailto:${ siteConfig . email } ` }
35- className = "inline-flex items-center gap-2 text-sm hover:underline text-muted-foreground"
37+ className = { cn ( baseTextLinkClass , "inline-flex items-center gap-2" ) }
3638 >
3739 < Mail size = { 18 } />
3840 { siteConfig . email }
@@ -41,7 +43,7 @@ export function Footer() {
4143 href = { siteConfig . instagram }
4244 target = "_blank"
4345 rel = "noopener"
44- className = "inline-flex items-center gap-2 text-sm hover:underline text-muted-foreground"
46+ className = { cn ( baseTextLinkClass , "inline-flex items-center gap-2" ) }
4547 >
4648 < SiInstagram size = { 18 } />
4749 Instagram
@@ -50,7 +52,7 @@ export function Footer() {
5052 href = { siteConfig . github }
5153 target = "_blank"
5254 rel = "noopener"
53- className = "inline-flex items-center gap-2 text-sm hover:underline text-muted-foreground"
55+ className = { cn ( baseTextLinkClass , "inline-flex items-center gap-2" ) }
5456 >
5557 < SiGithub size = { 18 } />
5658 GitHub
@@ -59,7 +61,7 @@ export function Footer() {
5961 href = { siteConfig . linkedin }
6062 target = "_blank"
6163 rel = "noopener"
62- className = "inline-flex items-center gap-2 text-sm hover:underline text-muted-foreground"
64+ className = { cn ( baseTextLinkClass , "inline-flex items-center gap-2" ) }
6365 >
6466 < FaLinkedin size = { 18 } />
6567 LinkedIn
@@ -70,6 +72,15 @@ export function Footer() {
7072 < div className = "mt-8 pt-8 border-t border-border/40 text-center text-sm text-muted-foreground" >
7173 © { new Date ( ) . getFullYear ( ) } ALPHA University Chapter at the University of Hong Kong. All rights
7274 reserved.
75+ < br />
76+ < a
77+ href = { siteConfig . parentOrg }
78+ target = "_blank"
79+ rel = "noopener"
80+ className = { cn ( baseTextLinkClass , "inline-flex items-center gap-2 underline" ) }
81+ >
82+ { siteConfig . parentOrg . replace ( "https://" , "" ) }
83+ </ a >
7384 </ div >
7485 </ div >
7586 </ div >
0 commit comments