Skip to content

Commit

Permalink
Merge pull request #68 from alfiyafatima09/main
Browse files Browse the repository at this point in the history
pbctf-registration-page added
  • Loading branch information
SkySingh04 authored Sep 22, 2024
2 parents c603989 + a11f0c3 commit 95191e7
Show file tree
Hide file tree
Showing 5 changed files with 424 additions and 6 deletions.
41 changes: 41 additions & 0 deletions app/(default)/pbctf/page.tsx
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;

5 changes: 4 additions & 1 deletion app/css/additional-styles/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,7 @@ html {
-webkit-transform: translate3d(10px, 0, 0) scale(1.2);
transform: translate3d(10px, 0, 0) scale(1.2);
}
}
}



Loading

0 comments on commit 95191e7

Please sign in to comment.