Skip to content

Commit f24cec3

Browse files
feat(docs): add refine ai hero banner (#6806)
Co-authored-by: Ali Emir Şen <[email protected]>
1 parent 523885a commit f24cec3

File tree

2 files changed

+167
-1
lines changed

2 files changed

+167
-1
lines changed

documentation/src/pages/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { LandingHeroSection } from "../refine-theme/landing-hero-section";
1515
import { LandingTryItSection } from "../refine-theme/landing-try-it-section";
1616
import { CommonHeader } from "../refine-theme/common-header";
1717
import { LandingTestimonial } from "../refine-theme/landing-testimonial";
18+
import { LandingAiHeroSection } from "../refine-theme/landing-ai-hero-section";
1819

1920
function Home() {
2021
const title = "Refine | Open-source Retool for Enterprise";
@@ -46,7 +47,8 @@ function Home() {
4647
<div
4748
className={clsx("mt-0", "landing-sm:mt-8", "landing-lg:mt-20")}
4849
>
49-
<LandingHeroSection />
50+
<LandingAiHeroSection />
51+
<LandingHeroSection className={clsx("mt-8")} />
5052
<LandingTrustedByDevelopers
5153
className={clsx(
5254
"mt-12",
Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
import clsx from "clsx";
2+
import React from "react";
3+
import Link from "@docusaurus/Link";
4+
5+
export const LandingAiHeroSection = ({ className }: { className?: string }) => {
6+
return (
7+
<div
8+
className={clsx(
9+
"bg-[#C9D3E2]",
10+
"w-full",
11+
"px-6",
12+
"py-6",
13+
"landing-sm:px-10",
14+
"landing-sm:py-12",
15+
"relative",
16+
"z-[1]",
17+
"overflow-hidden",
18+
"rounded-3xl",
19+
"max-[375px]:rounded-none",
20+
"max-[375px]:w-screen",
21+
"max-[375px]:left-1/2",
22+
"max-[375px]:-translate-x-1/2",
23+
className,
24+
)}
25+
>
26+
<div className={clsx("relative", "z-[4]")}>
27+
<h2
28+
className={clsx(
29+
"text-2xl",
30+
"landing-sm:text-[32px]",
31+
"landing-sm:leading-10",
32+
"tracking-[-0.02em]",
33+
"text-gray-600",
34+
)}
35+
>
36+
The wait is over.
37+
</h2>
38+
<h2
39+
className={clsx(
40+
"text-[32px]",
41+
"leading-10",
42+
"landing-sm:text-[56px]",
43+
"landing-sm:leading-[72px]",
44+
"tracking-[-0.02em]",
45+
"font-bold",
46+
"text-gray-900",
47+
)}
48+
>
49+
Refine AI is here!
50+
</h2>
51+
52+
<p className={clsx("max-w-[446px]", "text-gray-900", "mt-4")}>
53+
Instantly transform your APIs into enterprise-grade admin panels,
54+
dashboards & internal tools.
55+
</p>
56+
57+
<div
58+
className={clsx(
59+
"flex",
60+
"items-center",
61+
"gap-10",
62+
"mt-6",
63+
"z-[4]",
64+
"relative",
65+
)}
66+
>
67+
<a
68+
href="https://s.refine.dev/ai-banner"
69+
target="_blank"
70+
rel="noreferrer"
71+
className={clsx(
72+
"appearance-none",
73+
"bg-refine-indigo",
74+
"text-white",
75+
"hover:text-white",
76+
"no-underline",
77+
"px-5",
78+
"py-3",
79+
"rounded-[48px]",
80+
"z-[4]",
81+
)}
82+
>
83+
Start for free!
84+
</a>
85+
<Link
86+
to="/ai"
87+
className={clsx("text-refine-indigo", "underline", "z-[4]")}
88+
>
89+
Learn more
90+
</Link>
91+
</div>
92+
</div>
93+
94+
<div className={clsx("absolute", "inset-0", "bg-noise", "z-[2]")} />
95+
96+
<video
97+
className={clsx(
98+
"z-[1]",
99+
"absolute",
100+
"inset-0",
101+
"w-full",
102+
"h-full",
103+
"object-cover",
104+
)}
105+
autoPlay={true}
106+
muted={true}
107+
loop={true}
108+
playsInline={true}
109+
controls={false}
110+
preload="auto"
111+
>
112+
<source
113+
type="video/mp4"
114+
src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/ai-landing-page/ai-banner-bg-video.mp4"
115+
/>
116+
</video>
117+
118+
<video
119+
className={clsx(
120+
"hidden",
121+
"landing-md:block",
122+
"z-[3]",
123+
"absolute",
124+
"w-[50px]",
125+
"h-[50px]",
126+
"top-[100px]",
127+
"right-[166px]",
128+
"landing-lg:top-[100px]",
129+
"landing-lg:right-[320px]",
130+
"rounded-full",
131+
"object-cover",
132+
"object-right",
133+
)}
134+
autoPlay={true}
135+
muted={true}
136+
loop={true}
137+
playsInline={true}
138+
controls={false}
139+
preload="auto"
140+
>
141+
<source
142+
type="video/mp4"
143+
src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/ai-landing-page/ai-banner-logo-ball.mp4"
144+
/>
145+
</video>
146+
147+
<img
148+
src="https://refine.ams3.cdn.digitaloceanspaces.com/website/static/ai-landing-page/ai-banner-logo.png"
149+
alt="Refine AI Banner Logo"
150+
className={clsx(
151+
"hidden",
152+
"landing-md:block",
153+
"absolute",
154+
"inset-0",
155+
"w-full",
156+
"h-full",
157+
"object-cover",
158+
"z-[2]",
159+
)}
160+
loading="eager"
161+
/>
162+
</div>
163+
);
164+
};

0 commit comments

Comments
 (0)