diff --git a/.gitignore b/.gitignore index 3ce26b4..f51180e 100644 --- a/.gitignore +++ b/.gitignore @@ -38,8 +38,8 @@ yarn-error.log* *.tsbuildinfo next-env.d.ts -# sample data files -/data/*.json -/data/*.js -/data/*.ts -/data/*.tsx \ No newline at end of file +# # sample data files +# /data/*.json +# /data/*.js +# /data/*.ts +# /data/*.tsx \ No newline at end of file diff --git a/data/events.ts b/data/events.ts new file mode 100644 index 0000000..226ef96 --- /dev/null +++ b/data/events.ts @@ -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; diff --git a/data/teams.ts b/data/teams.ts new file mode 100644 index 0000000..e69de29 diff --git a/data/users.ts b/data/users.ts new file mode 100644 index 0000000..7ec2815 --- /dev/null +++ b/data/users.ts @@ -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;