diff --git a/app/(root)/page.js b/app/(root)/page.js index 2b91656..ba688b8 100644 --- a/app/(root)/page.js +++ b/app/(root)/page.js @@ -8,6 +8,7 @@ import Link from "next/link"; // components import Button from "@/components/Button"; import Me from "../../public/img/me.jpg"; +import MeAbout from "@/public/img/me2.jpg"; import Hr from "@/components/Hr"; // icons import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; @@ -145,7 +146,15 @@ const MyPage = () => { delay: 0.5, type: "spring", }} - className="bg-slate-300 rounded-sm h-[400px] md:h-[600px] w-[80vw] md:w-[30vw]"> + className="bg-slate-300 rounded-sm h-[400px] md:h-[600px] w-[80vw] md:w-[30vw] grayscale hover:grayscale-0 "> + Alvalens +
+ transition={{ ease: "circOut", duration: 1 }} + className="bg-slate-300 rounded-sm h-[400px] md:h-[600px] w-[80vw] md:w-[30vw] grayscale hover:grayscale-0"> + Alvalens +

@@ -39,8 +47,8 @@ export default function Page() { A brief introduction about me and my interest.

{ window.scrollTo({ @@ -93,7 +101,7 @@ export default function Page() { scale: 1, x: 0, }} - transition={{ delay: 0.3}} + transition={{ delay: 0.3 }} className="w-full h-full">

@@ -207,7 +214,7 @@ export default function Page() { }} transition={{ delay: 0.5, - + type: "spring", }}>

@@ -279,7 +286,7 @@ export default function Page() { }} transition={{ delay: 0.6, - + type: "spring", }}>

@@ -330,7 +337,7 @@ export default function Page() { }} transition={{ delay: 0.5, - + type: "spring", }}> Education & Experience @@ -380,7 +387,7 @@ export default function Page() { }} transition={{ delay: 0.5, - + type: "spring", }}>

@@ -415,7 +422,7 @@ export default function Page() { }} transition={{ delay: 0.5, - + type: "spring", }}>

@@ -453,7 +460,7 @@ export default function Page() { }} transition={{ delay: 0.7, - + type: "spring", }}> Get In Touch{" "} diff --git a/app/layout.js b/app/layout.js index 9b27e21..e3e3d7b 100644 --- a/app/layout.js +++ b/app/layout.js @@ -1,18 +1,22 @@ -"use client"; +import dynamic from "next/dynamic"; import "./globals.css"; import Navbar from "@/components/Navbar"; -import { config } from '@fortawesome/fontawesome-svg-core' -import '@fortawesome/fontawesome-svg-core/styles.css' -config.autoAddCss = false +import { config } from "@fortawesome/fontawesome-svg-core"; +import "@fortawesome/fontawesome-svg-core/styles.css"; +config.autoAddCss = false; - -import TopProgressBar from "@/components/TopProgressBar"; import "./nprogress.css"; export const metadata = { title: "Create Next App", description: "Generated by create next app", }; + +const TopProgressBar = dynamic(() => import("@/components/TopProgressBar"), { + ssr: false, +}); + export default function RootLayout({ children }) { + return ( diff --git a/components/TopProgressbar.jsx b/components/TopProgressbar.jsx index 9851b85..bb2d9ff 100644 --- a/components/TopProgressbar.jsx +++ b/components/TopProgressbar.jsx @@ -1,3 +1,4 @@ +"use client" import Router from "next/router"; import NProgress from "nprogress"; diff --git a/public/img/me2.jpg b/public/img/me2.jpg index a012897..6a781f7 100644 Binary files a/public/img/me2.jpg and b/public/img/me2.jpg differ