-
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
ce951ff
commit 369bf20
Showing
7 changed files
with
253 additions
and
149 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,159 @@ | ||
"use client"; // Add this line at the top | ||
import '../style/index.scss'; | ||
import Header from "../components/Header"; | ||
import { GoArrowDown } from "react-icons/go"; | ||
import { ReactLenis, useLenis } from 'lenis/react'; | ||
import Header from '../components/Header'; | ||
import Lenis from '@studio-freight/lenis'; | ||
import { useEffect , useState} from 'react'; | ||
// import { ScrollContainer, Animator, batch, FadeIn , Sticky, FadeOut} from 'react-scroll-motion'; | ||
|
||
export default function Home() { | ||
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 ( | ||
<> | ||
<Header/> | ||
<Banner/> | ||
<div className='content'> | ||
<VideoBanner/> | ||
<div className='home-content'> | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
<br></br> | ||
hello my dear kunji | ||
<br></br> | ||
hello my dear kunji | ||
<br></br> | ||
hello my dear kunji | ||
<br></br> | ||
hello my dear kunji | ||
<br></br> | ||
hello my dear kunji | ||
<br></br> | ||
hello my dear kunji | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
<br></br> | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
hello my dear kunji | ||
</div> | ||
</div> | ||
<HomePageContent/> | ||
</> | ||
); | ||
} | ||
|
||
|
||
const VideoBanner = () => { | ||
const Banner = () => { | ||
const [opacity, setOpacity] = useState(1); | ||
const handleScroll = () => { | ||
// Adjust the divisor to control the scroll distance to opacity mapping | ||
const scrollTop = window.scrollY; | ||
const maxScroll = 600; // Maximum scroll distance at which opacity becomes 0 | ||
const newOpacity = Math.max(1 - scrollTop / maxScroll, 0); | ||
setOpacity(newOpacity); | ||
}; | ||
|
||
useEffect(() => { | ||
window.addEventListener('scroll', handleScroll); | ||
|
||
// Clean up the event listener | ||
return () => { | ||
window.removeEventListener('scroll', handleScroll); | ||
}; | ||
}, []); | ||
|
||
return ( | ||
<> | ||
<div className='banner-wrapper' style={{opacity}}> | ||
{/* <Animator animation={batch(Sticky(), FadeOut())}> */} | ||
<video className='video' autoPlay loop muted> | ||
<source src="/videos/bannerVideo.mp4" type="video/mp4" /> | ||
Your browser does not support the video tag. | ||
</video> | ||
<div className='content-left'> | ||
<h1>VIEW the SHOWREEL</h1> | ||
<p> | ||
Ripley nominated for 13 EMMY awards - including for Visual Effects | ||
</p> | ||
<div className='text-overlay'> | ||
<span className="text-item heading">Showreel '24</span> | ||
<span className="text-item side"> | ||
<p>Visual Effects</p> | ||
<p>Development</p> | ||
<p>Storyboard</p> | ||
</span> | ||
</div> | ||
<div className='content-right'>SCROLL | ||
<GoArrowDown size={18}/> | ||
|
||
<div className='scroll'> | ||
<div className="time-zone"> | ||
AUS : 234: 3435 | ||
</div> | ||
<div> | ||
Scroll | ||
<GoArrowDown size={18}/> | ||
</div> | ||
<div></div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
|
||
|
||
const HomePageContent = () => { | ||
return ( | ||
<> | ||
HELOOO | ||
|
||
Vimeo | ||
Behance | ||
|
||
Contact | ||
|
||
- | ||
|
||
If you have a scheduling inquiry for our creative services or wish to chat about an upcoming project need, please contact us at [email protected] | ||
awadf | ||
</> | ||
{/* </Animator> */} | ||
</div> | ||
) | ||
} |
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 |
---|---|---|
@@ -1,37 +1,44 @@ | ||
.header-wrapper{ | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
position: absolute; | ||
top:0; | ||
font-family: $font-plex; | ||
font-weight: 400; | ||
z-index: 1000; | ||
padding: 15px 20px; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding:50px 80px; | ||
z-index: 10; | ||
font-size: 17px; | ||
font-family: $font-plex; | ||
|
||
.logo{ | ||
display: block; | ||
padding:2px; | ||
font-weight: 500; | ||
font-size:26px; | ||
letter-spacing: -3px; | ||
b{ | ||
font-weight: 600; | ||
} | ||
} | ||
|
||
.menu-wrapper{ | ||
display: flex; | ||
align-items: center; | ||
font-family: $font-inter; | ||
|
||
.menu{ | ||
margin-left: 50px; | ||
padding:5px 10px; | ||
font-size: 14px; | ||
// letter-spacing: 1px; | ||
// background-color: #333333; | ||
// background-color: white; | ||
// color:black; | ||
font-weight: 500; | ||
font-family: $font-plex; | ||
padding:4px 15px; | ||
|
||
margin: 1px; | ||
} | ||
|
||
.profile{ | ||
background-color: #fff; | ||
background-color: white; | ||
color:$background-color; | ||
border-radius: 10px; | ||
border-radius: 2px; | ||
} | ||
} | ||
|
||
|
||
|
||
} |
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.