From 1e88e4cff4b7cd4c97b0246a356b90c272e0fec6 Mon Sep 17 00:00:00 2001
From: Joywin Bennis <107112207+joywin2003@users.noreply.github.com>
Date: Tue, 26 Nov 2024 21:24:48 +0530
Subject: [PATCH 1/2] commenting previous edition for now
---
src/app/page.tsx | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 8eb8b08..fa2c116 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -38,15 +38,9 @@ export default function Home() {
-
+ {/*
- {/*
-
- 2022 Edition
-
-
-
*/}
-
+
*/}
The Team
From bd928f560d29d543f4c53a497af9dd157a30aac3 Mon Sep 17 00:00:00 2001
From: Joywin Bennis <107112207+joywin2003@users.noreply.github.com>
Date: Tue, 26 Nov 2024 21:53:11 +0530
Subject: [PATCH 2/2] fix: redirect to registration page when clicked on navbar
registration
---
src/components/widget/header.tsx | 155 ++++++++++++++++++-------------
1 file changed, 89 insertions(+), 66 deletions(-)
diff --git a/src/components/widget/header.tsx b/src/components/widget/header.tsx
index a8d26e2..4539a85 100644
--- a/src/components/widget/header.tsx
+++ b/src/components/widget/header.tsx
@@ -9,7 +9,10 @@ import React from "react";
import Link from "next/link";
import NavItem from "../navbar/nav-items";
import RegisterButton from "../navbar/register-button";
+import { useRouter } from "next/navigation";
+import { Button } from "../ui/button";
const Nav = () => {
+ const router = useRouter();
gsap.registerPlugin(ScrollTrigger);
const menuToggle = useRef(null);
@@ -27,7 +30,7 @@ const Nav = () => {
x: 1,
ease: "Power2.easeInOut",
},
- "start",
+ "start"
)
.to(".bar-2", 2, { autoAlpha: 0, stroke: "#000" }, "start")
.to(
@@ -39,7 +42,7 @@ const Nav = () => {
stroke: "#000",
ease: "Power2.easeInOut",
},
- "start",
+ "start"
);
tl.to(".logo", { x: -300 }, "go")
@@ -59,7 +62,7 @@ const Nav = () => {
.from(
".listo",
{ duration: 0.15, x: "-50%", stagger: 0.1, opacity: 0 },
- "-=0.5",
+ "-=0.5"
)
.from(
".social-links li",
@@ -70,7 +73,7 @@ const Nav = () => {
stagger: 0.1,
ease: "Expo.easeInOut",
},
- "-=0.5",
+ "-=0.5"
)
.from(".hero-icon", { scale: 0, duration: 0.3 }, "end")
.from(".life", { x: 1000, duration: 0.35 }, "end");
@@ -98,6 +101,12 @@ const Nav = () => {
}
};
+ const handleRegisterClick = () => {
+ router.push("/register");
+ menuBar.reverse();
+ tl.reverse();
+ };
+
return (
<>
@@ -146,68 +155,82 @@ const Nav = () => {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Life - Explore What's Worth Living
-
-
-
-
-
- >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Life - Explore What's Worth Living
+
+
+
+
+
+ >
);
};