diff --git a/.gitignore b/.gitignore index 26fce56..61c388c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,28 +1,44 @@ -# Logs -logs -*.log +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/versions + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug npm-debug.log* yarn-debug.log* yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -*.next -dist -dist-ssr -*.local - -# Editor directories and files -.vscode/* -!.vscode/extensions.json -.idea -.DS_Store -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? - -# Environment variables -.env +.pnpm-debug.log* + +# env files (can opt-in for committing if needed) +.env* + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts + +# misc +.vscode diff --git a/README.md b/README.md index 0dc9ea2..15d7dd8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). +## About HackByte 3.0 + + ## Getting Started @@ -6,31 +8,10 @@ First, run the development server: ```bash npm run dev -# or -yarn dev -# or -pnpm dev -# or -bun dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. -You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file. - -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. +You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. +This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. diff --git a/app/api/hackbyte4/route.ts b/app/api/hackbyte4/route.ts new file mode 100644 index 0000000..079a615 --- /dev/null +++ b/app/api/hackbyte4/route.ts @@ -0,0 +1,16 @@ +import axios from "axios" + +export async function POST(request: Request) { + const origin = request.headers.get("origin") + if (origin !== process.env.NEXT_PUBLIC_ORIGIN_URL) { + return new Response("Origin not allowed", { status: 403 }) + } + const body = await request.json() + console.log(body.body) + + const res = await axios.post(process.env.EXCEL_DOC_LINK as string, body.body) + console.log(res.data) + + const result = await res.data + return new Response(JSON.stringify(result), { status: res.status }) +} diff --git a/app/chat/page.tsx b/app/chat/page.tsx new file mode 100644 index 0000000..31281d4 --- /dev/null +++ b/app/chat/page.tsx @@ -0,0 +1,7 @@ +import { redirect } from 'next/navigation'; + +const ChatPage = () => { + redirect('https://discord.gg/Ugd5Yq4xhc'); +}; + +export default ChatPage; diff --git a/app/clash_grotesk.css b/app/clash_grotesk.css deleted file mode 100644 index 064f3e4..0000000 --- a/app/clash_grotesk.css +++ /dev/null @@ -1,91 +0,0 @@ -/* Clash Grotesk */ -@font-face { - font-family: "Clash Grotesk"; - src: url("//cdn.fontshare.com/wf/5TRO2J3HJNIQODLQ4CTSMGSLAWSE5YUY/GHXENXHZCDIOE5E73364PNNASRNO3JVW/GLZTRU2GIKPV5HYT3E6HDLWOXAWPNZDV.woff2") - format("woff2"), - url("//cdn.fontshare.com/wf/5TRO2J3HJNIQODLQ4CTSMGSLAWSE5YUY/GHXENXHZCDIOE5E73364PNNASRNO3JVW/GLZTRU2GIKPV5HYT3E6HDLWOXAWPNZDV.woff") - format("woff"), - url("//cdn.fontshare.com/wf/5TRO2J3HJNIQODLQ4CTSMGSLAWSE5YUY/GHXENXHZCDIOE5E73364PNNASRNO3JVW/GLZTRU2GIKPV5HYT3E6HDLWOXAWPNZDV.ttf") - format("truetype"); - font-weight: 200 700; - font-display: swap; - font-style: normal; -} - -@font-face { - font-family: "Clash Grotesk"; - src: url("//cdn.fontshare.com/wf/4LBWQBEAT7WMBLPYHDTSGFMVYM7YP52X/7KPUND2QF7YEOZXDNBOHQRJKQWHIG2TW/O7I6PUTWFICZ67CVKIGGMX2EF3RHEAKS.woff2") - format("woff2"), - url("//cdn.fontshare.com/wf/4LBWQBEAT7WMBLPYHDTSGFMVYM7YP52X/7KPUND2QF7YEOZXDNBOHQRJKQWHIG2TW/O7I6PUTWFICZ67CVKIGGMX2EF3RHEAKS.woff") - format("woff"), - url("//cdn.fontshare.com/wf/4LBWQBEAT7WMBLPYHDTSGFMVYM7YP52X/7KPUND2QF7YEOZXDNBOHQRJKQWHIG2TW/O7I6PUTWFICZ67CVKIGGMX2EF3RHEAKS.ttf") - format("truetype"); - font-weight: 200; - font-display: swap; - font-style: normal; -} - -@font-face { - font-family: "Clash Grotesk"; - src: url("//cdn.fontshare.com/wf/SINQ57HHHPFVR2H2M32ZNEFSVLE2LFD2/7IAKEQYNYVZZQGJW7R4Y7C5IZ7XHSFQO/DKSXVIDJANOLWNE4OACLWSGITSUTBGB3.woff2") - format("woff2"), - url("//cdn.fontshare.com/wf/SINQ57HHHPFVR2H2M32ZNEFSVLE2LFD2/7IAKEQYNYVZZQGJW7R4Y7C5IZ7XHSFQO/DKSXVIDJANOLWNE4OACLWSGITSUTBGB3.woff") - format("woff"), - url("//cdn.fontshare.com/wf/SINQ57HHHPFVR2H2M32ZNEFSVLE2LFD2/7IAKEQYNYVZZQGJW7R4Y7C5IZ7XHSFQO/DKSXVIDJANOLWNE4OACLWSGITSUTBGB3.ttf") - format("truetype"); - font-weight: 300; - font-display: swap; - font-style: normal; -} - -@font-face { - font-family: "Clash Grotesk"; - src: url("//cdn.fontshare.com/wf/O462VY6O6FTQCS72XVMTQHXAM4NN5CY3/TWF57ITZORMJ3MEWLQQIVO6BMXIB6FUR/MJQFMMOTEGNXDVM7HBBDTQHTVB2M7Y6G.woff2") - format("woff2"), - url("//cdn.fontshare.com/wf/O462VY6O6FTQCS72XVMTQHXAM4NN5CY3/TWF57ITZORMJ3MEWLQQIVO6BMXIB6FUR/MJQFMMOTEGNXDVM7HBBDTQHTVB2M7Y6G.woff") - format("woff"), - url("//cdn.fontshare.com/wf/O462VY6O6FTQCS72XVMTQHXAM4NN5CY3/TWF57ITZORMJ3MEWLQQIVO6BMXIB6FUR/MJQFMMOTEGNXDVM7HBBDTQHTVB2M7Y6G.ttf") - format("truetype"); - font-weight: 400; - font-display: swap; - font-style: normal; -} - -@font-face { - font-family: "Clash Grotesk"; - src: url("//cdn.fontshare.com/wf/2SAK53YLUN7RMYJU4MYLSBV6SSSJEJZB/RXS4DPGJRKOUFZMF5X5BVUGNNKJT65XZ/DJS4RYGIUYUXJQOHY5VCZPKSTXUSHTSP.woff2") - format("woff2"), - url("//cdn.fontshare.com/wf/2SAK53YLUN7RMYJU4MYLSBV6SSSJEJZB/RXS4DPGJRKOUFZMF5X5BVUGNNKJT65XZ/DJS4RYGIUYUXJQOHY5VCZPKSTXUSHTSP.woff") - format("woff"), - url("//cdn.fontshare.com/wf/2SAK53YLUN7RMYJU4MYLSBV6SSSJEJZB/RXS4DPGJRKOUFZMF5X5BVUGNNKJT65XZ/DJS4RYGIUYUXJQOHY5VCZPKSTXUSHTSP.ttf") - format("truetype"); - font-weight: 500; - font-display: swap; - font-style: normal; -} - -@font-face { - font-family: "Clash Grotesk"; - src: url("//cdn.fontshare.com/wf/MKEEQN57GWBZOSYWCRODNJOOZNPLMAKN/5SPTSZGHEACWWLF34DQ4WAA4OGU6PQIF/KN7DX4F6PXB74R6L2K2Y4NH3CB7FC53Q.woff2") - format("woff2"), - url("//cdn.fontshare.com/wf/MKEEQN57GWBZOSYWCRODNJOOZNPLMAKN/5SPTSZGHEACWWLF34DQ4WAA4OGU6PQIF/KN7DX4F6PXB74R6L2K2Y4NH3CB7FC53Q.woff") - format("woff"), - url("//cdn.fontshare.com/wf/MKEEQN57GWBZOSYWCRODNJOOZNPLMAKN/5SPTSZGHEACWWLF34DQ4WAA4OGU6PQIF/KN7DX4F6PXB74R6L2K2Y4NH3CB7FC53Q.ttf") - format("truetype"); - font-weight: 600; - font-display: swap; - font-style: normal; -} - -@font-face { - font-family: "Clash Grotesk"; - src: url("//cdn.fontshare.com/wf/P6VJ47S3OYMUC7HYSJLTK7PEIK5O2NPQ/TK62VLUWA76PMTK2XWBNDZB7QVXJGYE3/I5W5NEJGYVFUC5I4XOXVET63OE5PSVHJ.woff2") - format("woff2"), - url("//cdn.fontshare.com/wf/P6VJ47S3OYMUC7HYSJLTK7PEIK5O2NPQ/TK62VLUWA76PMTK2XWBNDZB7QVXJGYE3/I5W5NEJGYVFUC5I4XOXVET63OE5PSVHJ.woff") - format("woff"), - url("//cdn.fontshare.com/wf/P6VJ47S3OYMUC7HYSJLTK7PEIK5O2NPQ/TK62VLUWA76PMTK2XWBNDZB7QVXJGYE3/I5W5NEJGYVFUC5I4XOXVET63OE5PSVHJ.ttf") - format("truetype"); - font-weight: 700; - font-display: swap; - font-style: normal; -} diff --git a/app/contact/page.css b/app/contact/page.css deleted file mode 100644 index aafea06..0000000 --- a/app/contact/page.css +++ /dev/null @@ -1,12 +0,0 @@ -.rotatingContainer { - animation: rotateAnimation 8s linear infinite; -} - -@keyframes rotateAnimation { - 0% { - transform: rotate(0deg); - } - 100% { - transform: rotate(360deg); - } -} diff --git a/app/contact/page.jsx b/app/contact/page.jsx index 998db07..27f3fcb 100644 --- a/app/contact/page.jsx +++ b/app/contact/page.jsx @@ -1,9 +1,8 @@ -import Navbar from "@/components/Navbar"; -import TextAnimation from "@/components/TextAnimation"; - -import FooterAnimation from "@/components/FooterAnimation"; -import Footer from "@/components/Footer"; -import "./page.css"; +import { Card } from "@/components/ui/card" +import { Train, Plane, Bus } from "lucide-react" +import Image from "next/image" +import Link from "next/link" +import phoneImg from "@/public/Contact/phone.png" export const metadata = { title: "Contact | HackByte", @@ -16,197 +15,167 @@ export const metadata = { "Connect with us at HackByte! Reach out for assistance, questions, or just to say hello. Find information on reaching IIIT Jabalpur, including travel options.", url: "https://hackbyte.in/contact", images: - "https://res.cloudinary.com/drtmfrghg/image/upload/v1708016443/opengraph-image_vkiopn.jpg", + "https://res.cloudinary.com/dlsqbiwug/image/upload/v1736876616/Frame_463_zdbkgu.png", siteName: "HackByte - IIITDMJ Hackathon", type: "website", locale: "en_US", }, -}; +} -export default function Contact() { +export default function ContactSection() { return ( - <> - -
-
-
-
- -

