|
| 1 | +import { ArrowRight, Github } from "lucide-react"; |
1 | 2 | import Link from "next/link"; |
2 | 3 |
|
3 | 4 | export default function HomePage() { |
4 | 5 | return ( |
5 | | - <div className="flex flex-1 flex-col justify-center text-center"> |
6 | | - <h1 className="mb-4 font-bold text-2xl">Hello World</h1> |
7 | | - <p> |
8 | | - You can open{" "} |
9 | | - <Link className="font-medium underline" href="/docs"> |
10 | | - /docs |
11 | | - </Link>{" "} |
12 | | - and see the documentation. |
13 | | - </p> |
| 6 | + <main className="relative flex flex-1 flex-col items-center justify-center overflow-hidden px-4 py-20"> |
| 7 | + {/* Background grid */} |
| 8 | + <div |
| 9 | + className="pointer-events-none absolute inset-0 opacity-40" |
| 10 | + style={{ |
| 11 | + backgroundImage: |
| 12 | + "radial-gradient(circle at 1px 1px, var(--color-fd-border) 1px, transparent 0)", |
| 13 | + backgroundSize: "32px 32px", |
| 14 | + maskImage: |
| 15 | + "radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 100%)", |
| 16 | + }} |
| 17 | + /> |
| 18 | + |
| 19 | + <div className="relative flex max-w-3xl flex-col items-center gap-6 text-center"> |
| 20 | + {/* Logo/Title */} |
| 21 | + <h1 className="font-bold font-mono text-7xl tracking-tighter sm:text-8xl"> |
| 22 | + <span className="bg-gradient-to-b from-fd-foreground to-fd-muted-foreground bg-clip-text text-transparent"> |
| 23 | + vercord |
| 24 | + </span> |
| 25 | + </h1> |
| 26 | + |
| 27 | + {/* One-liner */} |
| 28 | + <p className="max-w-lg text-fd-muted-foreground text-xl"> |
| 29 | + A webhook relay. Vercel sends deployment events, Vercord forwards them |
| 30 | + to Discord. That's it. |
| 31 | + </p> |
| 32 | + |
| 33 | + {/* CTA */} |
| 34 | + <div className="flex items-center gap-3 pt-4"> |
| 35 | + <Link |
| 36 | + className="group inline-flex items-center gap-2 rounded-full bg-fd-foreground px-6 py-3 font-medium text-fd-background transition-all hover:gap-3" |
| 37 | + href="/docs" |
| 38 | + > |
| 39 | + Read the docs |
| 40 | + <ArrowRight className="size-4 transition-transform group-hover:translate-x-0.5" /> |
| 41 | + </Link> |
| 42 | + <Link |
| 43 | + className="inline-flex items-center gap-2 rounded-full border border-fd-border px-6 py-3 font-medium transition-colors hover:bg-fd-muted" |
| 44 | + href="https://github.com/vercord/core" |
| 45 | + rel="noopener noreferrer" |
| 46 | + target="_blank" |
| 47 | + > |
| 48 | + <Github className="size-4" /> |
| 49 | + Source |
| 50 | + </Link> |
| 51 | + </div> |
| 52 | + |
| 53 | + {/* What you get */} |
| 54 | + <div className="mt-16 grid w-full gap-px overflow-hidden rounded-xl border border-fd-border bg-fd-border sm:grid-cols-3"> |
| 55 | + <Card |
| 56 | + desc="Events hit Discord within seconds of Vercel firing them" |
| 57 | + title="Fast" |
| 58 | + /> |
| 59 | + <Card |
| 60 | + desc="Branch, commit, status, links — all in the embed" |
| 61 | + title="Detailed" |
| 62 | + /> |
| 63 | + <Card desc="Deploy, add 4 env vars, done" title="Simple" /> |
| 64 | + </div> |
| 65 | + |
| 66 | + {/* Honest note */} |
| 67 | + <p className="mt-8 max-w-md text-fd-muted-foreground/60 text-sm"> |
| 68 | + This isn't a platform or a service. It's ~200 lines of code that sits |
| 69 | + between Vercel and Discord. Self-host it, fork it, forget about it. |
| 70 | + </p> |
| 71 | + </div> |
| 72 | + </main> |
| 73 | + ); |
| 74 | +} |
| 75 | + |
| 76 | +function Card({ title, desc }: { title: string; desc: string }) { |
| 77 | + return ( |
| 78 | + <div className="bg-fd-background p-6"> |
| 79 | + <h3 className="font-semibold text-fd-foreground">{title}</h3> |
| 80 | + <p className="mt-1 text-fd-muted-foreground text-sm">{desc}</p> |
14 | 81 | </div> |
15 | 82 | ); |
16 | 83 | } |
0 commit comments