Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Summer24 #81

Merged
merged 30 commits into from
Jul 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8efdcb0
all headshots from form added
izzyg770 Jun 14, 2024
a1807e0
team done, need soshcom members
izzyg770 Jun 22, 2024
893b6ed
starting with timeline
izzyg770 Jun 27, 2024
8a8c0fa
project committee and leads split up
izzyg770 Jun 28, 2024
7261321
small grammar edits
izzyg770 Jun 28, 2024
c6e0ef8
team done except soshcom
izzyg770 Jun 29, 2024
035847e
Fix grammer and description. Add missing member
Weile-Zheng Jul 4, 2024
23cd10f
projects page update format. need to fix the icons (github icon showi…
izzyg770 Jul 9, 2024
104dc03
finished adding soshcom members. eboard and committee members all upd…
izzyg770 Jul 10, 2024
54c2608
Community Image components added. Update community images through con…
izzyg770 Jul 10, 2024
d4c43f5
Projects layout update. Automatically sorts from most to least recent…
izzyg770 Jul 10, 2024
ed8f1b8
minor fix link
Weile-Zheng Jul 18, 2024
76b400d
pushing project changes
izzyg770 Jul 18, 2024
6c3003e
will fail to compile until all projects have associated images
izzyg770 Jul 18, 2024
a37c596
projects more streamlined. use config/pastProjects.json to update. ne…
izzyg770 Jul 20, 2024
f3cfe49
all projects in json
izzyg770 Jul 20, 2024
15ad280
minor change
izzyg770 Jul 20, 2024
5adefcf
last changes.
izzyg770 Jul 20, 2024
ce4db03
twitter project image
neeyam-m Jul 27, 2024
504aa81
added images for
sriyanm Jul 28, 2024
c951cf3
all project photos updated
neeyam-m Jul 28, 2024
02eeaff
fixing build errors
izzyg770 Jul 29, 2024
5fde287
build errors fixed now??
izzyg770 Jul 29, 2024
3cca410
maybe build errors fixed now
izzyg770 Jul 29, 2024
3b9109a
pls let the build errors be fixed
izzyg770 Jul 29, 2024
62c6036
updating projects
izzyg770 Jul 29, 2024
6e06fdc
Merge remote-tracking branch 'refs/remotes/origin/summer24' into summ…
Weile-Zheng Jul 29, 2024
6488cdd
(bug) fix rate my professor image rendering
Weile-Zheng Jul 29, 2024
349e9d7
safari view fixed
izzyg770 Jul 29, 2024
715df9d
config fixes
danaiamirali Jul 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions components/communityImages.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import Image from 'next/image';

export default function CommunityImages({ images, basePath }) {
return (
<div className="flex flex-col sm:flex-row items-center mx-auto max-w-6xl">
{images.map((image, index) => (
<div key={index} className="w-full sm:w-1/2 mx-4 mb-6 flex flex-col justify-center items-center">
<p className="text-base mt-2">{image.name}</p>
<Image
width={500}
height={500}
src={
basePath
? `${basePath}/images/community/${image.image}`
: `/images/community/${image.image}`
}
alt={image.name}
/>
</div>
))}
</div>
);
}
110 changes: 110 additions & 0 deletions components/currentProjectCard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
import Image from "next/image";

export default function CurrentProjectCard({ project, basePath }) {
const projectImagePath = `${basePath ? basePath : ''}/images/projects/${project.image}`;
const leadText = project.leads.length > 1 ? "Leads" : "Lead";

return (
<div style={styles.card}>
<div style={{ ...styles.column, ...styles.projectInfo }}>
<Image
style={styles.projectImage}
width="300"
height="300"
src={projectImagePath}
alt={project.label}
/>
<h3 style={styles.projectTitle}>{project.label}</h3>
</div>
<div style={{ ...styles.column, ...styles.leadsInfo }}>
<h4 style={styles.leadText}>{leadText}:</h4>
<div style={styles.leadsContainer}>
{project.leads.map((lead, idx) => (
<div key={idx} style={styles.lead}>
<Image
style={styles.leadImage}
width="75"
height="75"
src={`${basePath ? basePath : ''}/images/team/${lead.image}`}
alt={lead.name}
/>
<p style={styles.leadName}>{lead.name}</p>
</div>
))}
</div>
</div>
</div>
);
}

const styles = {
card: {
display: 'flex',
flexDirection: 'row',
backgroundColor: '#333',
padding: '16px',
borderRadius: '8px',
width: '100%',
maxWidth: '600px',
marginBottom: '32px',
},
column: {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
flex: 1,
},
projectInfo: {
marginBottom: '16px',
flex: 1,
},
projectImage: {
borderRadius: '10%',
objectFit: 'cover',
width: '100%',
height: 'auto',
},
projectTitle: {
marginTop: '16px',
fontSize: '24px',
fontWeight: 'bold',
textAlign: 'center',
color: 'white',
},
leadsInfo: {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
flex: 1,
},
leadText: {
fontSize: '20px',
fontWeight: 'bold',
color: 'white',
},
leadsContainer: {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
marginTop: '8px',
gap: '16px',
},
lead: {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
},
leadImage: {
borderRadius: '50%',
objectFit: 'cover',
width: '75px',
height: '75px',
},
leadName: {
marginTop: '8px',
textAlign: 'center',
fontSize: '14px',
fontWeight: '500',
color: 'white',
},
};
18 changes: 12 additions & 6 deletions components/icon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import {
IoBrowsersOutline,
IoLogoSlack,
IoCopyOutline,
IoCalendarOutline
IoCalendarOutline,
IoDocumentTextOutline,
IoDocumentOutline
} from "react-icons/io5";
import { createElement } from "react";

Expand All @@ -31,13 +33,17 @@ const iconMap = {
slack: IoLogoSlack,
copy: IoCopyOutline,
calendar: IoCalendarOutline,

"file-text": IoDocumentTextOutline,
"file-pdf": IoDocumentOutline
};

export default function Icon(props) {
if (!(props.name in iconMap)) {
console.error("Could not find name " + props.name);
export default function Icon({ name, ...props }) {
const IconComponent = iconMap[name];

if (!IconComponent) {
console.error(`Could not find icon with name "${name}"`);
return null;
}
return createElement(iconMap[props.name], props);

return createElement(IconComponent, props);
}
37 changes: 37 additions & 0 deletions components/projectCard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import Link from "next/link";
import Image from "next/image";
import Icon from "@/components/icon";

export default function ProjectCard({ project, basePath }) {
const imagePath = `${basePath}/images/projects/${project.label.toLowerCase().split(" ").join("_")}.jpg`;
return (
<div className="text-left sm:text-center rounded bg-grey py-2 sm:py-4 px-2 sm:px-8 w-full sm:w-60 flex sm:block gap-8">
<Image
className="sm:mx-auto sm:mb-4 sm:w-44 sm:h-44 w-24 h-24 my-auto rounded-full object-cover"
width="176"
height="176"
src={imagePath}
alt={project.label}
/>
<div className="">
<h3 className="mb-1 text-2xl font-bold tracking-tight">{project.label}</h3>
<ul className="flex sm:justify-center mt-2 sm:mt-4 space-x-4">
{project.github && (
<li>
<Link href={project.github} className="hover:text-gray" aria-label="Github Repo">
<Icon name="github" className="text-3xl" />
</Link>
</li>
)}
{project.googleSlides && (
<li>
<Link href={project.googleSlides} className="hover:text-gray" aria-label="Google Slides">
<Icon name="file-pdf" className="text-3xl" />
</Link>
</li>
)}
</ul>
</div>
</div>
);
}
11 changes: 11 additions & 0 deletions config/communityImages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"name": "WN24 Project Expo",
"image": "WN24_EXPO.JPG"
},
{
"name": "WN24 Data Science Night",
"image": "WN24_DSN.JPG"
}
]

92 changes: 92 additions & 0 deletions config/currentProjects.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
[
{
"label": "Economic Forecasting",
"image": "economic_forecasting.jpg",
"leads": [
{ "name": "Jordan 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.jpg",
"leads": [
{ "name": "Antonio Capdevielle", "image": "temp.jpeg" },
{ "name": "Shiva Chandran", "image": "shivac.jpg" }
]
},
{
"label": "LLM Augmentation",
"image": "llm_augmentation.jpg",
"leads": [
{ "name": "Aditya Murali", "image": "temp.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 Tweets",
"image": "twitter_sentiment_analysis.jpg",
"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.jpg",
"leads": [
{ "name": "Amirali Danai", "image": "amiralid.png" },
{ "name": "Nishant Dash", "image": "temp.jpeg" }
]
},
{
"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" }
]
}
]

Loading
Loading