Skip to content

Commit

Permalink
fix: added data files
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatmittal61 committed Aug 21, 2023
1 parent 383b19a commit 3e4e407
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts

# sample data files
/data/*.json
/data/*.js
/data/*.ts
/data/*.tsx
# # sample data files
# /data/*.json
# /data/*.js
# /data/*.ts
# /data/*.tsx
69 changes: 69 additions & 0 deletions data/events.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
import { IEvent } from "@/types/Event";

const teams: IEvent[] = [
{
_id: "5f8d0b8f0b3a3e1d7c8e6b4a",
name: "Prog-O-Thon",
description:
"A 48-hour hackathon for programmers, developers and designers to build innovative solutions to real-world problems. Come and join us for a weekend of fun, learning and coding!",
date: "2020-10-23T00:00:00.000Z",
image: "https://images.prismic.io/worldcoin-company-website/cfb5aaac-7497-4bb8-9890-ac4235a57520_what-is-a-hackathon%402x.jpg",
teamSize: 3,
},
{
_id: "5f8d0b8f0b3a3e1d7c8e6b4b",
name: "Coderation",
description:
"A competitive programming contest for programmers, developers and designers to build innovative solutions to real-world problems. Bring out the best in you and win exciting prizes!",
date: "2020-10-23T00:00:00.000Z",
image: "https://sunshinetutors.in/wp-content/uploads/2021/11/how-to-plan-a-programming-competition-header@2x.png",
teamSize: 1,
},
{
_id: "5f8d0b8f0b3a3e1d7c8e6b4c",
name: "Coders Face-Off",
description:
"A design contest for programmers, create UI clones by using your creativity and win exciting prizes!",
date: "2020-10-23T00:00:00.000Z",
image: "https://sprinkdigital.com/blog/wp-content/uploads/2021/02/UI-UX.png",
teamSize: 2,
},
{
_id: "5f8d0b8f0b3a3e1d7c8e6b4d",
name: "Circuit Hunt",
description:
"A circuit design contest for programmers, create circuit designs by using your creativity and win exciting prizes!",
date: "2020-10-23T00:00:00.000Z",
image: "https://e0.pxfuel.com/wallpapers/2/511/desktop-wallpaper-abstract-technical-ultra-tech.jpg",
teamSize: 2,
},
{
_id: "5f8d0b8f0b3a3e1d7c8e6b4e",
name: "Treasure Hunt",
description:
"A treasure hunt contest in the campus. Find the treasure and get a chance to win exciting prizes!",
date: "2020-10-23T00:00:00.000Z",
image: "https://kukoolala.com/wp-content/uploads/2019/09/treasure-hunt-2.jpg",
teamSize: 5,
},
{
_id: "5f8d0b8f0b3a3e1d7c8e6b4f",
name: "Code Relay",
description:
"A relay coding contest for programmers, participate in a quest to solve the problems as fast as you can and with the least number of lines of code!",
date: "2020-10-23T00:00:00.000Z",
image: "https://repository-images.githubusercontent.com/301082314/ebec0600-0656-11eb-9e50-491c77e8d3b9",
teamSize: 4,
},
{
_id: "5f8d0b8f0b3a3e1d7c8e6b50",
name: "Soldier's Quest",
description:
"A fast paced coding contest for programmers, participate in a quest to solve the problems as fast as you can and with the least number of lines of code!",
date: "2020-10-23T00:00:00.000Z",
image: "https://www.wallpapertip.com/wmimgs/9-98912_captain-america-new-art-4k-captain-america-wallpaper.jpg",
teamSize: 4,
},
];

export default teams;
Empty file added data/teams.ts
Empty file.
28 changes: 28 additions & 0 deletions data/users.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { USER_ROLES } from "@/constants/enum";
import { IUser } from "@/types/auth";

const users: IUser[] = [
{
_id: "1",
name: "John Doe",
email: "john@outlook.com",
role: USER_ROLES.USER,
avatar: "https://github.com/john.png",
},
{
_id: "2",
name: "Jane Doe",
email: "jjane@gmail.com",
role: USER_ROLES.USER,
avatar: "https://github.com/jane.png",
},
{
_id: "3",
name: "Admin",
email: "admin@gmail.com",
role: USER_ROLES.ADMIN,
avatar: "https://github.com/admin.png",
},
];

export default users;

0 comments on commit 3e4e407

Please sign in to comment.