diff --git a/app/(default)/pbctf/page.tsx b/app/(default)/pbctf/page.tsx new file mode 100644 index 0000000..60c8079 --- /dev/null +++ b/app/(default)/pbctf/page.tsx @@ -0,0 +1,41 @@ +"use client"; +import PBCTFForm from "@/components/forms/pbctfForm"; +import DotPattern from "@/components/magicui/dot-pattern"; +import { cn } from "@/lib/utils"; +import { onAuthStateChanged } from "firebase/auth"; +import { auth } from "@/Firebase"; +import { useEffect } from "react"; +import { useRouter } from "next/navigation"; + +const PBCTFRegisterPage = () => { + const router = useRouter(); + + useEffect(() => { + onAuthStateChanged(auth, (user) => { + if (!user) { + router.push("/login"); + } + }); + }, [router]); + + return ( +
+ You have successfully registered for the PBCTF! +
++ Join the WhatsApp Group for further updates immediately. +
++ {errors[`participant${participantNumber}`]?.name?.message} +
+ )} ++ {errors[`participant${participantNumber}`]?.year?.message} +
+ )} ++ {errors[`participant${participantNumber}`]?.branch?.message} +
+ )} ++ {errors[`participant${participantNumber}`]?.usn?.message} +
+ )} ++ {errors[`participant${participantNumber}`]?.email?.message} +
+ )} ++ {errors[`participant${participantNumber}`]?.phone?.message} +
+ )} +