Skip to content

Commit 2c70f56

Browse files
committed
update feed events
1 parent c387788 commit 2c70f56

File tree

4 files changed

+70
-18
lines changed

4 files changed

+70
-18
lines changed

src/app/(site)/feed/events/_components/calendar.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const EventLabel: React.FC<EventLableProps> = ({
9595
const eventLabels: EventLabel[] = [
9696
{
9797
id: "e1",
98-
name: "Main event",
98+
name: "Main Event",
9999
type: "event",
100100
borderStyle: "#F5595C",
101101
textStyle: "text-[#F5595C] font-rubik"
@@ -120,6 +120,13 @@ export const EventLabel: React.FC<EventLableProps> = ({
120120
type: "activity",
121121
borderStyle: "#00CC8E",
122122
textStyle: "text-[#00CC8E] font-rubik"
123+
},
124+
{
125+
id: "e5",
126+
name: "Mentorship",
127+
type: "mentorship",
128+
borderStyle: "#6060C2",
129+
textStyle: "text-[#6060C2] font-rubik"
123130
}
124131
];
125132

src/app/(site)/feed/events/_components/events.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export default function Events() {
1111
event: "#F5595C",
1212
workshop: "#7D22CC",
1313
food: "#FFA167",
14-
activity: "#00CC8E"
14+
activity: "#00CC8E",
15+
mentorship: "#6060C2"
1516
};
1617
const filteredEvents =
1718
selectedFilter === "all"

src/lib/data/events.ts

Lines changed: 59 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,39 @@ export const events: EventType[] = [
5656
endTime: 4,
5757
row: 0.5
5858
},
59+
{
60+
id: "mentorship1",
61+
name: "Mentorship",
62+
type: "mentorship",
63+
date: 0,
64+
timeString: "5:00 - 11:00 PM",
65+
location: "TBD",
66+
startTime: 4,
67+
endTime: 7,
68+
row: 6.5
69+
},
70+
{
71+
id: "mentorship2",
72+
name: "Mentorship",
73+
type: "mentorship",
74+
date: 0,
75+
timeString: "5:00 - 11:00 PM",
76+
location: "TBD",
77+
startTime: 7,
78+
endTime: 10,
79+
row: 6.5
80+
},
81+
{
82+
id: "food1",
83+
name: "Dinner",
84+
type: "food",
85+
date: 0,
86+
timeString: "5:30 - 7:30 PM",
87+
location: "TBD",
88+
startTime: 4.5,
89+
endTime: 6.5,
90+
row: 1.2
91+
},
5992
{
6093
id: "workshop1",
6194
name: "Intro to SvelteKit (Tomas)",
@@ -69,7 +102,7 @@ export const events: EventType[] = [
69102
},
70103
{
71104
id: "workshop2",
72-
name: "Notion for Developers (Mon)",
105+
name: "Notion 101: A Beginner's Guide (Mon)",
73106
type: "workshop",
74107
timeString: "6:00 - 7:00 PM",
75108
location: "TBD",
@@ -78,17 +111,6 @@ export const events: EventType[] = [
78111
endTime: 6,
79112
row: 3.8
80113
},
81-
{
82-
id: "food1",
83-
name: "Dinner",
84-
type: "food",
85-
date: 0,
86-
timeString: "5:30 - 7:30 PM",
87-
location: "TBD",
88-
startTime: 4.5,
89-
endTime: 6.5,
90-
row: 1.2
91-
},
92114
{
93115
id: "workshop3",
94116
name: "Intro to AWS (Daniel)",
@@ -98,7 +120,7 @@ export const events: EventType[] = [
98120
date: 0,
99121
startTime: 6,
100122
endTime: 7,
101-
row: 6.0
123+
row: 5.2
102124
},
103125
{
104126
id: "workshop4",
@@ -109,7 +131,7 @@ export const events: EventType[] = [
109131
date: 0,
110132
startTime: 7,
111133
endTime: 8,
112-
row: 4.5
134+
row: 3.8
113135
},
114136
{
115137
id: "workshop5",
@@ -120,7 +142,7 @@ export const events: EventType[] = [
120142
date: 0,
121143
startTime: 7,
122144
endTime: 8,
123-
row: 3
145+
row: 2.5
124146
},
125147
{
126148
id: "event11",
@@ -177,6 +199,28 @@ export const events: EventType[] = [
177199
endTime: 21.5,
178200
row: 2.5
179201
},
202+
{
203+
id: "mentorship3",
204+
name: "Mentorship",
205+
type: "mentorship",
206+
date: 1,
207+
timeString: "9:00 AM - 3:00 PM",
208+
location: "TBD",
209+
startTime: 20,
210+
endTime: 23,
211+
row: 5.0
212+
},
213+
{
214+
id: "mentorship4",
215+
name: "Mentorship",
216+
type: "mentorship",
217+
date: 0,
218+
timeString: "9:00 AM - 3:00 PM",
219+
location: "TBD",
220+
startTime: 23,
221+
endTime: 26,
222+
row: 5.0
223+
},
180224
{
181225
id: "event13",
182226
name: "Lunch",

src/types/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export interface EventType {
140140
location: string;
141141
endTime: number;
142142
row: number;
143-
type: string;
143+
type: "event" | "workshop" | "food" | "activity" | "mentorship";
144144
}
145145

146146
export interface TrackType {

0 commit comments

Comments
 (0)