Skip to content

Commit

Permalink
src/pages/teams: Add 2022 team page, add dropdown to teams navbar header
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrxyz committed Nov 11, 2024
1 parent e721a31 commit 86271c3
Show file tree
Hide file tree
Showing 11 changed files with 335 additions and 8 deletions.
Binary file added src/assets/members/aditya_ramesh.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 src/assets/members/alex_kuzmicki.jpg
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 src/assets/members/alex_perez.jpg
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 src/assets/members/andres_castrillon.jpg
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 src/assets/members/jarrod_sanders.jpg
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 src/assets/members/luka_bjellos.jpg
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 src/assets/members/mehron_talebi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions src/components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,19 @@ function Navbar() {
</div>
<ul className="flex space-x-6">
<NavItem to="/" label="Home" />
<NavItem to="/team" label="Team" />
<NavItem
to="/team"
label="Team"
dropdown={
[
{ to: "/team", label: "2024 Team" },
{ to: "/team/2022", label: "2022 Team" },
]
}
/>
<NavItem
to="/vehicle"
label="Vehicle"
label="Vehicle"
/>
<NavItem
to="/sponsors"
Expand Down
9 changes: 7 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import { createRoot } from "react-dom/client";

import LandingPage from './pages/Landing';
import ErrorPage from './pages/NotFound';
import TeamPage from './pages/Team';
import Team2022Page from './pages/teams/2022';
import Team2024Page from './pages/teams/2024';
import VehiclePage from './pages/Vehicle';
import SponsorsPage from './pages/Sponsors';
import PhotosPage from './pages/Photos';
Expand All @@ -24,7 +25,11 @@ const router = createBrowserRouter([
},
{
path: "/team",
element: <TeamPage />,
element: <Team2024Page />,
},
{
path: "/team/2022",
element: <Team2022Page />,
},
{
path: "/vehicle",
Expand Down
313 changes: 313 additions & 0 deletions src/pages/teams/2022.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,313 @@
import React from "react";
import Header from "../../components/Header";

import MemberCard from "../../components/MemberCard";

import memberImages from "../../assets/members";
import advisorImages from "../../assets/advisors";

const Leadership = () => {
const members = [
{
image: memberImages["alex_perez.jpg"],
name: "Alex Perez",
role: "Team Lead",
degree: "BS, Computer Engineering",
graduationYear: "Spring 2023",
linkedIn: "alexsperez",
},
{
image: memberImages["andres_castrillon.jpg"],
name: "Andres Castrillon",
role: "Mechanical Lead",
degree: "BS, Mechanical Engineering",
graduationYear: "Spring 2024",
linkedIn: "andres-castrillon4",
},
{
image: memberImages["cameron.jpeg"],
name: "Cameron Brown",
role: "Software Lead",
degree: "BS, Computer Science",
graduationYear: "Spring 2025",
linkedIn: "cameron-brown37",
website: "https://cbrxyz.com",
},
{
image: memberImages["alex_kuzmicki.jpg"],
name: "Alex Kuzmicki",
role: "Electrical Lead",
degree: "BS, Electrical Engineering",
graduationYear: "Spring 2023",
linkedIn: "alexander-kuzmicki-550903182",
},
{
image: memberImages["andrew.png"],
name: "Andrew Knee",
role: "Software Lead",
degree: "BS, Computer Science",
graduationYear: "Fall 2023",
linkedIn: "andrew-knee-j",
},
{
image: memberImages["jarrod_sanders.jpg"],
name: "Jarrod Sanders",
role: "Software Lead",
degree: "BS, Computer Science",
graduationYear: "Fall 2023",
linkedIn: "jarrod-sanders",
},
{
image: memberImages["aditya_ramesh.png"],
name: "Aditya Ramesh",
role: "Electrical Lead",
degree: "BS, Electrical Engineering",
graduationYear: "Spring 2024",
linkedIn: "aditya-ramesh-ufl",
},
{
image: memberImages["mehron_talebi.jpg"],
name: "Mehron Talebi",
role: "Electrical Lead",
degree: "BS, Elctrical Engineering",
graduationYear: "Spring 2025",
},
];

return (
<section className="max-w-6xl mx-auto py-16 bg-gray-300">
<div className="text-center mb-12">
<h2 className="text-3xl font-bold mb-10">Leadership</h2>
</div>
<div className="grid grid-cols-1 sm:grid-cols-3 lg:grid-cols-5 gap-6">
{members.map((member, index) => (
<MemberCard
key={index}
image={member.image}
name={member.name}
role={member.role}
degree={member.degree}
graduationYear={member.graduationYear}
linkedIn={member.linkedIn}
website={member.website}
/>
))}
</div>
</section>
);
};

const Advisors = () => {
const advisors = [
{
image: advisorImages["schwartz.jpg"],
name: "Dr. Eric Schwartz",
role: "MIL Director",
linkedIn: "eric-schwartz-4231924",
website: "https://mil.ufl.edu/ems/",
},
{
image: advisorImages["crane.jpg"],
name: "Dr. Carl Crane",
role: "Professor, MAE",
linkedIn: "carl-crane-47839574",
website: "https://mae.ufl.edu/people/profiles/carl-crane/",
},
{
image: advisorImages["andres.png"],
name: "Andres Pulido",
role: "PhD Candidate, MAE",
linkedIn: "andres-a-pulido",
website: "https://andrespulido8.github.io",
},
];

return (
<section className="max-w-6xl mx-auto pb-16 bg-gray-300">
<div className="text-center mb-12">
<h2 className="text-3xl font-bold mb-10">Advisors</h2>
</div>
<div className="grid grid-cols-1 sm:grid-cols-3 lg:grid-cols-5 gap-6">
{advisors.map((member, index) => (
<MemberCard
key={index}
image={member.image}
name={member.name}
role={member.role}
linkedIn={member.linkedIn}
website={member.website}
/>
))}
</div>
</section>
);
};

const TravelingMembers = () => {
const travelingMembers = [
{
image: memberImages["luka_bjellos.jpg"],
name: "Luka Bjellos",
role: "Mechanical Member",
degree: "BS, Aerospace Engineering",
graduationYear: "Spring 2025",
linkedIn: "luka-bjellos-727995220",
},
{
image: memberImages["kayleigh.jpg"],
name: "Kayleigh Beron",
role: "Electrical Member",
degree: "BS, Electrical Engineering",
graduationYear: "Fall 2024",
linkedIn: "kayleigh-beron",
},
];

return (
<section className="max-w-6xl mx-auto pb-16 bg-gray-300">
<div className="text-center mb-12">
<h2 className="text-3xl font-bold mb-10">Traveling Members</h2>
</div>
<div className="grid grid-cols-1 sm:grid-cols-3 lg:grid-cols-5 gap-6">
{travelingMembers.map((member, index) => (
<MemberCard
key={index}
image={member.image}
name={member.name}
role={member.role}
degree={member.degree}
graduationYear={member.graduationYear}
linkedIn={member.linkedIn}
website={member.website}
/>
))}
</div>
</section>
);
};

const TeamList = () => {
const teams = [
{
name: "Mechanical Team",
members: [
"Gabriella Peburn",
"Ashton Pierre-Louis",
"Dewayne Roxborough",
"Nathaniel Braswell",
"Lorant Domokos",
"Nhan Hoang",
"Joshua Hornilla",
"Faisal Khanfar",
"Alexander Lyew",
"Griffin Martin",
"Adam McAleer",
"Quang Pham",
"Matthew Poole",
"Andres Pulido",
"David Reyes-Tobar",
"Jordan Schmidt",
"Julian Villarta",
],
},
{
name: "Software Team",
members: [
"Pranet Allu",
"Hadi Baajour",
"Nicolas Betancur",
"Tanya Charan",
"Henry Chen",
"Mark Frederick Cortez",
"David Dexter",
"Skyler Estavillo",
"Aran Gain",
"Ty Halpen",
"Legasse Remon",
"Anthony Liao",
"Michael Logsdon",
"James Luberisse",
"Sai Chandu Naru",
"Tri Nguyen",
"William Pitts",
"Mitchell Robert",
"Abishanka Saha",
"Nicolas Sardinia",
"Joshua Thomas",
"Zhengyuan Zhao",
],
},
{
name: "Electrical Team",
members: [
"Tyler Berndt",
"Phillip Boll",
"Alexander Calvo",
"Manning Chen",
"Sydney Dodson",
"Emily Garcia",
"Marc Guillaume",
"Jessica Halvorsen",
"William Kirby",
"Andrew Miller",
"Yovany Molina",
"Nivedha Natarajan",
"Blake Sanders",
"Jenna Sheldon",
"Mehron Talebi",
"Grace Borst",
"Kevin Chen",
"Adrian Fernandez",
"Garret Godfrey",
"Alexander Kuzmicki",
"Liam Negron",
"Ethan Reussow",
"Matthew Shen",
"Emily Wang",
"Maclean Whitworth",
"Minhyeok Wi",
"Joseph Wilkinson",
],
},
];
return (
<section className="max-w-6xl mx-auto pb-8">
<div className="text-center mb-12">
<h2 className="text-3xl font-bold mb-10">Members</h2>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-6">
{teams.map((team, index) => (
<div
key={index}
className="bg-white p-4 rounded-lg shadow-lg text-center"
>
<h3 className="text-xl font-bold mb-3">{team.name}</h3>
<div className="space-y-1">
{team.members.toSorted().map((member, idx) => (
<p key={idx} className="text-gray-700">
{member}
</p>
))}
</div>
</div>
))}
</div>
</section>
);
};

const TeamPage = () => {
return (
<div className="bg-gray-300" style={{ fontFamily: "Inter, sans-serif" }}>
<div className="relative">
<Header title="Meet the Team" subTitle="2022 Season" />
</div>
<Leadership />
<Advisors />
<TravelingMembers />
<TeamList />
</div>
);
};

export default TeamPage;
8 changes: 4 additions & 4 deletions src/pages/Team.js → src/pages/teams/2024.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from "react";
import Header from "../components/Header";
import Header from "../../components/Header";

import MemberCard from "../components/MemberCard";
import MemberCard from "../../components/MemberCard";

import memberImages from "../assets/members";
import advisorImages from "../assets/advisors";
import memberImages from "../../assets/members";
import advisorImages from "../../assets/advisors";

const Leadership = () => {
const members = [
Expand Down

0 comments on commit 86271c3

Please sign in to comment.