Skip to content

Commit

Permalink
Merge pull request #33 from ENGINEER-NITK/preeth_changes_3
Browse files Browse the repository at this point in the history
appbar, footer changes
  • Loading branch information
PreethamNaik12 authored Sep 20, 2023
2 parents d001005 + 4592c66 commit fcc4c55
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
6 changes: 1 addition & 5 deletions src/components/Appbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand All @@ -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" },
Expand Down
25 changes: 17 additions & 8 deletions src/components/common/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -61,14 +72,12 @@ const Footer = () => {
</a>
</Grid>
<Grid item xs={12} sm={6} md={3}>
<Link to='/'><Typography variant="h6">Quick Links</Typography></Link>
<Typography variant="body2"><Link to='/'>Home</Link></Typography>
<Typography variant="body2"><Link to='/events'>Events</Link></Typography>
<Typography variant="body2"><Link to='/ambassador'>Ambassadors</Link></Typography>
<Typography variant="body2"><Link to='/brochure'>Brochure</Link></Typography>
<Typography variant="body2"><Link to='/accomodation'>Accomodation</Link></Typography>
<Typography variant="body2"><Link to='/about'>About Us</Link></Typography>
<Typography variant="body2"><Link to='/contact'>Contact</Link></Typography>
<Typography variant="h6">Quick Links</Typography>
{linksData.map((link, index) => (
<Typography key={index} variant={'body2'}>
<Link to={link.to}>{link.text}</Link>
</Typography>
))}
</Grid>
<Grid item xs={12} sm={6} md={3}>
<Typography variant="h6">Subscribe</Typography>
Expand Down

0 comments on commit fcc4c55

Please sign in to comment.