diff --git a/app/api/hackbyte4/route.ts b/app/api/hackbyte4/route.ts index 6c7351f..079a615 100644 --- a/app/api/hackbyte4/route.ts +++ b/app/api/hackbyte4/route.ts @@ -1,6 +1,10 @@ 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) diff --git a/app/contact/page.jsx b/app/contact/page.jsx index 1d01806..27f3fcb 100644 --- a/app/contact/page.jsx +++ b/app/contact/page.jsx @@ -1,8 +1,8 @@ -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"; +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", @@ -20,7 +20,7 @@ export const metadata = { type: "website", locale: "en_US", }, -}; +} export default function ContactSection() { return ( @@ -87,6 +87,16 @@ export default function ContactSection() { +
@@ -96,7 +106,7 @@ export default function ContactSection() {
Hacker Experience is what we prioritize! Have questions, need @@ -130,7 +130,7 @@ const Humans = () => {
We are currently in the process of partnering with MLH. The
following 3 checkboxes are for this partnership. If we do not
diff --git a/components/MobileSidebar/index.jsx b/components/MobileSidebar/index.jsx
index cd9464c..2d63023 100644
--- a/components/MobileSidebar/index.jsx
+++ b/components/MobileSidebar/index.jsx
@@ -1,7 +1,7 @@
-"use client";
-import { useAnimate } from "motion/react";
-import closesidebar from "@/public/closesidebar.svg";
-import opensidebar from "@/public/opensidebar.svg";
+"use client"
+import { useAnimate } from "motion/react"
+import closesidebar from "@/public/closesidebar.svg"
+import opensidebar from "@/public/opensidebar.svg"
import {
Calendar,
Handshake,
@@ -11,47 +11,47 @@ import {
Info,
Image as Gallery,
Phone,
-} from "lucide-react";
-import Image from "next/image";
-import { useState, useEffect, useRef } from "react";
-import Link from "next/link";
-import { usePathname } from "next/navigation";
+} from "lucide-react"
+import Image from "next/image"
+import { useState, useEffect, useRef } from "react"
+import Link from "next/link"
+import { usePathname } from "next/navigation"
const sidebarLinks = [
{ name: "Home", icon: