Skip to content

Commit d1e4c55

Browse files
committed
feat(docs): update metrics and add logo assets
refactor(home): remove unused components and update hero section chore: add golang project rules documentation
1 parent cf770d2 commit d1e4c55

3 files changed

Lines changed: 43 additions & 20 deletions

File tree

docs/src/app/(home)/page.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import { MetricsDashboard } from "@/components/MetricsDashboard";
55
import { CodePlayground } from "@/components/CodePlayground";
66
import { UseCases } from "@/components/UseCases";
77
import { ApiExplorer } from "@/components/ApiExplorer";
8-
import { CaseStudiesCarousel } from "@/components/CaseStudiesCarousel";
9-
import { GitHubStats } from "@/components/GitHubStats";
10-
import { Testimonials } from "@/components/Testimonials";
8+
// import { CaseStudiesCarousel } from "@/components/CaseStudiesCarousel";
9+
// import { GitHubStats } from "@/components/GitHubStats";
10+
// import { Testimonials } from "@/components/Testimonials";
1111
import { Newsletter } from "@/components/Newsletter";
12-
import { CTA } from "@/components/CTA";
12+
// import { CTA } from "@/components/CTA";
1313
import { ParticlesBackground } from "@/components/ParticlesBackground";
1414

1515
/**
@@ -21,7 +21,7 @@ export default function HomePage() {
2121
<main className="min-h-screen relative">
2222
<ParticlesBackground />
2323
<Hero />
24-
<GitHubStats noTopBorder />
24+
{/* <GitHubStats noTopBorder /> */}
2525
<Features />
2626
<BentoShowcase />
2727
<MetricsDashboard />

docs/src/components/Hero.tsx

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
'use client'
2+
13
import { Button } from "@/components/ui/button";
2-
import { ArrowRight } from "lucide-react";
4+
import { ArrowRight, CopyIcon } from "lucide-react";
35
import { LineShadowText } from "./ui/line-shadow-text";
6+
import Link from "next/link";
47

58
export const Hero = () => {
69
return (
@@ -23,19 +26,33 @@ export const Hero = () => {
2326
</p>
2427

2528
<div className="flex flex-col sm:flex-row gap-4 mb-12">
26-
<Button size="lg">
27-
Get Started
28-
<ArrowRight className="ml-2 w-4 h-4" />
29-
</Button>
30-
<Button size="lg" variant="outline">
31-
View Documentation
32-
</Button>
29+
<Link href="/docs/forge/quick-start" className="block cursor-pointer">
30+
<Button size="lg">
31+
Get Started
32+
<ArrowRight className="ml-2 w-4 h-4" />
33+
</Button>
34+
</Link>
35+
<Link href="/docs/forge" className="block cursor-pointer">
36+
<Button size="lg" variant="outline">
37+
View Documentation
38+
</Button>
39+
</Link>
3340
</div>
3441

3542
<div className="inline-flex items-center gap-2 text-sm text-muted-foreground">
36-
<code className="px-3 py-2 bg-white/50 rounded-lg font-mono border border-border">
37-
go get github.com/xraph/forge
38-
</code>
43+
<div className="flex items-center gap-2">
44+
<code className="px-3 py-2 bg-white/50 rounded-lg font-mono border border-border">
45+
go get github.com/xraph/forge
46+
</code>
47+
<Button
48+
size="sm"
49+
variant="ghost"
50+
className="p-2"
51+
onClick={() => navigator.clipboard.writeText("go get github.com/xraph/forge")}
52+
>
53+
<CopyIcon />
54+
</Button>
55+
</div>
3956
</div>
4057
</div>
4158
</div>

docs/src/constants/metrics.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
export const metrics = [
2+
// {
3+
// value: 50000,
4+
// suffix: "+",
5+
// label: "GitHub Stars",
6+
// description: "Trusted by developers worldwide"
7+
// },
28
{
3-
value: 50000,
9+
value: 20,
410
suffix: "+",
5-
label: "GitHub Stars",
6-
description: "Trusted by developers worldwide"
11+
label: "Extensions",
12+
description: "Community extensions available"
713
},
814
{
915
value: 100,
@@ -18,7 +24,7 @@ export const metrics = [
1824
description: "Production reliability"
1925
},
2026
{
21-
value: 500,
27+
value: 1,
2228
suffix: "+",
2329
label: "Contributors",
2430
description: "Active open source community"

0 commit comments

Comments
 (0)