- Hacker Experience is what we prioritize! Have questions, need - assistance, or just want to connect? Feel free to reach out! -

+
+
+
+
+
+

+ How can we +
+ Help you? +

+
+ phone +
- Get in touch + Hacker Experience is what we prioritize! Have questions, need + assistance, or just want to connect? Feel free to reach out! +

+
+
+ phone
+
+ +
+ {/*
+

Call Us

+
+
+

+91 98692 61132

+

+ Uttara Kamat +

+
+
+

+91 93196 74300

+

+ Akshay Behl +

+
+
+
*/} + +
+

Mail Us

+
+ + hackbyte@iiitdmj.ac.in + +
+
+ +
+

Email us at:

+ + hackbyte@iiitdmj.ac.in + +
-
-

- Reaching IIIT Jabalpur +

+

Address

+

+ IIITDM Jabalpur, Near Dumna Airport, +
Jabalpur, Madhya Pradesh 482005

+
+
+ + {/*
+

+ Reaching IIITDM Jabalpur +

+
-
-
- By Train -
-

+

+ +
+ +

By Train -

-

- Book tickets from IRCTC : The campus is 10kms from the Railway - Terminal and auto fare is usually around ₹200-₹250. -

+

-
+

+ Book tickets from IRCTC : The campus is{" "} + + 10kms from the Railway Terminal + {" "} + and auto fare is usually around{" "} + ₹200-₹250. +

+ -
- By Flight -
-

- By Air -

-

- Daily flights from{" "} - - Delhi, Mumbai, Hyderabad, Indore and Bilaspur. - {" "} - From Bangalore, connecting - flights are available. -

+ +
+ +

+ By Flight +

-
+

+ Daily flights from{" "} + + Delhi, Mumbai, Hyderabad, Indore and Bilaspur + {" "} + . From Bangalore, + connecting flights are available. +

+ -
- By Bus -
-

+ +

+ +

By Bus -

-

- Only suggested if you live around{" "} - 8-10hrs from Jabalpur.{" "} - - ISBT (Pandit Deen Dayal Bus Stand) - {" "} - is around 13km from the venue, auto fare is usually around{" "} - ₹400-₹450. -

+

-
-
- -
-
-

- Call Us -

-
-
-

+91 98692 61132

-

Uttara Kamat

-
-
-

+91 93196 74300

-

Akshay Behl

-
-
-
-
-

- Address -

-

- IIITDM Jabalpur, Near Dumna Airport, Jabalpur, Madhya Pradesh - 482005 +

+ Only suggested if you live around 8-10hrs from Jabalpur.{" "} + + ISBT (Pandit Deen Dayal Bus Stand) + {" "} + is around 13km from the venue, auto fare is usually around{" "} + ₹400-₹450.

-
+
-
-
-
-
-

- Empower -
Your Digital -
Odyssey! -

- - -
+
*/}
-
- - ); +
+ ) } diff --git a/app/countdown/page.jsx b/app/countdown/page.jsx new file mode 100644 index 0000000..77706c7 --- /dev/null +++ b/app/countdown/page.jsx @@ -0,0 +1,57 @@ +"use client"; +import { useState, useEffect } from "react"; +import { cn } from "@/lib/utils"; +import { Spotlight } from "@/components/SpotlightEffect"; + +const Countdown = () => { + // const targetDate = new Date("2025-04-06T07:00:00").getTime(); + // const [timeLeft, setTimeLeft] = useState(targetDate - new Date().getTime()); + + // useEffect(() => { + // const timer = setInterval(() => { + // setTimeLeft(targetDate - new Date().getTime()); + // }, 1000); + + // return () => clearInterval(timer); + // }, [targetDate]); + + // const formatTime = (ms) => { + // const totalSeconds = Math.floor(ms / 1000); + // const hours = Math.floor(totalSeconds / 3600); + // const minutes = Math.floor((totalSeconds % 3600) / 60); + // const seconds = totalSeconds % 60; + // return { + // hours: String(hours).padStart(2, "0"), + // minutes: String(minutes).padStart(2, "0"), + // seconds: String(seconds).padStart(2, "0"), + // }; + // }; + + // const { hours, minutes, seconds } = formatTime(timeLeft); + + return ( + <> + //
+ //
+ // + //
+ //
+ //
+ //
+ // Hacking Time Remaining + //
+ //
+ // {hours}: + // {minutes}: + // {seconds} + //
+ //
+ //
+ //
+ ); +}; + +export default Countdown; diff --git a/app/faq/page.css b/app/faq/page.css deleted file mode 100644 index aafea06..0000000 --- a/app/faq/page.css +++ /dev/null @@ -1,12 +0,0 @@ -.rotatingContainer { - animation: rotateAnimation 8s linear infinite; -} - -@keyframes rotateAnimation { - 0% { - transform: rotate(0deg); - } - 100% { - transform: rotate(360deg); - } -} diff --git a/app/faq/page.jsx b/app/faq/page.jsx deleted file mode 100644 index 174dbe5..0000000 --- a/app/faq/page.jsx +++ /dev/null @@ -1,173 +0,0 @@ -import Navbar from "@/components/Navbar"; -import { - Accordion, - AccordionContent, - AccordionItem, - AccordionTrigger, -} from "@/components/ui/accordion"; -import TextAnimation from "@/components/TextAnimation"; - -import FooterAnimation from "@/components/FooterAnimation"; -import Footer from "@/components/Footer"; -import "./page.css"; - -export const metadata = { - title: "FAQ | HackByte", - description: "Frequently asked questions about HackByte.", - keywords: "FAQ, HackByte, IIITDMJ, Hackathon", - openGraph: { - title: "FAQ | HackByte", - description: "Frequently asked questions about HackByte.", - url: "https://hackbyte.in/faq", - images: - "https://res.cloudinary.com/drtmfrghg/image/upload/v1708016443/opengraph-image_vkiopn.jpg", - siteName: "HackByte - IIITDMJ Hackathon", - type: "website", - locale: "en_US", - }, -}; - -export default function FAQ() { - const data = [ - { - title: "How do I register ?", - content: "Pre-registration will be opening in January 2025", - }, - { - title: "How many team members do I need ?", - content: - "You can participate individually or in teams of 2 to 4 members. If you are participating in the hackathon individually and looking for a team, we will help you in connecting to other individual participants to get you a team.", - }, - { - title: "How much are the participation fees?", - content: - "Participation is absolutely free inclusive of food and accomodation. Isnt that great? So register ASAP!!", - }, - { - title: "Will the Hackathon be in person or online ?", - content: "HackByte will be conducted in complete offline/in-person mode.", - }, - { - title: "What is the venue for HackByte 3.0 ?", - content: - "IIITDM Jabalpur, explore our beautiful campus while thinking about innovating some crazy thing.", - }, - { - title: "What are the prerequisites to participate in this hackathon ?", - content: - "No prerequisites are required to participate in this hackathon. This event is open to participants of all skill levels.", - }, - { - title: - "Is the food and accommodation provided free of charge or are there any associated costs ?", - content: - "We've got you covered when it comes to food, water, and coffee – they're on us. However, any additional snacks can be purchased separately. As for accommodation, we will provide arrangements similar to those found in other hackathons, which typically involve a set of mattresses in a common hall.", - }, - { - title: - "Can my friend join our team after we have already submitted the application for review ?", - content: - "Yes, your friend can join the team by submitting an individual application. Once both your friend's individual application and your team's application are accepted, you will be able to add your friend to the team.", - }, - ]; - - return ( - <> - -
-
-
-
- -

- Hacker Experience is what we prioritize! Have questions, need - assistance, or just want to connect? Feel free to reach out! -

-
- Get in touch -
-
- -
-
-
- FAQs -
-
- - Everything you need to know about the product and billing. Can't - find the answer you're looking for? Please{" "} - - - chat to our friendly team. - -
-
-
- {data.map((item, index) => ( - - - - {item.title} - - - {item.content} - - - - ))} -
-
-
- -
-
-

- Empower -
Your Digital -
Odyssey! -

- - -
-
-