-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpage.tsx
More file actions
61 lines (57 loc) · 1.61 KB
/
page.tsx
File metadata and controls
61 lines (57 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
'use client'
import { useFold } from '~/lib/hooks/use-fold'
import { cn } from '~/lib/utils/cn'
import { CTA } from '~/ui/cta'
import { Footer } from '~/ui/footer'
import { Partners } from '~/ui/partners'
import { ScrollButton } from '~/ui/scroll-button'
import { Testimonials } from '~/ui/testimonials'
import { TrustedBy } from '~/ui/trusted-by'
import { Video } from '~/ui/video/video'
const Section = ({ children, className }: { children: React.ReactNode; className?: string }) => (
<div
className={cn(
'flex min-h-screen w-screen shrink-0 flex-col items-center p-4 py-12 sm:p-24',
className
)}
>
{children}
</div>
)
const Hero = () => {
const { isBelowFold } = useFold()
return (
<Section className="relative h-screen">
<div className="flex h-full w-full flex-col items-center justify-center">
<div className="w-fit max-w-5xl">
<h2 className="mb-4 text-2xl">
We're an applied AI Lab helping companies build intelligent applications.
</h2>
<Video
hlsUrl="https://d2os0zhpsj02b0.cloudfront.net/hero/hls/master.m3u8"
mp4Url="https://d2os0zhpsj02b0.cloudfront.net/hero/preview.mp4"
posterUrl="/images/video-thumbnail.jpg"
transcriptionUrl="/transcripts/hero.vtt"
/>
</div>
</div>
<ScrollButton
className={cn('absolute bottom-6 transition-opacity', { 'opacity-0': isBelowFold })}
/>
</Section>
)
}
export default function Page() {
return (
<div className="flex flex-col items-center">
<Hero />
<Section className="space-y-40">
<TrustedBy />
<Testimonials />
<Partners />
<CTA />
</Section>
<Footer />
</div>
)
}