Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/DSC-McMaster-U/website into…
Browse files Browse the repository at this point in the history
… feature/MB-29-newsletter-section
  • Loading branch information
aidanfroggatt committed Oct 24, 2024
2 parents 7896dfa + d5d2c3c commit 8145dfe
Show file tree
Hide file tree
Showing 5 changed files with 153 additions and 38 deletions.
99 changes: 73 additions & 26 deletions app/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,28 +1,75 @@
import Link from "next/link";
import { socialMedia } from '../constants/socialMedia';


const Footer = () => {
return (
<footer>
<nav className="flex flex-row justify-between w-full">
<ul className="flex flex-row">
<li>
<Link href="/">Home</Link>
</li>
<li>
<Link href="/events">Events</Link>
</li>
<li>
<Link href="/newsletters">Newsletters</Link>
</li>
</ul>
{/* <ul>
<li>
<Link href="/discord">Join our discord</Link>
</li>
</ul> */}
</nav>
</footer>
);
}

export default Footer;
return (
<footer className="bg-google-lightGrey dark:bg-google-black text-google-black dark:text-google-lightGrey py-6 mt-8">
<div className="max-w-7xl mx-auto grid grid-cols-1 sm:grid-cols-2 gap-6 px-4">

{/* Contact Us */}
<div className="sm:text-left text-center sm:col-span-1 col-span-full">
<h4 className="text-lg sm:text-xl font-bold text-google-black dark:text-google-lightGrey py-2">
McMaster University
</h4>
<a
className="text-base sm:text-lg text-google-grey hover:text-google-mediumBlue dark:hover:text-google-lightBlue cursor-pointer"
href="mailto:[email protected]">
[email protected]
</a>
</div>

{/* Follow Us / Site Links */}
<div className="grid grid-cols-1 sm:grid-cols-3 gap-4 sm:text-left text-center">

{/* Follow Us */}
<div className="sm:text-left text-center sm:col-span-1 col-span-full">
<h4 className="font-bold text-google-black dark:text-google-lightGrey mb-2">Follow Us</h4>
<ul className="space-y-1">
{socialMedia.map((media, index) => (
<li key={index} className="flex items-center justify-center sm:justify-start">
<div className="mr-2 h-5 w-5">
{media.icon}
</div>
<a
href={media.href}
target="_blank"
rel="noopener noreferrer"
className="hover:underline text-google-grey hover:text-google-mediumBlue dark:hover:text-google-lightBlue"
>
{media.name}
</a>
</li>
))}
</ul>
</div>

{/* Site Map */}
<div>
<h4 className="font-bold text-google-black dark:text-google-lightGrey mb-2">Site Map</h4>
<ul className="space-y-1">
<li><a href="/home" className="hover:underline text-google-grey hover:text-google-mediumBlue">Home</a></li>
<li><a href="/events" className="hover:underline text-google-grey hover:text-google-mediumBlue">Events</a></li>
<li><a href="/newsletter" className="hover:underline text-google-grey hover:text-google-mediumBlue">Newsletter</a></li>
</ul>
</div>

{/* Programs */}
<div>
<h4 className="font-bold text-google-black dark:text-google-lightGrey mb-2">Programs</h4>
<ul className="space-y-1">
<li><a href="#" className="hover:underline text-google-grey hover:text-google-mediumBlue">Solutions Challenge</a></li>
</ul>
</div>

</div>
</div>

{/* Footer Bottom Section */}
<div className="max-w-7xl mx-auto text-left mt-4 px-4">
<p className="text-sm text-google-grey dark:text-google-lightGrey">&copy; {new Date().getFullYear()} | All rights reserved.</p>
</div>
</footer>
);
};

export default Footer;
26 changes: 25 additions & 1 deletion app/constants/socialMedia.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,45 @@
import { SiInstagram, SiDiscord, SiLinkedin } from "react-icons/si";
import { SiInstagram, SiDiscord, SiLinkedin, SiGithub, SiYoutube, SiFacebook, SiX } from "react-icons/si";

export interface SocialMedia {
name: string;
href: string;
icon: JSX.Element;
}

export const socialMedia = [
{
name: "Instagram",
href: "https://www.instagram.com/gdscmcmasteru/",
icon: <SiInstagram className="w-full h-full" />,
},
{
name: "Discord",
href: "https://discord.gg/gdscmcmasteru",
icon: <SiDiscord className="w-full h-full" />,
},
{
name: "LinkedIn",
href: "https://www.linkedin.com/company/gdscmcmasteru/",
icon: <SiLinkedin className="w-full h-full" />,
},
{
name: "Github",
href: "https://github.com/DSC-McMaster-U/",
icon: <SiGithub className="w-full h-full" />
},
{
name: "YouTube",
href: "https://www.youtube.com/channel/UCyxVVPDEYRCjL0lcwoX9lzA/videos",
icon: <SiYoutube className="w-full h-full" />
},
{
name: "Facebook",
href: "https://www.facebook.com/GDSCMcMasterU",
icon: <SiFacebook className="w-full h-full" />
},
{
name: "X",
href: "https://twitter.com/dscmcmasteru",
icon: <SiX className="w-full h-full" />
},
];
3 changes: 2 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { ChevronArrowButton, ChevronArrowSpan } from "@/app/components/ChevronAr
import { MdHandyman, MdForum, MdCode, MdGroup, MdArticle, MdCalendarToday, MdLightbulb } from "react-icons/md";
import newsletter from "@/assets/illustrations/newsletter.svg";


const HeroSection = () => (
<section id="hero" className="min-h-screen flex justify-center items-center text-center">
<div id="hero-content">
Expand Down Expand Up @@ -230,4 +231,4 @@ export default async function Index() {
<Footer />
</>
);
}
}
55 changes: 48 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"test:watch": "jest --watch"
},
"dependencies": {
"@fortawesome/free-brands-svg-icons": "^6.6.0",
"@fortawesome/react-fontawesome": "^0.2.2",
"@portabletext/react": "^3.1.0",
"@sanity/image-url": "^1.0.2",
"@sanity/vision": "^3.59.0",
Expand All @@ -28,8 +30,8 @@
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@types/jest": "^29.5.13",
"@types/node": "^20",
"@types/react": "^18",
"@types/node": "20.16.10",
"@types/react": "18.3.11",
"@types/react-dom": "^18",
"babel-jest": "^29.7.0",
"eslint": "^8",
Expand All @@ -40,6 +42,6 @@
"tailwindcss": "^3.4.1",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5"
"typescript": "5.6.2"
}
}

0 comments on commit 8145dfe

Please sign in to comment.