-
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
3be6223
commit ebc85b3
Showing
17 changed files
with
611 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import Link from 'next/link'; | ||
const Footer = () => { | ||
return ( | ||
<> | ||
<div className='footer-wrapper'> | ||
<div className='left'> | ||
<p>Hello</p> | ||
</div> | ||
<div className='mid'> | ||
<p>Hello</p> | ||
</div> | ||
<div className='right'> | ||
<p>EMAIL</p> | ||
<p>CONTACT</p> | ||
</div> | ||
</div> | ||
</> | ||
) | ||
} | ||
|
||
export default Footer; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// "use client"; // Add this line at the top | ||
import '../style/index.scss'; | ||
import Header from '../components/Header'; | ||
import Lenis from '@studio-freight/lenis'; | ||
import { useEffect , useState} from 'react'; | ||
import { useRouter } from 'next/router'; | ||
|
||
function MyApp({ Component, pageProps }) { | ||
const router = useRouter(); | ||
|
||
useEffect(() => { | ||
const header = document.querySelector('.header'); | ||
const menu_wrapper = document.querySelector('.menu-wrapper'); | ||
const profile = document.querySelector('.profile'); | ||
if (router.pathname.includes('/art')) { | ||
document.body.classList.add('art-background'); | ||
if(header){ | ||
header.classList.add('art-header'); | ||
// header.className = 'art-header'; | ||
menu_wrapper.classList.add('art-menu'); | ||
profile.classList.add('art-profile'); | ||
} | ||
|
||
} else { | ||
document.body.classList.remove('art-background'); | ||
if(header){ | ||
header.classList.remove('art-header'); | ||
} | ||
} | ||
}, [router.pathname]); | ||
|
||
useEffect(() => { | ||
const lenis = new Lenis({ | ||
duration: 1.2, | ||
easing: (t) => Math.min(1, 1.001 - Math.pow(2, -10 * t)), // Custom easing function | ||
direction: 'vertical', // Can be 'vertical' or 'horizontal' | ||
gestureDirection: 'vertical', // Can be 'vertical' or 'horizontal' | ||
smooth: true, | ||
smoothTouch: false, | ||
touchMultiplier: 2, | ||
}); | ||
|
||
function raf(time) { | ||
lenis.raf(time); | ||
requestAnimationFrame(raf); | ||
} | ||
|
||
requestAnimationFrame(raf); | ||
|
||
return () => lenis.destroy(); // Cleanup on unmount | ||
}, []); | ||
return ( | ||
<div className='content-main'> | ||
<Header /> | ||
<div className='content'> | ||
<Component {...pageProps} /> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default MyApp; |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const ArtPage = () => { | ||
return( | ||
<> | ||
ART | ||
</> | ||
) | ||
} | ||
|
||
export default ArtPage; |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import '../style/index.scss'; | ||
const BlogPage = () => { | ||
return( | ||
<> | ||
BLOGS | ||
</> | ||
) | ||
} | ||
|
||
export default BlogPage; |
Oops, something went wrong.