From b7d86c65d8790286d06f23d5b886c4d106f47850 Mon Sep 17 00:00:00 2001 From: JakeBapple Date: Wed, 18 Dec 2024 14:03:52 -0600 Subject: [PATCH 1/2] Simplifying header and footer --- src/components/footer/footer.tsx | 173 ++++++++++++------------------- src/components/header/header.tsx | 77 +++++++++----- src/utils/helpers.test.ts | 14 +++ src/utils/helpers.ts | 6 ++ 4 files changed, 142 insertions(+), 128 deletions(-) create mode 100644 src/utils/helpers.test.ts create mode 100644 src/utils/helpers.ts diff --git a/src/components/footer/footer.tsx b/src/components/footer/footer.tsx index cfbea17c..144424d3 100644 --- a/src/components/footer/footer.tsx +++ b/src/components/footer/footer.tsx @@ -13,6 +13,49 @@ export const Footer = (): React.ReactElement => { window.scrollTo(0, 0); }; + const FOOTER_LINKS = [ + { + name: 'Home', + url: '/', + }, + { + name: 'Contact Us', + url: '/contact-us', + }, + { + name: 'About', + url: '/about', + }, + ]; + + const SOCIAL_LINKS = [ + { + name: 'Facebook', + icon: facebookIcon, + url: '/#', + }, + { + name: 'Twitter', + icon: twitterIcon, + url: '/#', + }, + { + name: 'YouTube', + icon: youtubeIcon, + url: '/#', + }, + { + name: 'Instagram', + icon: instagramIcon, + url: '/#', + }, + { + name: 'RSS Feed', + icon: rssIcon, + url: '/#', + }, + ]; + return (