Skip to content

Commit 5e5ebc6

Browse files
chore: added cohort videos for 2025
1 parent bb54202 commit 5e5ebc6

File tree

1 file changed

+44
-26
lines changed

1 file changed

+44
-26
lines changed

src/components/cohortsProjects/cohortsProjects.tsx

Lines changed: 44 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,31 @@ type CohortData = {
2020
};
2121

2222
const cohortData: CohortData = {
23-
2022: [
23+
2025: [
2424
{
2525
id: 1,
26-
cohortName: 'Cohort 5',
27-
youtubeLink:
28-
'https://www.youtube.com/embed/0Z7K9sv5Hcc?si=XymSUESq1layFazc',
29-
projectName: 'DevConnect',
30-
projectDescription:
31-
'A platform connecting junior developers with mentors in the Dallas tech community',
26+
cohortName: 'Cohort 10',
27+
youtubeLink: 'https://www.youtube.com/embed/d0kh7tikUJM?si=cohort10_vid',
28+
projectName: 'Cohort 10 Project',
29+
projectDescription: 'Latest cohort project from our 2025 program',
3230
},
3331
{
3432
id: 2,
35-
cohortName: 'Cohort 6',
33+
cohortName: 'Cohort 11',
34+
youtubeLink: 'https://www.youtube.com/embed/jhywKK8-DGw?si=cohort11_vid',
35+
projectName: 'Cohort 11 Project',
36+
projectDescription: 'Latest cohort project from our 2025 program',
37+
},
38+
],
39+
2024: [
40+
{
41+
id: 1,
42+
cohortName: 'Cohort 9',
3643
youtubeLink:
37-
'https://www.youtube.com/embed/hfGrR_IPHdw?si=h9kzQpNhIALvNOet',
38-
projectName: 'EventHub',
44+
'https://www.youtube.com/embed/jQL0k_4vUJQ?si=0cvsqz3hH87XNCLl',
45+
projectName: 'TechTalent',
3946
projectDescription:
40-
'A community event management system for local tech meetups',
47+
'A job board connecting Dallas tech companies with local developer talent',
4148
},
4249
],
4350
2023: [
@@ -60,15 +67,24 @@ const cohortData: CohortData = {
6067
'A collaborative coding platform for remote pair programming sessions',
6168
},
6269
],
63-
2024: [
70+
2022: [
6471
{
6572
id: 1,
66-
cohortName: 'Cohort 9',
73+
cohortName: 'Cohort 5',
6774
youtubeLink:
68-
'https://www.youtube.com/embed/jQL0k_4vUJQ?si=0cvsqz3hH87XNCLl',
69-
projectName: 'TechTalent',
75+
'https://www.youtube.com/embed/0Z7K9sv5Hcc?si=XymSUESq1layFazc',
76+
projectName: 'DevConnect',
7077
projectDescription:
71-
'A job board connecting Dallas tech companies with local developer talent',
78+
'A platform connecting junior developers with mentors in the Dallas tech community',
79+
},
80+
{
81+
id: 2,
82+
cohortName: 'Cohort 6',
83+
youtubeLink:
84+
'https://www.youtube.com/embed/hfGrR_IPHdw?si=h9kzQpNhIALvNOet',
85+
projectName: 'EventHub',
86+
projectDescription:
87+
'A community event management system for local tech meetups',
7288
},
7389
],
7490
};
@@ -82,7 +98,7 @@ export default function CohortsProjects({
8298
sectionRef,
8399
isVisible = false,
84100
}: CohortsProjectsProps) {
85-
const [selectedYear, setSelectedYear] = useState(2024);
101+
const [selectedYear, setSelectedYear] = useState(2025);
86102

87103
return (
88104
<section
@@ -100,15 +116,17 @@ export default function CohortsProjects({
100116
</div>
101117

102118
<div className={styles.yearSelector}>
103-
{Object.keys(cohortData).map((year) => (
104-
<button
105-
key={year}
106-
className={`${styles.yearButton} ${selectedYear === parseInt(year) ? styles.activeYear : ''}`}
107-
onClick={() => setSelectedYear(parseInt(year))}
108-
>
109-
{year}
110-
</button>
111-
))}
119+
{Object.keys(cohortData)
120+
.sort((a, b) => parseInt(b) - parseInt(a))
121+
.map((year) => (
122+
<button
123+
key={year}
124+
className={`${styles.yearButton} ${selectedYear === parseInt(year) ? styles.activeYear : ''}`}
125+
onClick={() => setSelectedYear(parseInt(year))}
126+
>
127+
{year}
128+
</button>
129+
))}
112130
</div>
113131

114132
<div className={styles.cohortGrid}>

0 commit comments

Comments
 (0)