-
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
eed1a9a
commit 600575d
Showing
8 changed files
with
95 additions
and
7 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import Image from 'next/image'; | ||
import { useInView } from 'react-intersection-observer'; | ||
|
||
import { BB_AWS } from '@/constants/home/content-home'; | ||
|
||
import { basePath } from '@/config'; | ||
|
||
export default function ScreenThree() { | ||
const { ref, inView } = useInView({ | ||
threshold: 0.5, | ||
}); | ||
|
||
return ( | ||
<div | ||
className="relative flex h-screen w-screen snap-start snap-always flex-col items-center justify-center gap-y-6 px-[16vw] text-white" | ||
ref={ref} | ||
> | ||
<div className="relative z-10 flex flex-col gap-y-8"> | ||
<h3 className="font-title text-7xl font-bold">{BB_AWS.title}</h3> | ||
<div className="grid grid-cols-2 gap-x-6"> | ||
{BB_AWS.content.map((content: { title: string; paragraph: string }) => ( | ||
<div className="flex flex-col gap-y-2 font-title" key={content.title}> | ||
<h4 className="text-2xl font-semibold uppercase tracking-wider">{content.title}</h4> | ||
<p className="text-lg leading-normal">{content.paragraph}</p> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
<Image | ||
src={`${basePath}/images/home/home_background_block-2.webp`} | ||
alt="Image of the hippocampus illustrating the Blue Brain Open Platform" | ||
width={1920} | ||
height={1080} | ||
className="absolute left-0 top-0 z-0 h-full w-full object-cover" | ||
style={{ | ||
transform: inView ? 'scale(1)' : 'scale(0.7)', | ||
opacity: inView ? 1 : 0, | ||
}} | ||
/> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import Image from 'next/image'; | ||
|
||
import { useInView } from 'react-intersection-observer'; | ||
|
||
import { basePath } from '@/config'; | ||
import { SCREEN_TWO } from '@/constants/home/content-home'; | ||
|
||
export default function ScreenTwo() { | ||
const { ref, inView } = useInView({ | ||
threshold: 0.5, | ||
}); | ||
|
||
return ( | ||
<div | ||
className="relative flex h-screen w-screen snap-start snap-always flex-col items-center justify-center gap-y-6 px-[16vw] text-white" | ||
ref={ref} | ||
> | ||
<div className="relative z-10 flex flex-col gap-y-8"> | ||
<h3 className="font-title text-7xl font-bold">{SCREEN_TWO.title}</h3> | ||
<div className="grid grid-cols-2 gap-x-6"> | ||
{SCREEN_TWO.content.map((content: { title: string; paragraph: string }) => ( | ||
<div className="flex flex-col gap-y-2 font-title" key={content.title}> | ||
<h4 className="text-2xl font-semibold uppercase tracking-wider">{content.title}</h4> | ||
<p className="text-lg leading-normal">{content.paragraph}</p> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
<Image | ||
src={`${basePath}/images/home/home_background_block-1.webp`} | ||
alt="Image of the hippocampus illustrating the Blue Brain Open Platform" | ||
width={1920} | ||
height={1080} | ||
className="absolute left-0 top-0 z-0 h-full w-full object-cover" | ||
style={{ | ||
transform: inView ? 'scale(1)' : 'scale(0.7)', | ||
opacity: inView ? 1 : 0, | ||
}} | ||
/> | ||
</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