Skip to content

Commit

Permalink
(feat) Add notion page link
Browse files Browse the repository at this point in the history
  • Loading branch information
Weile-Zheng committed Sep 5, 2024
1 parent 953ea9c commit d3ac633
Show file tree
Hide file tree
Showing 4 changed files with 168 additions and 132 deletions.
209 changes: 103 additions & 106 deletions config/currentProjects.json
Original file line number Diff line number Diff line change
@@ -1,107 +1,104 @@
[
{
"label": "Spotify Data Analysis",
"image": "spotify.png",
"leads": [
{ "name": "Jenny Lee", "image": "jleeone.jpeg" }
]
},
{
"label": "Recidivism Analysis",
"image": "compas-analysis.avif",
"leads": [
{ "name": "Lucas Tam", "image": "lucastam.png" },
{ "name": "Angela Li", "image": "anqili.jfif" }
]
},
{
"label": "Economic Forecasting",
"image": "economic_forecasting.jpg",
"leads": [
{ "name": "Jordyn Ives", "image": "temp.jpeg" },
{ "name": "Amelia Weyhing", "image": "aweyhing.JPG" }
]
},
{
"label": "Research Grant Analysis",
"image": "research_grant_analysis.jpg",
"leads": [
{ "name": "Erin Alcott", "image": "ealcott.jpg" },
{ "name": "Linda Ru", "image": "clindaru.png" }
]
},
{
"label": "Car Brand Classification",
"image": "car_brand_classification.jpg",
"leads": [
{ "name": "Aditi Kashi", "image": "adikashi.jpg" },
{ "name": "Anish Kudupudi", "image": "temp.jpeg" }
]
},
{
"label": "SoccerNet",
"image": "soccernet.png",
"leads": [
{ "name": "Antonio Capdevielle", "image": "acapdevi.jpg" },
{ "name": "Shiva Chandran", "image": "shivac.jpg" }
]
},
{
"label": "LLM Augmentation",
"image": "llm_augmentation.jpg",
"leads": [
{ "name": "Aditya Murali", "image": "adityamu.jpeg" },
{ "name": "Jordan Jones", "image": "jordanrj.jpeg" }
]
},
{
"label": "Facial Recognition",
"image": "facial_recognition.jpg",
"leads": [
{ "name": "Andrew Black", "image": "andbl.jpeg" },
{ "name": "Judith Wu", "image": "temp.jpeg" }
]
},
{
"label": "RL Neuroevolution",
"image": "reinforcement_learning.jpg",
"leads": [
{ "name": "Luke Yang", "image": "lukeyang.jpeg" },
{ "name": "Nathan Kawamoto", "image": "temp.jpeg" }
]
},
{
"label": "Mining & Analyzing Reddit",
"image": "reddit.avif",
"leads": [
{ "name": "Nidhil Nayudu", "image": "temp.jpeg" },
{ "name": "Tiernan Jesrani", "image": "tiernanj.jpg" }
]
},
{
"label": "ViT From Scratch",
"image": "vit_from_scratch.jpg",
"leads": [
{ "name": "Anthony Chen", "image": "anthoc.jpeg" },
{ "name": "Matthew Drutis", "image": "madrutis.jpg" }
]
},
{
"label": "Mini Copilot",
"image": "mini-copilot.png",
"leads": [
{ "name": "Amirali Danai", "image": "amiralid.png" },
{ "name": "Nishant Dash", "image": "ndash.JPG" }
]
},
{
"label": "Poker Bot",
"image": "poker_bot.jpg",
"leads": [
{ "name": "Jason Yen", "image": "temp.jpeg" },
{ "name": "Onat Ozer", "image": "temp.jpeg" },
{ "name": "Aditya Sinha", "image": "temp.jpeg" }
]
}
]

