Skip to content

Commit 27d81d1

Browse files
committed
feat: redesign homepage layout and enhance content
- Revamped the homepage layout to improve visual appeal and user engagement. - Introduced a new title and description highlighting Vercord's functionality as a webhook relay. - Added call-to-action buttons for documentation and GitHub source access. - Implemented a card section showcasing key features: speed, detail, and simplicity. - Included an honest note about the project's nature and self-hosting capabilities.
1 parent 5419672 commit 27d81d1

File tree

1 file changed

+76
-9
lines changed

1 file changed

+76
-9
lines changed
Lines changed: 76 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,83 @@
1+
import { ArrowRight, Github } from "lucide-react";
12
import Link from "next/link";
23

34
export default function HomePage() {
45
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>
1481
</div>
1582
);
1683
}

0 commit comments

Comments
 (0)