From acd6990bc76f9b746dfa179af852be5718da21f1 Mon Sep 17 00:00:00 2001 From: eshanized Date: Mon, 6 Jan 2025 19:37:33 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20style:=20add=20back=20to=20top=20in?= =?UTF-8?q?=20footer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layout/Footer.tsx | 65 +++++++++++++++++++++++++------- 1 file changed, 51 insertions(+), 14 deletions(-) diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index 25acf3fb..08d1517c 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -1,7 +1,18 @@ import { Link } from 'react-router-dom'; -import { Github, Twitter, Youtube, Book, MessageSquare, Newspaper, HelpCircle } from 'lucide-react'; +import { Github, Twitter, Youtube, Book, MessageSquare, Newspaper, HelpCircle, ChevronUp } from 'lucide-react'; -const footerNavigation = { +// Define the footer navigation structure with TypeScript +interface FooterLink { + name: string; + href: string; + icon?: React.ComponentType<{ className?: string }>; +} + +const footerNavigation: { + main: FooterLink[]; + resources: FooterLink[]; + community: FooterLink[]; +} = { main: [ { name: 'Gallery', href: '/gallery' }, { name: 'Developers', href: '/developers' }, @@ -27,9 +38,10 @@ export function Footer() { ); -} \ No newline at end of file +}