{
"label": "Spotify Data Analysis",
"image": "spotify_analysis.jpg",
"leads": [{ "name": "Jenny Lee", "image": "jleeone.jpeg" }]
},
{
"label": "Recidivism Analysis",
"image": "compas-analysis.avif",
"leads": [
{ "name": "Lucas Tam", "image": "lucastam.png" },
{ "name": "Angela Li", "image": "anqili.jfif" }
]
},
{
"label": "Economic Forecasting",
"image": "economic_forecasting.jpg",
"leads": [
{ "name": "Jordyn Ives", "image": "temp.jpeg" },
{ "name": "Amelia Weyhing", "image": "aweyhing.JPG" }
]
},
{
"label": "Research Grant Analysis",
"image": "research_grant_analysis.jpg",
"leads": [
{ "name": "Erin Alcott", "image": "ealcott.jpg" },
{ "name": "Linda Ru", "image": "clindaru.png" }
]
},
{
"label": "Car Brand Classification",
"image": "car_brand_classification.jpg",
"leads": [
{ "name": "Aditi Kashi", "image": "adikashi.jpg" },
{ "name": "Anish Kudupudi", "image": "temp.jpeg" }
]
},
{
"label": "SoccerNet",
"image": "soccernet.png",
"leads": [
{ "name": "Antonio Capdevielle", "image": "acapdevi.jpg" },
{ "name": "Shiva Chandran", "image": "shivac.jpg" }
]
},
{
"label": "LLM Augmentation",
"image": "llm_augmentation.jpg",
"leads": [
{ "name": "Aditya Murali", "image": "adityamu.jpeg" },
{ "name": "Jordan Jones", "image": "jordanrj.jpeg" }
]
},
{
"label": "Facial Recognition",
"image": "facial_recognition.jpg",
"leads": [
{ "name": "Andrew Black", "image": "andbl.jpeg" },
{ "name": "Judith Wu", "image": "temp.jpeg" }
]
},
{
"label": "RL Neuroevolution",
"image": "reinforcement_learning.jpg",
"leads": [
{ "name": "Luke Yang", "image": "lukeyang.jpeg" },
{ "name": "Nathan Kawamoto", "image": "temp.jpeg" }
]
},
{
"label": "Mining & Analyzing Reddit",
"image": "reddit.avif",
"leads": [
{ "name": "Nidhil Nayudu", "image": "temp.jpeg" },
{ "name": "Tiernan Jesrani", "image": "tiernanj.jpg" }
]
},
{
"label": "ViT From Scratch",
"image": "vit_from_scratch.jpg",
"leads": [
{ "name": "Anthony Chen", "image": "anthoc.jpeg" },
{ "name": "Matthew Drutis", "image": "madrutis.jpg" }
]
},
{
"label": "Mini Copilot",
"image": "mini-copilot.png",
"leads": [
{ "name": "Amirali Danai", "image": "amiralid.png" },
{ "name": "Nishant Dash", "image": "ndash.JPG" }
]
},
{
"label": "Poker Bot",
"image": "poker_bot.jpg",
"leads": [
{ "name": "Jason Yen", "image": "temp.jpeg" },
{ "name": "Onat Ozer", "image": "temp.jpeg" },
{ "name": "Aditya Sinha", "image": "temp.jpeg" }
]
}
]
91 changes: 65 additions & 26 deletions pages/projects/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,62 @@ export default function Projects({ groupedLinks, currentProjects }) {

return (
<Layout>
<HeadContent
title={"Michigan Data Science Team - Projects"}
description={"Michigan Data Science Team - MDST is the largest data science club at the University of Michigan. Here are some of our past projects."}
<HeadContent
title={"Michigan Data Science Team - Projects"}
description={
"Michigan Data Science Team - MDST is the largest data science club at the University of Michigan. Here are some of our past projects."
}
/>
<Hero title="Our Projects" />

<section className="current-projects py-8 px-4 mx-auto max-w-screen-xl text-center lg:py-16 lg:px-6">
<div className="mx-auto mb-8 max-w-screen-sm lg:mb-16">
<h2 className="text-3xl mb-4">Current Projects</h2>
<h3>
Our Notion page have detailed project labeling and descriptions:{" "}
<a
href="https://mdst-club.notion.site/Fall-2024-Project-Directory-734d91c7dd6f4991b98eef461504a1eb"
style={{
color: "#C8BAF3",
fontWeight: "bold",
textDecoration: "underline",
}}
>
here
</a>
</h3>
</div>
<div className="flex flex-wrap justify-center gap-8">
{currentProjects.map((project, index) => (
<CurrentProjectCard key={index} project={project} basePath={basePath} />
<CurrentProjectCard
key={index}
project={project}
basePath={basePath}
/>
))}
</div>
</section>

{Object.entries(groupedLinks).sort((a, b) => {
const [aSeason, aYear] = a[0].split(" ");
const [bSeason, bYear] = b[0].split(" ");
const seasonOrder = { Winter: 0, Fall: 1 };
{Object.entries(groupedLinks)
.sort((a, b) => {
const [aSeason, aYear] = a[0].split(" ");
const [bSeason, bYear] = b[0].split(" ");
const seasonOrder = { Winter: 0, Fall: 1 };

if (aYear === bYear) {
return seasonOrder[aSeason] - seasonOrder[bSeason];
} else {
return parseInt(bYear) - parseInt(aYear);
}
}).map(([semester, projects]) => (
<GroupSection key={semester} basePath={basePath} semester={semester} projects={projects} />
))}
if (aYear === bYear) {
return seasonOrder[aSeason] - seasonOrder[bSeason];
} else {
return parseInt(bYear) - parseInt(aYear);
}
})
.map(([semester, projects]) => (
<GroupSection
key={semester}
basePath={basePath}
semester={semester}
projects={projects}
/>
))}
</Layout>
);
}
Expand All @@ -63,18 +89,31 @@ function GroupSection({ semester, projects, basePath }) {
}

export async function getStaticProps() {
const pastProjectsPath = path.join(process.cwd(), "config", "pastProjects.json");
const pastProjectsPath = path.join(
process.cwd(),
"config",
"pastProjects.json"
);
const pastProjects = JSON.parse(fs.readFileSync(pastProjectsPath, "utf-8"));

const groupedLinks = Object.entries(pastProjects).reduce((acc, [semester, projects]) => {
acc[semester] = projects.map(project => ({
...project
}));
return acc;
}, {});
const groupedLinks = Object.entries(pastProjects).reduce(
(acc, [semester, projects]) => {
acc[semester] = projects.map((project) => ({
...project,
}));
return acc;
},
{}
);

const currentProjectsPath = path.join(process.cwd(), "config", "currentProjects.json");
const currentProjects = JSON.parse(fs.readFileSync(currentProjectsPath, "utf-8"));
const currentProjectsPath = path.join(
process.cwd(),
"config",
"currentProjects.json"
);
const currentProjects = JSON.parse(
fs.readFileSync(currentProjectsPath, "utf-8")
);

return {
props: {
Expand Down
Binary file removed public/images/projects/spotify.png
Binary file not shown.
Binary file modified public/images/projects/spotify_analysis.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d3ac633

Please sign in to comment.