Skip to content

Commit

Permalink
Add slider for member clubs
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Oct 20, 2023
1 parent 422c707 commit 065b05d
Show file tree
Hide file tree
Showing 14 changed files with 208 additions and 24 deletions.
Binary file added public/assets/img/clubs/acm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/clubs/ai.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/clubs/blockchain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 76 additions & 0 deletions public/assets/img/clubs/ctc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/clubs/cyber.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/clubs/hack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/clubs/ieee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/clubs/maiss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/clubs/udsa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/clubs/vgdc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/clubs/vrdc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/img/clubs/wics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
77 changes: 77 additions & 0 deletions src/assets/data/clubs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[
{
"id": "acm",
"name": "Association For Computing Machinery",
"logo": "/assets/img/clubs/acm.png",
"website": "https://acm-uci.org/",
"description": ""
},
{
"id": "ai",
"name": "AI at UCI",
"logo": "/assets/img/clubs/ai.png",
"website": "https://aiclub.ics.uci.edu/",
"description": ""
},
{
"id": "blockchain",
"name": "Blockchain at UCI",
"logo": "/assets/img/clubs/blockchain.png",
"website": "https://www.blockchainuci.org/",
"description": ""
},
{
"id": "ctc",
"name": "Commit the Change",
"logo": "/assets/img/clubs/ctc.svg",
"website": "https://ctc-uci.com/",
"description": ""
},
{
"id": "cyber",
"name": "Cyber @ UCI",
"logo": "/assets/img/clubs/cyber.png",
"website": "https://cyberclub.ics.uci.edu/",
"description": ""
},
{
"id": "hack",
"name": "Hack at UCI",
"logo": "/assets/img/clubs/hack.png",
"website": "https://hack.ics.uci.edu/",
"description": ""
},
{
"id": "ieee",
"name": "Institute of Electrical and Electronics Engineers",
"logo": "/assets/img/clubs/ieee.png",
"website": "https://ieee.ics.uci.edu/",
"description": ""
},
{
"id": "maiss",
"name": "Management Information Student Society",
"logo": "/assets/img/clubs/maiss.png",
"website": "https://www.maissuci.com/",
"description": ""
},
{
"id": "vgdc",
"name": "Video Game Development Club",
"logo": "/assets/img/clubs/vgdc.png",
"website": "https://sites.google.com/uci.edu/vgdcuci/",
"description": ""
},
{
"id": "vrdc",
"name": "Virtual Reality Development Club",
"logo": "/assets/img/clubs/vrdc.png"
},
{
"id": "wics",
"name": "Women in Information and Computer Science",
"logo": "/assets/img/clubs/wics.png",
"website": "https://wics.ics.uci.edu/",
"description": ""
}
]
79 changes: 55 additions & 24 deletions src/components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,58 +6,89 @@ import {
FaEnvelope,
} from "react-icons/fa";
import Link from "next/link";
import Clubs from "../assets/data/clubs.json";
import Image from "next/image";

const MEDIA_LINKS = [
{
key: 1,
id: 1,
link: "https://www.facebook.com/ICSStudentCouncil/",
icon: <FaFacebook />,
},
{
key: 2,
id: 2,
link: "https://www.facebook.com/ICSStudentCouncil/",
icon: <FaInstagram />,
},
{
key: 3,
id: 3,
link: "https://www.facebook.com/ICSStudentCouncil/",
icon: <FaDiscord />,
},
{
key: 4,
id: 4,
link: "https://www.facebook.com/ICSStudentCouncil/",
icon: <FaGithub />,
},
{
key: 5,
id: 5,
link: "mailto: [email protected]",
icon: <FaEnvelope />,
},
];

const ClubElement = (props) => {
const { name, logo, website } = props;
return (
<div className="flex items-center text-center">
<div className="w-[100px]">
<Link href={website ? website : ""} target="_blank" rel="noreferrer">
<Image
src={logo}
alt={name}
width={160}
height={160}
className="rounded-lg"
/>
</Link>
</div>
</div>
);
};

export default function Footer() {
return (
<footer className="w-[100%] flex flex-col gap-5 p-6 sm:p-10">
<div className="flex justify-center gap-5 sm:gap-12 text-3xl sm:text-4xl">
{MEDIA_LINKS.map((link) => (
<Link
href={link.link}
target="_blank"
referrerPolicy="noreferrer"
key={link.key}
>
{link.icon}
</Link>
))}
<div className="flex flex-col gap-4 sm:gap-10 mt-10">
<div className="flex flex-col gap-4">
<span className="flex justify-center text-3xl">Our Member Clubs</span>
<div className="flex flex-row mx-auto overflow-x-scroll w-[50%] gap-6">
{Clubs.map((club) => (
<ClubElement {...club} key={club.id} />
))}
</div>
</div>
<div className="flex flex-col">
<div className="flex justify-center text-lg sm:text-2xl">
Made with 💖 by the ICSSC team
<footer className="w-[100%] flex flex-col gap-5 p-6">
<div className="flex justify-center gap-5 sm:gap-12 text-3xl sm:text-4xl">
{MEDIA_LINKS.map((link) => (
<Link
href={link.link}
target="_blank"
referrerPolicy="noreferrer"
key={link.key}
>
{link.icon}
</Link>
))}
</div>
<div className="flex justify-center text-sm sm:text-md">
Copyright © 2023 ICSSC
<div className="flex flex-col">
<div className="flex justify-center text-lg sm:text-2xl">
Made with 💖 by the ICSSC team
</div>
<div className="flex justify-center text-sm sm:text-md">
Copyright © 2023 ICSSC
</div>
</div>
</div>
</footer>
</footer>
</div>
);
}

0 comments on commit 065b05d

Please sign in to comment.