-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from alfiyafatima09/main
pbctf-registration-page added
- Loading branch information
Showing
5 changed files
with
424 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<div className="min-h-screen flex items-center justify-center py-6 px-4 sm:px-6 lg:px-8 relative overflow-hidden"> | ||
<div className="w-full max-w-2xl space-y-8 relative z-10"> | ||
<PBCTFForm /> | ||
</div> | ||
<DotPattern | ||
width={20} | ||
height={20} | ||
cx={1} | ||
cy={1} | ||
cr={1} | ||
className={cn( | ||
"absolute inset-0 scale-150 opacity-50 [mask-image:radial-gradient(ellipse_at_center,transparent_20%,black)]" | ||
)} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PBCTFRegisterPage; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.