|
| 1 | +import Link from "next/link"; |
| 2 | +import Image from "next/image"; |
| 3 | +import { HugeiconsIcon } from "@hugeicons/react"; |
| 4 | +import { |
| 5 | + NewTwitterIcon, |
| 6 | + LinkedinIcon, |
| 7 | + GithubIcon, |
| 8 | + RssIcon, |
| 9 | +} from "@hugeicons/core-free-icons"; |
| 10 | + |
| 11 | +const socialLinks = [ |
| 12 | + { |
| 13 | + name: "X (Twitter)", |
| 14 | + href: "https://x.com/sankalpa_02", |
| 15 | + icon: NewTwitterIcon, |
| 16 | + }, |
| 17 | + { |
| 18 | + name: "LinkedIn", |
| 19 | + href: "https://linkedin.com/in/sankalpa02", |
| 20 | + icon: LinkedinIcon, |
| 21 | + }, |
| 22 | + { |
| 23 | + name: "GitHub", |
| 24 | + href: "https://github.com/sankalpaacharya", |
| 25 | + icon: GithubIcon, |
| 26 | + }, |
| 27 | + { |
| 28 | + name: "RSS", |
| 29 | + href: "/rss.xml", |
| 30 | + icon: RssIcon, |
| 31 | + }, |
| 32 | +]; |
| 33 | + |
| 34 | +const navLinks = [ |
| 35 | + { label: "Home", href: "/" }, |
| 36 | + { label: "Hire Me", href: "/hire-me" }, |
| 37 | + { label: "RSS", href: "/rss.xml" }, |
| 38 | +]; |
| 39 | + |
| 40 | +export function Footer() { |
| 41 | + const year = new Date().getFullYear(); |
| 42 | + |
| 43 | + return ( |
| 44 | + <footer className="relative mt-24 border-t border-border"> |
| 45 | + <div className="max-w-2xl mx-auto px-6 py-14"> |
| 46 | + {/* Top section */} |
| 47 | + <div className="flex flex-col sm:flex-row sm:items-start sm:justify-between gap-10"> |
| 48 | + {/* Brand */} |
| 49 | + <div className="flex flex-col gap-4"> |
| 50 | + <Link href="/" className="flex items-center gap-3 group w-fit"> |
| 51 | + <div className="p-0.5 rounded-xl bg-linear-to-br from-white/20 to-white/5 backdrop-blur-sm"> |
| 52 | + <div className="w-9 h-9 rounded-lg overflow-hidden bg-background/50 border border-white/10"> |
| 53 | + <Image |
| 54 | + src="https://github.com/sankalpaacharya.png" |
| 55 | + alt="Sanku" |
| 56 | + width={36} |
| 57 | + height={36} |
| 58 | + className="object-cover" |
| 59 | + /> |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + <span className="font-semibold text-foreground group-hover:text-primary transition-colors duration-200"> |
| 63 | + Inside React |
| 64 | + </span> |
| 65 | + </Link> |
| 66 | + |
| 67 | + <p className="text-sm text-muted-foreground leading-relaxed max-w-65"> |
| 68 | + Deep dives into React internals,{" "} |
| 69 | + <span className="text-primary/80">Fiber</span>, reconciliation, |
| 70 | + and the web platform. |
| 71 | + </p> |
| 72 | + </div> |
| 73 | + |
| 74 | + {/* Navigation + Social */} |
| 75 | + <div className="flex flex-col gap-6"> |
| 76 | + {/* Nav */} |
| 77 | + <nav className="flex flex-col gap-2.5"> |
| 78 | + {navLinks.map((link) => ( |
| 79 | + <Link |
| 80 | + key={link.href} |
| 81 | + href={link.href} |
| 82 | + className="text-sm text-muted-foreground hover:text-foreground transition-colors duration-200 w-fit relative group" |
| 83 | + > |
| 84 | + {link.label} |
| 85 | + <span className="absolute -bottom-px left-0 w-0 h-px bg-primary group-hover:w-full transition-all duration-300" /> |
| 86 | + </Link> |
| 87 | + ))} |
| 88 | + </nav> |
| 89 | + |
| 90 | + {/* Socials */} |
| 91 | + <div className="flex items-center gap-1"> |
| 92 | + {socialLinks.map((social) => ( |
| 93 | + <a |
| 94 | + key={social.name} |
| 95 | + href={social.href} |
| 96 | + target="_blank" |
| 97 | + rel="noopener noreferrer" |
| 98 | + aria-label={social.name} |
| 99 | + className="p-2 rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-all duration-200" |
| 100 | + > |
| 101 | + <HugeiconsIcon icon={social.icon} size={15} /> |
| 102 | + </a> |
| 103 | + ))} |
| 104 | + </div> |
| 105 | + </div> |
| 106 | + </div> |
| 107 | + |
| 108 | + {/* Divider */} |
| 109 | + <div className="mt-12 mb-6 h-px bg-border" /> |
| 110 | + |
| 111 | + {/* Bottom bar */} |
| 112 | + <div className="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 text-xs text-muted-foreground/50"> |
| 113 | + <p> |
| 114 | + © {year}{" "} |
| 115 | + <span className="text-muted-foreground/70">Sankalpa Acharya</span>. |
| 116 | + All rights reserved. |
| 117 | + </p> |
| 118 | + <p> |
| 119 | + Built with{" "} |
| 120 | + <span className="text-primary/70">Next.js</span> &{" "} |
| 121 | + <span className="text-primary/70">Tailwind CSS</span> |
| 122 | + </p> |
| 123 | + </div> |
| 124 | + </div> |
| 125 | + </footer> |
| 126 | + ); |
| 127 | +} |
0 commit comments