From b5ad468b2dcc6ca72b333771645e84ba85e55d92 Mon Sep 17 00:00:00 2001 From: Janvi <127668005+inkerton@users.noreply.github.com> Date: Fri, 25 Oct 2024 21:05:10 +0000 Subject: [PATCH] added details page --- src/app/(pages)/Hackathon/[id]/page.jsx | 265 ++++++++++++++++++++++++ src/app/(pages)/Hackathon/page.jsx | 12 ++ 2 files changed, 277 insertions(+) create mode 100644 src/app/(pages)/Hackathon/[id]/page.jsx diff --git a/src/app/(pages)/Hackathon/[id]/page.jsx b/src/app/(pages)/Hackathon/[id]/page.jsx new file mode 100644 index 0000000..310b37f --- /dev/null +++ b/src/app/(pages)/Hackathon/[id]/page.jsx @@ -0,0 +1,265 @@ +'use client' +import { hackathonProjects } from "@/lib/Hackathon"; +import { motion } from "framer-motion"; +import { CircleOff, Code, Contact, Cross, LandPlot, Ruler, Scale, TentTree, Timer } from "lucide-react"; +import { useRouter } from "next/navigation"; + + +export default function SingleHackathon({ params }) { + const router = useRouter(); + const { title } = params.id; + + const project = title + ? hackathonProjects.find((project) => project.title === title) + : null; + + // if (!project) { + // return

Loading or Project not found

; // Render loading state or error message + // } + return ( + <> + {/*
+

{project.title}

+

{project.description}

+
*/} +
+ + {title || 'Hackathon Title'} + + + + Girl Hackathon is a program for women students in computer science and allied courses across India. + +
+ +
+
+
+

+ Lorem, ipsum dolor sit amet consectetur adipisicing elit +

+ +

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Et, egestas tempus tellus etiam + sed. Quam a scelerisque amet ullamcorper eu enim et fermentum, augue. Aliquet amet volutpat + quisque ut interdum tincidunt duis. +

+ +
+ + Get Started Today + +
+
+
+ + +
+ +
+

Tracks

+

Here is a few of the awesome Tracks you can select.

+
+
+
+
+ +
+
+

DAPP Development

+
+

------------

+

A decentralized application (dapp) is an application built on a + decentralized network that combines a smart contract and a frontend user interface.

+
+
+
+
+
+ +
+
+

Web 3.0 Development

+
+

------------

+

Web 3.0 is the third generation of Internet services that will + focus on understanding and analyzing data to provide a semantic web.

+
+
+
+
+
+
+
+ +
+
+

Open Ideas

+
+

------------

+

You may have any open ideas You wish to showcase to us or apply to implementation during the hackathon.

+
+
+
+
+
+ +
+
+

Hacking / RE

+
+

------------

+

A security hacker is someone who explores methods for breaching + defenses and exploiting weaknesses in a computer system or network.

+
+
+
+
+
+ +
+
+

Bot/Script Development

+
+

------------

+

Bot development frameworks were created as advanced software tools + that eliminate a large amount of manual work and accelerate the development process.

+
+
+
+
+
+
+ +
+
+
+ +
+

+ Rules and Regulations +

+

+ Guidelines for All Participants +

+

+ Please read and adhere to the following rules and regulations to ensure a smooth and fair experience for everyone. +

+
+ +
+
+
+
+
+ +
+

Eligibility

+
+
+ All participants must be enrolled in an academic institution and meet the criteria outlined in the hackathon details. +
+
+
+
+
+ +
+

Team Formation

+
+
+ Teams can consist of up to four members, and no participant may be part of more than one team. +
+
+
+
+
+ +
+

Code of Conduct

+
+
+ All participants must adhere to respectful behavior. Discriminatory or inappropriate conduct will lead to disqualification. +
+
+
+
+
+ +
+

Intellectual Property

+
+
+ All projects submitted must be original work. Plagiarism or use of unauthorized resources will result in disqualification. +
+
+
+
+
+ +
+

Submission Deadline

+
+
+ All submissions must be completed by the specified deadline. Late entries will not be accepted. +
+
+
+
+
+ +
+

Judging Criteria

+
+
+ Projects will be judged based on innovation, functionality, design, and presentation. +
+
+
+
+
+ +
+

Support and Queries

+
+
+ Any questions or requests for assistance should be directed to the event organizers. +
+
+
+
+
+ +
+

Disqualification

+
+
+ Any breach of the rules may lead to immediate disqualification from the hackathon. +
+
+
+
+
+
+
+ + + ); +} \ No newline at end of file diff --git a/src/app/(pages)/Hackathon/page.jsx b/src/app/(pages)/Hackathon/page.jsx index 4b84412..cabdb83 100644 --- a/src/app/(pages)/Hackathon/page.jsx +++ b/src/app/(pages)/Hackathon/page.jsx @@ -3,6 +3,7 @@ import React, { useState } from 'react'; import Card from './Card.jsx'; import { hackathonProjects } from '../../../lib/Hackathon'; import { motion } from 'framer-motion'; +import Link from 'next/link.js'; function ProjectsPage() { const [searchQuery, setSearchQuery] = useState(''); @@ -60,12 +61,23 @@ function ProjectsPage() { animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.6, delay: index * 0.2 }} > + + )) ) : (