-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d039877
commit 4d2130b
Showing
20 changed files
with
300 additions
and
216 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
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
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 |
---|---|---|
@@ -1,55 +1,30 @@ | ||
"use client" | ||
import './globals.css' | ||
import './global.scss' | ||
import React,{ useState, useEffect } from 'react' | ||
import { Inter } from 'next/font/google' | ||
import Head from 'next/head' | ||
import {Loader, Footer, Header} from '@/components' | ||
import {Analytics} from "@vercel/analytics/react" | ||
const inter = Inter({ subsets: ['latin'] }) | ||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
const [isLoading, setIsLoading] = useState(true) | ||
import React, { useState, useEffect } from 'react'; | ||
import { Footer, Loader } from '@/components'; | ||
import { Analytics } from '@vercel/analytics/react'; | ||
|
||
const RootLayout = ({ children }: { children: React.ReactNode }) => { | ||
const [isLoading, setIsLoading] = useState(true); | ||
useEffect(() => { | ||
const timeout = setTimeout(() => { | ||
setIsLoading(false) | ||
}, 2000) | ||
return () => clearTimeout(timeout) | ||
}, []) | ||
setIsLoading(false); | ||
}, 2000); | ||
return () => clearTimeout(timeout); | ||
}, []); | ||
return ( | ||
<html lang="en"> | ||
<Head> | ||
<meta charSet="utf-8" /> | ||
<title>Mike Odnis</title> | ||
<meta name="description" content="Mike Odnis\' portfolio. Undergraduate, Computer Science student at Farmingdale State College." /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<link rel="manifest" href="/manifest.json" /> | ||
<meta name="theme-color" content="#560BAD" /> | ||
<meta name="apple-mobile-web-app-status-bar" content="#560BAD" /> | ||
<meta name="apple-mobile-web-app-title" content="Mike Odnis" /> | ||
<meta name="apple-mobile-web-app-capable" content="yes" /> | ||
<meta name="application-name" content="Mike Odnis" /> | ||
<meta name="msapplication-TileColor" content="#560BAD" /> | ||
<meta name="msapplication-TileImage" content="/icons/ms-icon-144x144.png" /> | ||
<meta name="msapplication-config" content="/browserconfig.xml" /> | ||
<meta name="mobile-web-app-capable" content="yes" /> | ||
<meta name="google-site-verification" content="UEQaFuTqVDx84-mVcEXzo-y2PmglIrDzOPjcetwCnrM"/> | ||
</Head> | ||
<body className={inter.className}> | ||
{isLoading ? ( | ||
<Loader />) : ( | ||
<> | ||
{/* {isLoading ? ( | ||
<Loader /> | ||
) : ( */} | ||
<> | ||
{/* <Header /> */} | ||
{children} | ||
<Footer /> | ||
<Analytics /> | ||
</> | ||
)} | ||
</body> | ||
</html> | ||
) | ||
} | ||
{/* )} */} | ||
</> | ||
); | ||
}; | ||
|
||
export default RootLayout; |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,38 +1,38 @@ | ||
"use client" | ||
import React, {useEffect, useRef} from 'react' | ||
import {gsap} from 'gsap' | ||
type Props = {} | ||
const CustomCursor = (props: Props) => { | ||
const cursorRef = useRef<HTMLDivElement>(null) | ||
const followerRef = useRef<HTMLDivElement>(null) | ||
const moveCursor = (e: MouseEvent): void => { | ||
gsap.to(cursorRef.current, { | ||
x: e.clientX, | ||
y: e.clientY, | ||
duration: 0.2, | ||
}) | ||
gsap.to(followerRef.current, { | ||
x: e.clientX, | ||
y: e.clientY, | ||
duration: 0.9, | ||
}) | ||
} | ||
useEffect(() => { | ||
gsap.set(cursorRef, { | ||
xPercent: 100, | ||
yPercent: 100, | ||
}); | ||
gsap.set(followerRef, { | ||
xPercent: -20, | ||
yPercent: -20, | ||
}); | ||
window.addEventListener('mousemove', moveCursor) | ||
}, []); | ||
return ( | ||
<div> | ||
<div ref={cursorRef} className="cursor"/> | ||
<div ref={followerRef} className="follower-cursor"/> | ||
</div> | ||
) | ||
} | ||
export default CustomCursor | ||
// "use client" | ||
// import React, {useEffect, useRef} from 'react' | ||
// import {gsap} from 'gsap' | ||
// type Props = {} | ||
// const CustomCursor = (props: Props) => { | ||
// const cursorRef = useRef<HTMLDivElement>(null) | ||
// const followerRef = useRef<HTMLDivElement>(null) | ||
// const moveCursor = (e: MouseEvent): void => { | ||
// gsap.to(cursorRef.current, { | ||
// x: e.clientX, | ||
// y: e.clientY, | ||
// duration: 0.2, | ||
// }) | ||
// gsap.to(followerRef.current, { | ||
// x: e.clientX, | ||
// y: e.clientY, | ||
// duration: 0.9, | ||
// }) | ||
// } | ||
// useEffect(() => { | ||
// gsap.set(cursorRef, { | ||
// xPercent: 100, | ||
// yPercent: 100, | ||
// }); | ||
// gsap.set(followerRef, { | ||
// xPercent: -20, | ||
// yPercent: -20, | ||
// }); | ||
// window.addEventListener('mousemove', moveCursor) | ||
// }, []); | ||
// return ( | ||
// <div> | ||
// <div ref={cursorRef} className="cursor"/> | ||
// <div ref={followerRef} className="follower-cursor"/> | ||
// </div> | ||
// ) | ||
// } | ||
// export default CustomCursor |
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.
4d2130b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
portfolio – ./
www.mikeodnis.com
portfolio-womb0comb0.vercel.app
mikeodnis.com
portfolio-git-master-womb0comb0.vercel.app