@@ -44,7 +45,7 @@ export default function Page() {
{
window.scrollTo({
top: 1000,
@@ -122,7 +123,6 @@ export default function Page() {
}}
transition={{
delay: 0.5,
-
}}
className="w-full h-full">
@@ -184,7 +184,7 @@ export default function Page() {
}}
transition={{
delay: 0.5,
-
+
type: "spring",
}}>
Other Note Worthy Projects
@@ -283,13 +283,10 @@ export default function Page() {
{/* view in archive btn */}
-
+
-
>
);
diff --git a/components/Hr.jsx b/components/Hr.jsx
index 84ab90e..6625452 100644
--- a/components/Hr.jsx
+++ b/components/Hr.jsx
@@ -7,7 +7,7 @@ export default function Hr() {
className="bg-gray-700 w-20 h-1 rounded-full mb-2"
initial={{
opacity: 0,
- x: -100,
+ x: -50,
}}
whileInView={{
opacity: 1,
diff --git a/components/Navbar.js b/components/Navbar.js
index 739934b..a728369 100644
--- a/components/Navbar.js
+++ b/components/Navbar.js
@@ -3,8 +3,12 @@ import { useRef, useState, useEffect } from "react";
import { motion } from "framer-motion";
import Link from "next/link";
-const NavItems = ({ isNavOpen }) => {
-const [isMobile, setIsMobile] = useState(false);
+const NavItems = ({ isNavOpen, setIsNavOpen }) => {
+ const [isMobile, setIsMobile] = useState(false);
+
+ const handleItemClick = () => {
+ setIsNavOpen(false);
+ };
const navVariant = {
open: (height = 1000) => ({
clipPath: `circle(${height + 400}px at calc(100% - 40px) 40px)`,
@@ -24,43 +28,43 @@ const [isMobile, setIsMobile] = useState(false);
},
},
};
-useEffect(() => {
- const updateScreenWidth = () => {
- setIsMobile(window.innerWidth <= 768);
- };
+ useEffect(() => {
+ const updateScreenWidth = () => {
+ setIsMobile(window.innerWidth <= 768);
+ };
- // Initial check and event listener
- updateScreenWidth();
- window.addEventListener("resize", updateScreenWidth);
+ // Initial check and event listener
+ updateScreenWidth();
+ window.addEventListener("resize", updateScreenWidth);
- // Clean up the event listener on unmount
- return () => {
- window.removeEventListener("resize", updateScreenWidth);
- };
-}, []);
+ // Clean up the event listener on unmount
+ return () => {
+ window.removeEventListener("resize", updateScreenWidth);
+ };
+ }, []);
-// Check screen width and adjust clipPath for smaller screens
-if (isMobile) {
- navVariant.closed = {
- clipPath: "circle(0px at calc(100% - 35px) 35px)", // Adjusted value for mobile screens
- transition: {
- delay: 0.5,
- type: "spring",
- stiffness: 400,
- damping: 40,
- },
- };
-} else {
- navVariant.closed = {
- clipPath: "circle(0px at calc(100% - 120px) 35px)",
- transition: {
- delay: 0.5,
- type: "spring",
- stiffness: 400,
- damping: 40,
- },
- };
-}
+ // Check screen width and adjust clipPath for smaller screens
+ if (isMobile) {
+ navVariant.closed = {
+ clipPath: "circle(0px at calc(100% - 35px) 35px)", // Adjusted value for mobile screens
+ transition: {
+ delay: 0.5,
+ type: "spring",
+ stiffness: 400,
+ damping: 40,
+ },
+ };
+ } else {
+ navVariant.closed = {
+ clipPath: "circle(0px at calc(100% - 120px) 35px)",
+ transition: {
+ delay: 0.5,
+ type: "spring",
+ stiffness: 400,
+ damping: 40,
+ },
+ };
+ }
const itemVariants = {
open: {
opacity: 1,
@@ -74,9 +78,6 @@ if (isMobile) {
},
};
-
-
-
return (
<>
-
- {/* title */}
-
- Menu
-
-
-
-
- Home
-
-
-
-
-
-
- About
-
-
-
-
-
-
- Projects
-
-
-
-
-
-
- Contact
-
-
-
-
-
+
+