-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathHackathon.ts
More file actions
330 lines (322 loc) · 10 KB
/
Hackathon.ts
File metadata and controls
330 lines (322 loc) · 10 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
// Hackathon data types and mock data generator
export interface Agenda {
summary: string;
name: string;
type: 'workshop' | 'presentation' | 'coding' | 'break' | 'ceremony';
startedAt: Date;
endedAt: Date;
}
export interface Person {
name: string;
avatar: string;
gender: 'male' | 'female' | 'other';
age: number;
address: string;
organizations: string[];
skills: string[];
githubLink: string;
githubAccount: string;
createdBy: string;
}
export interface Organization {
name: string;
logo: string;
link: string;
members: string[];
prizes: string[];
}
export interface Prize {
name: string;
image: string;
price: number;
amount: number;
level: 'gold' | 'silver' | 'bronze' | 'special';
sponsor: string;
}
export interface Template {
name: string;
summary: string;
sourceLink: string;
previewLink: string;
}
export interface Project {
name: string;
summary: string;
createdBy: string;
group: string[];
members: string[];
products: string[];
score: number;
}
export interface Hackathon {
id: string;
title: string;
description: string;
startDate: Date;
endDate: Date;
location: string;
agenda: Agenda[];
people: Person[];
organizations: Organization[];
prizes: Prize[];
templates: Template[];
projects: Project[];
}
// Mock data generator
export function generateMockHackathon(id: string): Hackathon {
return {
id,
title: 'Open Source Innovation Hackathon 2026',
description:
'A 48-hour coding marathon bringing together developers, designers, and innovators to build the future of open source software.',
startDate: new Date('2026-03-15T09:00:00'),
endDate: new Date('2026-03-17T18:00:00'),
location: 'Virtual & On-site (Beijing)',
agenda: [
{
summary: 'Welcome participants and introduce the hackathon theme',
name: 'Opening Ceremony',
type: 'ceremony',
startedAt: new Date('2026-03-15T09:00:00'),
endedAt: new Date('2026-03-15T10:00:00'),
},
{
summary: 'Introduction to modern web development frameworks',
name: 'Web Development Workshop',
type: 'workshop',
startedAt: new Date('2026-03-15T10:30:00'),
endedAt: new Date('2026-03-15T12:00:00'),
},
{
summary: 'Lunch break and networking',
name: 'Lunch & Networking',
type: 'break',
startedAt: new Date('2026-03-15T12:00:00'),
endedAt: new Date('2026-03-15T13:30:00'),
},
{
summary: 'Teams start working on their projects',
name: 'Coding Session - Day 1',
type: 'coding',
startedAt: new Date('2026-03-15T13:30:00'),
endedAt: new Date('2026-03-15T22:00:00'),
},
{
summary: 'Continue development and team collaboration',
name: 'Coding Session - Day 2',
type: 'coding',
startedAt: new Date('2026-03-16T09:00:00'),
endedAt: new Date('2026-03-16T22:00:00'),
},
{
summary: 'Final sprint for project completion',
name: 'Coding Session - Day 3',
type: 'coding',
startedAt: new Date('2026-03-17T09:00:00'),
endedAt: new Date('2026-03-17T14:00:00'),
},
{
summary: 'Teams present their projects to judges',
name: 'Project Presentations',
type: 'presentation',
startedAt: new Date('2026-03-17T14:30:00'),
endedAt: new Date('2026-03-17T17:00:00'),
},
{
summary: 'Announce winners and distribute prizes',
name: 'Awards Ceremony',
type: 'ceremony',
startedAt: new Date('2026-03-17T17:00:00'),
endedAt: new Date('2026-03-17T18:00:00'),
},
],
people: [
{
name: 'Li Wei',
avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=liwei',
gender: 'male',
age: 28,
address: 'Beijing, China',
organizations: ['Tech Innovators', 'Open Source Alliance'],
skills: ['React', 'Node.js', 'TypeScript', 'GraphQL'],
githubLink: 'https://github.com/liwei-dev',
githubAccount: 'liwei-dev',
createdBy: 'admin',
},
{
name: 'Zhang Mei',
avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=zhangmei',
gender: 'female',
age: 26,
address: 'Shanghai, China',
organizations: ['Cloud Computing Society'],
skills: ['Python', 'Django', 'Machine Learning', 'Docker'],
githubLink: 'https://github.com/zhangmei-ml',
githubAccount: 'zhangmei-ml',
createdBy: 'admin',
},
{
name: 'Wang Jun',
avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=wangjun',
gender: 'male',
age: 30,
address: 'Shenzhen, China',
organizations: ['DevOps Guild', 'Open Source Alliance'],
skills: ['Kubernetes', 'Go', 'AWS', 'CI/CD'],
githubLink: 'https://github.com/wangjun-ops',
githubAccount: 'wangjun-ops',
createdBy: 'admin',
},
{
name: 'Chen Xiao',
avatar: 'https://api.dicebear.com/7.x/avataaars/svg?seed=chenxiao',
gender: 'female',
age: 24,
address: 'Hangzhou, China',
organizations: ['UI/UX Designers Hub'],
skills: ['Figma', 'React', 'CSS', 'Design Systems'],
githubLink: 'https://github.com/chenxiao-design',
githubAccount: 'chenxiao-design',
createdBy: 'admin',
},
],
organizations: [
{
name: 'Tech Innovators',
logo: 'https://api.dicebear.com/7.x/identicon/svg?seed=techinnovators',
link: 'https://techinnovators.example.com',
members: ['Li Wei', 'Wang Jun'],
prizes: ['Best Innovation Award'],
},
{
name: 'Cloud Computing Society',
logo: 'https://api.dicebear.com/7.x/identicon/svg?seed=cloudcomputing',
link: 'https://cloudcomputing.example.com',
members: ['Zhang Mei'],
prizes: ['Best Cloud Solution'],
},
{
name: 'Open Source Alliance',
logo: 'https://api.dicebear.com/7.x/identicon/svg?seed=opensource',
link: 'https://opensource.example.com',
members: ['Li Wei', 'Wang Jun'],
prizes: ['Community Choice Award', 'Best Open Source Project'],
},
{
name: 'UI/UX Designers Hub',
logo: 'https://api.dicebear.com/7.x/identicon/svg?seed=uiuxhub',
link: 'https://uiuxhub.example.com',
members: ['Chen Xiao'],
prizes: ['Best Design Award'],
},
],
prizes: [
{
name: 'Best Innovation Award',
image: 'https://api.dicebear.com/7.x/shapes/svg?seed=gold',
price: 10000,
amount: 1,
level: 'gold',
sponsor: 'Tech Innovators',
},
{
name: 'Best Cloud Solution',
image: 'https://api.dicebear.com/7.x/shapes/svg?seed=silver',
price: 7000,
amount: 1,
level: 'silver',
sponsor: 'Cloud Computing Society',
},
{
name: 'Best Design Award',
image: 'https://api.dicebear.com/7.x/shapes/svg?seed=bronze',
price: 5000,
amount: 1,
level: 'bronze',
sponsor: 'UI/UX Designers Hub',
},
{
name: 'Community Choice Award',
image: 'https://api.dicebear.com/7.x/shapes/svg?seed=special1',
price: 3000,
amount: 2,
level: 'special',
sponsor: 'Open Source Alliance',
},
{
name: 'Best Open Source Project',
image: 'https://api.dicebear.com/7.x/shapes/svg?seed=special2',
price: 5000,
amount: 1,
level: 'special',
sponsor: 'Open Source Alliance',
},
],
templates: [
{
name: 'React TypeScript Starter',
summary: 'A modern React template with TypeScript, ESLint, and Prettier pre-configured',
sourceLink: 'https://github.com/templates/react-typescript-starter',
previewLink: 'https://react-ts-starter.demo.com',
},
{
name: 'Next.js Full-stack Template',
summary: 'Complete Next.js setup with API routes, authentication, and database integration',
sourceLink: 'https://github.com/templates/nextjs-fullstack',
previewLink: 'https://nextjs-fullstack.demo.com',
},
{
name: 'Python FastAPI Starter',
summary: 'FastAPI template with PostgreSQL, Docker, and comprehensive testing setup',
sourceLink: 'https://github.com/templates/fastapi-starter',
previewLink: 'https://fastapi-starter.demo.com',
},
{
name: 'Kubernetes Microservices',
summary: 'Production-ready microservices architecture with Kubernetes manifests',
sourceLink: 'https://github.com/templates/k8s-microservices',
previewLink: 'https://k8s-microservices.demo.com',
},
],
projects: [
{
name: 'EcoTracker',
summary:
'A mobile app for tracking personal carbon footprint and suggesting eco-friendly alternatives',
createdBy: 'Li Wei',
group: ['Team Green'],
members: ['Li Wei', 'Chen Xiao'],
products: ['Mobile App', 'API Backend'],
score: 95,
},
{
name: 'CodeMentor AI',
summary:
'AI-powered code review assistant that provides real-time suggestions and best practices',
createdBy: 'Zhang Mei',
group: ['AI Innovators'],
members: ['Zhang Mei'],
products: ['VS Code Extension', 'Web Dashboard'],
score: 92,
},
{
name: 'CloudOps Dashboard',
summary: 'Unified monitoring dashboard for multi-cloud infrastructure management',
createdBy: 'Wang Jun',
group: ['DevOps Masters'],
members: ['Wang Jun'],
products: ['Web Application', 'CLI Tool'],
score: 88,
},
{
name: 'DesignSync',
summary: 'Collaborative design tool that syncs Figma designs with development code',
createdBy: 'Chen Xiao',
group: ['Design Tech'],
members: ['Chen Xiao', 'Li Wei'],
products: ['Figma Plugin', 'React Component Library'],
score: 90,
},
],
};
}