From 4592c662f7c27bef20e9d24773ac352f270697e6 Mon Sep 17 00:00:00 2001 From: Preetham Date: Wed, 20 Sep 2023 14:07:07 +0530 Subject: [PATCH] appbar, footer changes --- src/components/Appbar.js | 6 +----- src/components/common/footer.js | 25 +++++++++++++++++-------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/src/components/Appbar.js b/src/components/Appbar.js index cb69f55..7927e23 100644 --- a/src/components/Appbar.js +++ b/src/components/Appbar.js @@ -25,12 +25,9 @@ import { Link } from "react-router-dom"; let navLinks = [ { title: "Home", path: "/" }, - { title: "About", path: "/about" }, + { title: "Ambassadors", path: "/ambassador" }, { title: "Events", path: "/events" }, { title: "Brochure", path: "/brochure" }, - { title: "Gallery", path: "/gallery" }, - { title: "Engi Care", path: "/engi-care" }, - { title: "Alumni Connect", path: "/alumni-connect" }, { title: "Accommodation", path: "/accomodation" }, { title: "Contact", path: "/contact" }, { title: "Team", path: '/team'} @@ -39,7 +36,6 @@ let navLinks = [ let mainLinks = [ { title: "Home", path: "/" }, { title: "Ambassadors", path: "/ambassador" }, - { title: "Events", path: "/events" }, { title: "Brochure", path: "/brochure" }, { title: "Accommodation", path: "/accomodation" }, diff --git a/src/components/common/footer.js b/src/components/common/footer.js index c5e8ddc..13e36b4 100644 --- a/src/components/common/footer.js +++ b/src/components/common/footer.js @@ -11,6 +11,17 @@ import { FiBell, FiFacebook, FiInstagram, FiLinkedin, FiTwitter } from 'react-ic import { Link } from "react-router-dom"; import { red } from '@mui/material/colors'; +const linksData = [ + { to: '/', text: 'Home' }, + { to: '/ambassador', text: 'Ambassadors' }, + { to: '/events', text: 'Events' }, + { to: '/brochure', text: 'Brochure' }, + { to: '/accommodation', text: 'Accommodation' }, + { to: '/about', text: 'About Us' }, + { to: '/contact', text: 'Contact' }, + { to: '/team', text: 'Team' }, +]; + const Footer = () => { const theme = useTheme(); @@ -61,14 +72,12 @@ const Footer = () => { - Quick Links - Home - Events - Ambassadors - Brochure - Accomodation - About Us - Contact + Quick Links + {linksData.map((link, index) => ( + + {link.text} + + ))} Subscribe