Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
fix: hackathon (#727)
Browse files Browse the repository at this point in the history
* Added a Feature

* Deleated /idea file

* Added Devops Playlist link to the links that does not have video yet

* feat: Metabob Hackathon content

* Update: Added hackathon title

* feat: prizes and judges in metabob hackathon

* Revert "Added a Feature"

This reverts commit 76e5550.

* Revert "Deleated /idea file"

This reverts commit 54b09e4.

* Revert "Revert "Deleated /idea file""

This reverts commit 2c9ed13.

* remove: metabob content

* fix: import sort

* remove: backup file

---------

Co-authored-by: Aman <aman.mishra.2005@gmail.com>
Co-authored-by: Siddhant Khisty <siddhantkhisty@gmail.com>
  • Loading branch information
3 people authored Aug 5, 2023
1 parent ff429d2 commit 66c23c1
Show file tree
Hide file tree
Showing 8 changed files with 181 additions and 181 deletions.
16 changes: 13 additions & 3 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from '@/content/courses';
import { CoursesPageContent } from '@/content/courses/CoursesPageContent';
import OpenSourcePageContent from '@/content/courses/opensource';
import NapptiveHackathon from '@/content/Hackathons/napptive';
import { hackathonDataList } from '@/content/Hackathons';
import { MeetupPageContent } from '@/content/Meetup';
import Delhi2023 from '@/content/Meetup/delhi-may-2023';
import { OpensourcePageContent } from '@/content/opensource';
Expand Down Expand Up @@ -101,11 +101,21 @@ const App = () => {

{/* Hackathon */}
<Route exact path='/events/hackathons' element={<HackathonsPage />} />
<Route
{hackathonDataList
.filter((hack) => hack.hasContent)
.map((hack) => (
<Route
key={hack.content.title}
exact
path={`/events/hackathons/${hack.content.slug}`}
element={<PerticularhackathonPage content={hack.content} />}
/>
))}
{/* <Route
exact
path={`/events/hackathons/${NapptiveHackathon.slug}`}
element={<PerticularhackathonPage content={NapptiveHackathon} />}
/>
/> */}

{/* Meetup */}
<Route
Expand Down
18 changes: 17 additions & 1 deletion src/components/PageComp/HackathonsPage/OngoingEvents.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
import { hackathonDataList } from '@/content/Hackathons';

import DetailCard from '@/components/Cards/DetailCard';

const OngoingEvents = () => {
return (
<section id='ongoing'>
<div className='layout py-20'>
<h1 className='h1'> Ongoing events </h1>
<hr className='styled-hr my-6' />
<div className='grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3'>
<p>There no upcoming hackathons right now</p>
{hackathonDataList.filter(
(hack) => new Date().getTime() < new Date(hack.date).getTime()
).length > 0 ? (
hackathonDataList
.filter(
(web) => new Date().getTime() < new Date(web.date).getTime()
)
.map((hack) => {
return <DetailCard {...hack} key={hack.image} />;
})
) : (
<p>There no upcoming hackathons right now</p>
)}
</div>
</div>
</section>
Expand Down
49 changes: 14 additions & 35 deletions src/components/PageComp/HackathonsPage/PastEvents.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import PastEvent2 from 'assets/events/past-event-2.jpeg';
import PastEvent8 from 'assets/events/past-event-8.jpeg';
import NapptiveBanner from 'assets/hackathon/napptive/Banner.jpg';
import { hackathonDataList } from '@/content/Hackathons';

import DetailCard from '@/components/Cards/DetailCard';

Expand All @@ -11,42 +9,23 @@ const PastEvents = () => {
<h1 className='h1'> Past events </h1>
<hr className='styled-hr my-6' />
<div className='grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3'>
{eventsData.map((event) => (
<DetailCard {...event} key={event.image} />
))}
{hackathonDataList.filter(
(hack) => new Date().getTime() > new Date(hack.date).getTime()
).length > 0 ? (
hackathonDataList
.filter(
(web) => new Date().getTime() > new Date(web.date).getTime()
)
.map((hack) => {
return <DetailCard {...hack} key={hack.image} />;
})
) : (
<p>There no past hackathons right now</p>
)}
</div>
</div>
</section>
);
};

export default PastEvents;

// Data Section

const eventsData = [
{
title: 'Napptive hackathon',
description:
'Do you want to learn new skills, discover how to build and deploy cloud native apps and meet like-minded people? Find this and much more by participating in our hackathon!',
image: NapptiveBanner,
url: '/events/hackathons/napptive',
btnText: 'Learn more',
},
{
title: 'Stream hackathon',
description:
'WeMakeDevs <> Stream Hackathon : Hey if you are looking to learn new skills, meet interesting people, and push yourself to create something truly innovative, then you should definitely taking part in our hackathon!',
image: PastEvent2,
url: 'https://wemakedevs-stream.devpost.com/resources',
btnText: 'Learn more',
},
{
title: 'Cloud Native hackathon',
description:
'Cloud Native Hackathon is an initiative to bring together students, professionals, and even beginners from around the world to innovate and build projects in the domain of DevOps.',
image: PastEvent8,
url: 'https://cloudnativehack21.devpost.com/',
btnText: 'Learn more',
},
];
6 changes: 0 additions & 6 deletions src/components/PageComp/HashnodePage/Tracks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import Special from 'assets/hashnode/Special-Track-2022.png';
import Track1 from 'assets/hashnode/Track-1.png';
import Track2 from 'assets/hashnode/Track-2.png';
import Track3 from 'assets/hashnode/Track-3.png';
// import Track4 from 'assets/hashnode/Track-4.png';

import TrackCard from '@/components/Cards/TrackCard';

Expand Down Expand Up @@ -40,11 +39,6 @@ const hashnodeData = [
'Write a blog on the topic Soft Skills, share about some soft skills you have developed, and what techniques you used',
image: Track3,
},
//{
// description:
// 'Write a blog sharing some of your takeaways from hackathons. If you want to participate in one, check out AWS Amplify by Hashnode',
// image: Track4,
//},
{
description:
"It is important to look back at things you have acheived to stay motivated to do even more amazing things. Half of 2023 is over, and now it's time to look back at all your acomplishments so far. Write about them and you can win a Mechanical Keyboard.",
Expand Down
70 changes: 70 additions & 0 deletions src/content/Hackathons/ParticularHackathonPageContent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
export const ParticularHackthonPageFAQ = [
{
id: 'FAQ1',
question: 'What is a hackathon?',
answer:
'A hackathon is a collaborative coding competition where programmers, designers, and developers compete for monetary bonuses for creating innovative solutions. It is a mix of a celebration and an all-night struggle against the clock and the opposition.',
},
{
id: 'FAQ2',
question: 'Why would someone participate in a hackathon?',
answer:
'People take part in hackathons for a variety of reasons, including the challenge, the opportunity for creative expression, the chance to collaboration, networking opportunities, swag, and much more.',
},
{
id: 'FAQ3',
question: 'Is the event open to all ages?',
answer:
'You can participate in this hackathon as long as you are of legal age in your respective country, or have permission for a parent or guardian in case you are a minor.',
},
{
id: 'FAQ4',
question: 'What is the mode of this hackathon?',
answer:
'This is a virtual hackathon, so you can create hacks from the comfort of your home, or anywhere in the world.',
},
{
id: 'FAQ5',
question: 'Do we sign up as individuals or as a team?',
answer:
'You can either participate as a individual or with a team of 1-4 folks i.e the maximum strength of the team should not exceed 4',
},
{
id: 'FAQ6',
question: 'Is it a paid event?',
answer:
'This is a completely free-to-join event i.e anyone above the legal age can participate in the event for free.',
},
];

const HackthonPageContent = {
header: [
{
name: 'About',
href: '#about',
},
{
name: 'Tracks',
href: '#tracks',
},
{
name: 'Judges',
href: '#judges',
},
{
name: 'Criteria',
href: '#criteria',
},
{
name: 'Rules',
href: '#rules',
},
],
CTA: {
name: 'Register',
href: '#register',
},
faq: ParticularHackthonPageFAQ,
};

export default HackthonPageContent;
94 changes: 31 additions & 63 deletions src/content/Hackathons/index.js
Original file line number Diff line number Diff line change
@@ -1,70 +1,38 @@
export const ParticularHackthonPageFAQ = [
{
id: 'FAQ1',
question: 'What is a hackathon?',
answer:
'A hackathon is a collaborative coding competition where programmers, designers, and developers compete for monetary bonuses for creating innovative solutions. It is a mix of a celebration and an all-night struggle against the clock and the opposition.',
},
{
id: 'FAQ2',
question: 'Why would someone participate in a hackathon?',
answer:
'People take part in hackathons for a variety of reasons, including the challenge, the opportunity for creative expression, the chance to collaboration, networking opportunities, swag, and much more.',
},
{
id: 'FAQ3',
question: 'Is the event open to all ages?',
answer:
'You can participate in this hackathon as long as you are of legal age in your respective country, or have permission for a parent or guardian in case you are a minor.',
},
import PastEvent2 from 'assets/events/past-event-2.jpeg';
import PastEvent8 from 'assets/events/past-event-8.jpeg';
import NapptiveBanner from 'assets/hackathon/napptive/Banner.jpg';

import NapptiveHackathonContent from '@/content/Hackathons/napptive';

export const hackathonDataList = [
{
id: 'FAQ4',
question: 'What is the mode of this hackathon?',
answer:
'This is a virtual hackathon, so you can create hacks from the comfort of your home, or anywhere in the world.',
title: NapptiveHackathonContent.title,
description: NapptiveHackathonContent.description,
image: NapptiveBanner,
url: `/events/hackathons/${NapptiveHackathonContent.slug}`,
btnText: 'Learn more',
content: NapptiveHackathonContent,
hasContent: true,
date: NapptiveHackathonContent.to,
},
{
id: 'FAQ5',
question: 'Do we sign up as individuals or as a team?',
answer:
'You can either participate as a individual or with a team of 1-4 folks i.e the maximum strength of the team should not exceed 4',
title: 'Stream hackathon',
description:
'WeMakeDevs <> Stream Hackathon : Hey if you are looking to learn new skills, meet interesting people, and push yourself to create something truly innovative, then you should definitely taking part in our hackathon!',
image: PastEvent2,
url: 'https://wemakedevs-stream.devpost.com/resources',
btnText: 'Learn more',
hasContent: false,
date: 'Sun, 18 Dec 2022 14:30:00 GMT',
},
{
id: 'FAQ6',
question: 'Is it a paid event?',
answer:
'This is a completely free-to-join event i.e anyone above the legal age can participate in the event for free.',
title: 'Cloud Native hackathon',
description:
'Cloud Native Hackathon is an initiative to bring together students, professionals, and even beginners from around the world to innovate and build projects in the domain of DevOps.',
image: PastEvent8,
url: 'https://cloudnativehack21.devpost.com/',
btnText: 'Learn more',
hasContent: false,
date: 'Mon, 12 Dec 2022 14:30:00 GMT',
},
];

const HackthonPageContent = {
header: [
{
name: 'About',
href: '#about',
},
{
name: 'Tracks',
href: '#tracks',
},
{
name: 'Judges',
href: '#judges',
},
{
name: 'Criteria',
href: '#criteria',
},
{
name: 'Rules',
href: '#rules',
},
],
CTA: {
name: 'Register',
href: '#register',
},
faq: ParticularHackthonPageFAQ,
};

export default HackthonPageContent;
16 changes: 12 additions & 4 deletions src/content/Hackathons/napptive.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
import HackthonPageContent from '@/content/Hackathons';
import HackthonPageContent from '@/content/Hackathons/ParticularHackathonPageContent';

import Steve from '@/assets/hackathon/napptive/Steve.jpeg';
import HeroImg from '@/assets/hackathon/napptive/theme.png';

const NapptiveHackathon = {
const NapptiveHackathonContent = {
header: HackthonPageContent.header,
faq: HackthonPageContent.faq,
CTA: HackthonPageContent.CTA,
slug: 'napptive',
title: 'Build cloud-native apps',
description: 'Powered by Napptive',
by: 'Powered by Napptive',
description:
'Do you want to learn new skills, discover how to build and deploy cloud native apps and meet like-minded people? Find this and much more by participating in our hackathon!',
hero: HeroImg,
videoUrl: 'https://www.youtube.com/embed/DwEXh-wq1TI',
liveUrl: 'https://www.youtube.com/watch?v=sST7JGLq2as',
about: [
'Do you want to learn new skills, discover how to build and deploy cloud native apps and meet like-minded people? Find this and much more and take part in our hackathon!',
'If you want to learn new skills, discover how to build and deploy cloud native apps and meet like-minded people, this is your chance to collaborate with other talented developers and work together to build',
'You will have access to a cutting-edge platform, based on the most advanced cloud-native technology and get the opportunity to learn from experts and gain valuable experience working on real applications.',
'The WeMakeDevs <> Napptive Hackathon is the right place for you if you are a passionate, hands-on dev. The will to push yourself to new limits and learn along the way is all you need to begin!',
],
rules: [
'The theme is open-ended, but using Napptive is mandatory. Submissions made without using Napptive will NOT be considered.',
'You can submit to as many prize categories as you want.',
Expand Down Expand Up @@ -193,4 +201,4 @@ const NapptiveHackathon = {
to: 'Sun, 16 Apr 2023 14:30:00 GMT',
winnerAnnouc: 'Mon, 17 Apr 2023 11:30:00 GMT',
};
export default NapptiveHackathon;
export default NapptiveHackathonContent;
Loading

0 comments on commit 66c23c1

Please sign in to comment.