-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
Copy pathai-landing-hero.tsx
130 lines (128 loc) · 3.51 KB
/
ai-landing-hero.tsx
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
import { useColorMode } from "@docusaurus/theme-common";
import clsx from "clsx";
import React from "react";
import { JoinWaitlist } from "./ai-landing-join-the-waitlist-cta";
export const AiLandingHero = ({
className,
contentClassName,
}: {
className?: string;
contentClassName?: string;
}) => {
const { colorMode } = useColorMode();
const isDarkTheme = colorMode === "dark";
return (
<div
className={clsx(
"max-w-[1200px]",
"mx-auto",
"w-full",
"landing-md:px-0",
"px-6",
"py-8",
"landing-md:h-[400px]",
"landing-lg:h-[560px]",
"relative",
"flex",
"items-center",
"justify-start",
className,
"z-[2]",
)}
>
<div
className={clsx(
"z-[1]",
"absolute",
"top-0",
"left-0",
"right-0",
"bottom-0",
"bg-ai-landing-hero",
"landing-md:bg-ai-landing-hero-md",
"dark:bg-ai-landing-hero-dark",
"dark:landing-md:bg-ai-landing-hero-dark-md",
"landing-md:blur-lg",
)}
/>
<div
className={clsx(
"not-prose",
"w-full max-w-[620px]",
"z-[2]",
contentClassName,
)}
>
<h2
className={clsx(
"font-bold",
"text-4xl",
"landing-sm:text-[56px] landing-sm:leading-[72px]",
)}
>
<div
className={clsx(
"text-refine-indigo",
"text-refine-indigo drop-shadow-[0_0_30px_rgba(51,51,255,0.55)]",
"dark:text-refine-green-alt",
"dark:text-refine-react-dark-green-alt dark:drop-shadow-[0_0_30px_rgba(38,217,127,0.55)]",
)}
>
AI Coding agents
</div>
<div>for building internal software.</div>
</h2>
<p
className={clsx(
"text-base",
"text-gray-600",
"dark:text-gray-200",
"mt-6",
"max-w-[588px]",
)}
>
The next-gen approach to build enterprise-ready React-based internal
tools, admin panels, dashboards & B2B apps with the power of GenAI.
</p>
<JoinWaitlist className={clsx("mt-6 landing-md:mt-12", "mx-0")} />
</div>
<video
key={colorMode}
className={clsx(
"z-[2]",
"absolute",
"hidden",
"top-10",
"landing-md:block",
"landing-md:w-[278px]",
"landing-md:right-[150px]",
"landing-lg:right-0",
"landing-lg:w-[556px]",
"object-cover",
)}
autoPlay={true}
muted={true}
loop={true}
playsInline={true}
controls={false}
>
<source
type='video/mp4; codecs="hvc1"'
src={
isDarkTheme
? "https://refine.ams3.cdn.digitaloceanspaces.com/website/static/ai-landing-page/ai-hero-video-dark.mov"
: "https://refine.ams3.cdn.digitaloceanspaces.com/website/static/ai-landing-page/ai-hero-video-light.mov"
}
/>
<source
type="video/webm;"
src={
isDarkTheme
? "https://refine.ams3.cdn.digitaloceanspaces.com/website/static/ai-landing-page/ai-hero-video-dark.webm"
: "https://refine.ams3.cdn.digitaloceanspaces.com/website/static/ai-landing-page/ai-hero-video-light.webm"
}
/>
</video>
</div>
);
};