File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
apps/website/src/components/LandingPage/LandingSection Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ 'use client' ;
2
+
3
+ import { ChevronDownIcon , LucideProps } from 'lucide-react' ;
4
+ import { FC } from 'react' ;
5
+
6
+ export const ChevronDown : FC < LucideProps > = ( props ) => (
7
+ < ChevronDownIcon
8
+ { ...props }
9
+ onClick = { ( ) => {
10
+ window . scrollTo ( {
11
+ top : window . innerHeight - 100 ,
12
+ behavior : 'smooth' ,
13
+ } ) ;
14
+ } }
15
+ />
16
+ ) ;
Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ import { useIntlayer } from 'next-intlayer/server';
4
4
import type { FC } from 'react' ;
5
5
import { ActionButtons } from './ActionButtons' ;
6
6
import { AnimatedDescription } from './AnimatedDescription' ;
7
+ import { ChevronDown } from './ChevronDown' ;
7
8
8
9
export const LandingSection : FC = ( ) => {
9
10
const { title, description, keyPoints } = useIntlayer ( 'landing-section' ) ;
10
11
11
12
return (
12
- < section className = "flex min-h-[calc(100vh-64px)] w-full flex-col gap-16 md:flex-row md:px-10 md:pr-0" >
13
+ < section className = "relative flex min-h-[calc(100vh-64px)] w-full flex-col gap-16 md:flex-row md:px-10 md:pr-0" >
13
14
< div className = "relative flex w-full flex-1 flex-col items-center justify-between md:justify-center" >
14
15
< div className = "flex w-full md:flex-auto md:items-center" >
15
16
< div className = "relative z-10 flex flex-col md:w-3/5" >
@@ -51,6 +52,7 @@ export const LandingSection: FC = () => {
51
52
</ div >
52
53
< ActionButtons className = "z-10 mb-5 p-8 pt-0 md:hidden" />
53
54
</ div >
55
+ < ChevronDown className = "absolute z-10 max-md:hidden text-neutral bottom-10 left-1/2 -translate-x-1/2 size-10 hover:cursor-pointer hover:translate-y-1 animate-bounce animate-infinite animate-duration-1000 animate-ease-linear" />
54
56
</ section >
55
57
) ;
56
58
} ;
You can’t perform that action at this time.
0 commit comments