|
1 | 1 | import { ArrowRightIcon } from "lucide-react" |
2 | 2 | import Link from "next/link" |
3 | | -import { AutoplayDemo } from "./AutoplayDemo.tsx" |
| 3 | +import { MainAutoplayDemo } from "./AutoplayDemo.tsx" |
4 | 4 | import { PlatformCloud } from "./PlatformCloud.tsx" |
5 | 5 |
|
6 | 6 | export const Hero = () => ( |
7 | | - <div className="flex flex-col md:flex-row justify-between"> |
8 | | - <div className="absolute top-2 left-0 right-0"> |
9 | | - <div className="flex justify-between"> |
10 | | - <PlatformCloud main="ts" right="vscode" top="neovim" left="intellij" /> |
11 | | - <PlatformCloud main="js" right="chromium" top="node" left="bun" /> |
| 7 | + <div> |
| 8 | + <div className="flex flex-col md:flex-row justify-between"> |
| 9 | + <div className="absolute top-2 left-0 right-0"> |
| 10 | + <div className="flex justify-between"> |
| 11 | + <PlatformCloud |
| 12 | + main="ts" |
| 13 | + right="vscode" |
| 14 | + top="neovim" |
| 15 | + left="intellij" |
| 16 | + /> |
| 17 | + <PlatformCloud main="js" right="chromium" top="node" left="bun" /> |
| 18 | + </div> |
| 19 | + </div> |
| 20 | + |
| 21 | + <div className="relative w-full flex flex-col md:items-start text-center md:text-left"> |
| 22 | + <h1 className="mb-4 text-3xl md:text-8xl">ArkType</h1> |
| 23 | + <p className="text-fd-muted-foreground text-2xl leading-relaxed"> |
| 24 | + Optimized runtime validation from familiar, type-safe syntax. |
| 25 | + </p> |
| 26 | + |
| 27 | + {/* This wrapper grows to fill remaining vertical space, placing the link in the centered area */} |
| 28 | + <div className="flex-1 flex items-center justify-center md:justify-start mt-6"> |
| 29 | + <Link |
| 30 | + tabIndex={1} |
| 31 | + href="/docs/intro/setup" |
| 32 | + className="bg-highlight text-black focus-within:outline focus-within:outline-2 outline-white hover:bg-highlight/80 p-5 rounded-full flex gap-2 text-sm items-center" |
| 33 | + > |
| 34 | + Set Sail |
| 35 | + <ArrowRightIcon /> |
| 36 | + </Link> |
| 37 | + </div> |
| 38 | + </div> |
| 39 | + |
| 40 | + <div style={{ padding: "2rem", position: "relative" }}> |
| 41 | + <MainAutoplayDemo /> |
12 | 42 | </div> |
13 | | - </div> |
14 | | - <div className="relative w-full flex flex-col items-center text-center md:items-start md:text-left"> |
15 | | - <h1 className="mb-4 text-3xl md:text-8xl">ArkType</h1> |
16 | | - <p className="text-fd-muted-foreground text-lg"> |
17 | | - Typescript's 1:1 validator, optimized from editor to runtime |
18 | | - </p> |
19 | | - <Link |
20 | | - tabIndex={1} |
21 | | - href="/docs/intro/setup" |
22 | | - className="bg-highlight text-black focus-within:outline focus-within:outline-2 outline-white hover:bg-highlight/80 p-5 rounded-full w-fit flex gap-2 my-3 text-sm items-center" |
23 | | - > |
24 | | - Set Sail |
25 | | - <ArrowRightIcon /> |
26 | | - </Link> |
27 | | - </div> |
28 | | - <div style={{ padding: "2rem", position: "relative" }}> |
29 | | - <AutoplayDemo src="https://github.com/user-attachments/assets/895c439e-fcd3-4420-93fa-299e829fcf26" /> |
30 | 43 | </div> |
31 | 44 | </div> |
32 | 45 | ) |
0 commit comments