blob: 0516d5fd427721ef0c2e7be73cdd8638e0c7ef9d (
plain) (
blame)
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
|
import cn from "classnames";
import Image from "next/image";
import Link from "next/link";
import gradients from "../home-shared/gradients.module.css";
import { HeroText, SectionSubtext } from "../home-shared/Headings";
import { Gradient } from "../home-shared/Gradient";
import { FadeIn } from "../home-shared/FadeIn";
import { CTAButton } from "../home-shared/CTAButton";
import RepoLogo from "../../logos/AILogo";
export function AIHero() {
return (
<>
<FadeIn
noVertical
className="font-sans w-auto pb-16 pt-[48px] md:pb-24 lg:pb-32 md:pt-16 lg:pt-20 flex justify-between gap-8 items-center flex-col relative z-0"
>
<FadeIn className="z-50 flex items-center justify-center w-full ">
<div className="absolute min-w-[614px] min-h-[614px]">
{/* TODO: On dark mode, there should be a "breathing" gradient inside the inner circle */}
<Image
alt="AI"
src="/images/docs/AI/repo-hero-circles-dark.svg"
width={614}
height={614}
className="hidden dark:block"
/>
<Image
alt="AI"
src="/images/docs/AI/repo-hero-circles-light.svg"
width={614}
height={614}
className="block dark:hidden"
/>
</div>
<div className="absolute z-50 flex items-center justify-center w-64 h-64">
<Gradient
small
width={120}
height={120}
conic
className="dark:opacity-100 opacity-40"
/>
</div>
<div className="w-[120px] h-[120px] z-50">
<Image
alt=""
src={`/images/docs/AI/repo-hero-logo-dark.svg`}
width={120}
height={120}
className="hidden dark:block"
/>
<Image
alt=""
src={`/images/docs/AI/repo-hero-logo-light.svg`}
width={120}
height={120}
className="block dark:hidden"
/>
</div>
</FadeIn>
<Gradient
width={1000}
height={1000}
className="top-[-500px] dark:opacity-20 opacity-[0.15]"
conic
/>
<div className="absolute top-0 z-10 w-full h-48 dark:from-black from-white to-transparent bg-gradient-to-b" />
<FadeIn
delay={0.15}
className="z-50 flex flex-col items-center justify-center gap-5 px-6 text-center lg:gap-6"
>
<RepoLogo
alt="AI"
width="200"
className="w-[160px] md:w-[200px] fill-black dark:fill-white"
/>
<HeroText h1>The build system that makes ship happen</HeroText>
<SectionSubtext hero>
Turborepo is a high-performance build system for JavaScript and
TypeScript codebases.
</SectionSubtext>
</FadeIn>
<FadeIn
delay={0.3}
className="z-50 flex flex-col items-center w-full max-w-md gap-5 px-6"
>
<div className="flex flex-col w-full gap-3 md:!flex-row">
<CTAButton>
<Link href="/AI/docs" className="block py-3">
Get Started
</Link>
</CTAButton>
<CTAButton outline>
<a
target="_blank"
rel="noreferrer"
href="https://github.com/retrofor/HydroRoll"
className="block py-3"
>
GitHub
</a>
</CTAButton>
</div>
<p className="text-sm text-[#666666]">License: MPL-2.0</p>
</FadeIn>
<FadeIn delay={0.5} className="relative w-full">
<div className="absolute bottom-0 w-full dark:from-black from-white to-transparent h-72 bg-gradient-to-t" />
</FadeIn>
</FadeIn>
</>
);
}
|