|
1 |
| -import Link from "next/link"; |
2 |
| -import { cn } from "@/utils/cn"; |
3 |
| -import { buttonVariants } from "@/components/ui/button"; |
4 |
| -import { CodeBlock } from "@/components/code-block"; |
5 |
| -import { Integration } from "./page.client"; |
| 1 | +import { StacksCardIcon, BitcoinCardIcon } from "@/components/ui/icon"; |
| 2 | +import { Card } from "@/components/ui/card"; |
| 3 | +import { Badge } from "@/components/ui/badge"; |
| 4 | +import Link from "fumadocs-core/link"; |
6 | 5 |
|
7 | 6 | export default function HomePage(): JSX.Element {
|
8 | 7 | return (
|
9 |
| - <> |
10 |
| - <div |
11 |
| - className="absolute inset-x-0 top-[200px] h-[250px] max-md:hidden" |
12 |
| - style={{ |
13 |
| - background: |
14 |
| - "repeating-linear-gradient(to right, hsl(var(--border)), transparent 1px, transparent 50px), repeating-linear-gradient(to bottom, hsl(var(--border)), transparent 1px, transparent 50px)", |
15 |
| - }} |
16 |
| - /> |
17 |
| - <main className="container relative max-w-[1250px] px-8 py-4 lg:py-16"> |
18 |
| - <div className="relative border-b"> |
19 |
| - <div className="grid grid-cols-1 bg-background border-r md:grid-cols-2 lg:grid-cols-3"> |
20 |
| - <div className="relative flex flex-col overflow-hidden border-l border-t px-6 py-10"> |
21 |
| - <h2 className="text-7xl font-extrabold font-sans"> |
22 |
| - Build on Bitcoin Layers. |
23 |
| - </h2> |
24 |
| - <ul className="my-8 flex flex-col gap-6"> |
25 |
| - <li> |
26 |
| - <span className="font-medium">Guides and code samples.</span> |
27 |
| - <span className="ml-2 text-muted-foreground"> |
28 |
| - Copy and paste your way to making things work. |
29 |
| - </span> |
30 |
| - </li> |
31 |
| - <li> |
32 |
| - <span className="font-medium">Interactive.</span> |
33 |
| - <span className="ml-2 text-muted-foreground"> |
34 |
| - Play around and get results before installing anything. |
35 |
| - </span> |
36 |
| - </li> |
37 |
| - <li> |
38 |
| - <span className="font-medium">Fully open-source.</span> |
39 |
| - <span className="ml-2 text-muted-foreground"> |
40 |
| - Open source, available on Github for contributions. |
41 |
| - </span> |
42 |
| - </li> |
43 |
| - </ul> |
44 |
| - <div className="w-full mt-auto flex flex-row flex-wrap *:flex-1 gap-2 border-t pt-8"> |
45 |
| - <Link |
46 |
| - href="/stacks" |
47 |
| - className={cn( |
48 |
| - buttonVariants(), |
49 |
| - "bg-[rgb(255,85,0)] hover:bg-[rgba(255,85,0,0.9)]" |
50 |
| - )} |
51 |
| - > |
52 |
| - Get started |
53 |
| - </Link> |
54 |
| - <Link |
55 |
| - href="/guides" |
56 |
| - className={cn( |
57 |
| - buttonVariants({ |
58 |
| - variant: "outline", |
59 |
| - }) |
60 |
| - )} |
61 |
| - > |
62 |
| - View all guides |
63 |
| - </Link> |
64 |
| - </div> |
| 8 | + <main className="container max-w-7xl mx-auto my-12 space-y-10"> |
| 9 | + <div className="space-y-1"> |
| 10 | + <h1 className="text-4xl font-bold text-gray-900"> |
| 11 | + Welcome to Hiro Docs. |
| 12 | + </h1> |
| 13 | + <h2 className="text-2xl font-bold text-muted-foreground"> |
| 14 | + Explore our tutorials, guides, API references, and more. |
| 15 | + </h2> |
| 16 | + </div> |
| 17 | + |
| 18 | + <div className="grid md:grid-cols-2 gap-6 mb-16"> |
| 19 | + {/* Stacks Docs Card */} |
| 20 | + <Link |
| 21 | + href="/stacks" |
| 22 | + className="not-prose block rounded-lg border bg-card p-4 text-md text-card-foreground transition-colors hover:bg-accent/80" |
| 23 | + > |
| 24 | + <div className="mb-6"> |
| 25 | + <div className="w-20 h-20 rounded-lg flex items-center justify-center mb-4"> |
| 26 | + <StacksCardIcon /> |
65 | 27 | </div>
|
| 28 | + <h3 className="text-xl font-semibold mb-2">Stacks Docs</h3> |
| 29 | + <p className="text-muted-foreground">Start building on Stacks.</p> |
| 30 | + </div> |
66 | 31 |
|
67 |
| - <Integration |
68 |
| - className="border-t lg:col-span-2" |
69 |
| - codeBlocks={[ |
70 |
| - { |
71 |
| - key: "clarinet", |
72 |
| - message: "Install now and start building!", |
73 |
| - block: ( |
74 |
| - <CodeBlock |
75 |
| - wrapper={{ className: "mt-2" }} |
76 |
| - lang="bash" |
77 |
| - code="brew install clarinet" |
78 |
| - /> |
79 |
| - ), |
80 |
| - }, |
81 |
| - { |
82 |
| - key: "stacks.js", |
83 |
| - message: "Try it in your terminal!", |
84 |
| - block: ( |
85 |
| - <CodeBlock |
86 |
| - wrapper={{ className: "mt-2" }} |
87 |
| - lang="bash" |
88 |
| - code="npx create stacks" |
89 |
| - /> |
90 |
| - ), |
91 |
| - }, |
92 |
| - { |
93 |
| - key: "chainhook", |
94 |
| - message: "Install now and start scanning!", |
95 |
| - block: ( |
96 |
| - <CodeBlock |
97 |
| - wrapper={{ className: "mt-2" }} |
98 |
| - lang="bash" |
99 |
| - code="brew install chainhook" |
100 |
| - /> |
101 |
| - ), |
102 |
| - }, |
103 |
| - ]} |
104 |
| - /> |
| 32 | + <div className="flex flex-wrap gap-2"> |
| 33 | + <Badge |
| 34 | + variant="secondary" |
| 35 | + className="bg-background/95 text-gray-900" |
| 36 | + > |
| 37 | + CLARINET |
| 38 | + </Badge> |
| 39 | + <Badge |
| 40 | + variant="secondary" |
| 41 | + className="bg-background/95 text-gray-900" |
| 42 | + > |
| 43 | + CHAINHOOK |
| 44 | + </Badge> |
| 45 | + <Badge |
| 46 | + variant="secondary" |
| 47 | + className="bg-background/95 text-gray-900" |
| 48 | + > |
| 49 | + STACKS.JS |
| 50 | + </Badge> |
| 51 | + <Badge |
| 52 | + variant="secondary" |
| 53 | + className="bg-background/95 text-gray-900" |
| 54 | + > |
| 55 | + HIRO PLATFORM |
| 56 | + </Badge> |
| 57 | + <Badge |
| 58 | + variant="secondary" |
| 59 | + className="bg-background/95 text-gray-900" |
| 60 | + > |
| 61 | + STACKS API |
| 62 | + </Badge> |
| 63 | + <Badge |
| 64 | + variant="secondary" |
| 65 | + className="bg-background/95 text-gray-900" |
| 66 | + > |
| 67 | + TOKEN METADATA API |
| 68 | + </Badge> |
| 69 | + <Badge |
| 70 | + variant="secondary" |
| 71 | + className="bg-background/95 text-gray-900" |
| 72 | + > |
| 73 | + +3 MORE |
| 74 | + </Badge> |
| 75 | + </div> |
| 76 | + </Link> |
| 77 | + <Link |
| 78 | + href="/bitcoin" |
| 79 | + className="not-prose block rounded-lg border bg-card p-4 text-md text-card-foreground transition-colors hover:bg-accent/80" |
| 80 | + > |
| 81 | + <div className="mb-6"> |
| 82 | + <div className="w-20 h-20 rounded-lg flex items-center justify-center mb-4"> |
| 83 | + <BitcoinCardIcon /> |
| 84 | + </div> |
| 85 | + <h3 className="text-xl font-semibold mb-2">Bitcoin Docs</h3> |
| 86 | + <p className="text-muted-foreground"> |
| 87 | + Start building on Ordinals and Runes. |
| 88 | + </p> |
105 | 89 | </div>
|
| 90 | + <div className="flex flex-wrap gap-2"> |
| 91 | + <Badge |
| 92 | + variant="secondary" |
| 93 | + className="bg-background/95 text-gray-900" |
| 94 | + > |
| 95 | + ORDHOOK |
| 96 | + </Badge> |
| 97 | + <Badge |
| 98 | + variant="secondary" |
| 99 | + className="bg-background/95 text-gray-900" |
| 100 | + > |
| 101 | + ORDINALS API |
| 102 | + </Badge> |
| 103 | + <Badge |
| 104 | + variant="secondary" |
| 105 | + className="bg-background/95 text-gray-900" |
| 106 | + > |
| 107 | + RUNES API |
| 108 | + </Badge> |
| 109 | + </div> |
| 110 | + </Link> |
| 111 | + </div> |
| 112 | + |
| 113 | + <main className="space-y-6"> |
| 114 | + <div className="space-y-1"> |
| 115 | + <h2 className="text-2xl font-bold">Need help getting started?</h2> |
| 116 | + <p className="text-xl text-muted-foreground"> |
| 117 | + Check out these resources. |
| 118 | + </p> |
| 119 | + </div> |
| 120 | + |
| 121 | + <div className="grid md:grid-cols-4 gap-6"> |
| 122 | + <Link href="/stacks/get-started" className="block h-full"> |
| 123 | + <Card className="p-6 border bg-card h-full flex flex-col"> |
| 124 | + <h3 className="text-lg font-semibold mb-2"> |
| 125 | + Get started with Stacks |
| 126 | + </h3> |
| 127 | + <p className="text-muted-foreground text-sm flex-grow"> |
| 128 | + Build on Stacks with some of our most popular guides and |
| 129 | + tutorials. |
| 130 | + </p> |
| 131 | + </Card> |
| 132 | + </Link> |
| 133 | + <Link href="/stacks/api" className="block h-full"> |
| 134 | + <Card className="p-6 border bg-card h-full flex flex-col"> |
| 135 | + <h3 className="text-lg font-semibold mb-2"> |
| 136 | + Stacks API Overview |
| 137 | + </h3> |
| 138 | + <p className="text-muted-foreground text-sm flex-grow"> |
| 139 | + View the API reference for the Stacks API. |
| 140 | + </p> |
| 141 | + </Card> |
| 142 | + </Link> |
| 143 | + <Link href="/bitcoin/get-started" className="block h-full"> |
| 144 | + <Card className="p-6 border bg-card h-full flex flex-col"> |
| 145 | + <h3 className="text-lg font-semibold mb-2"> |
| 146 | + Get started with Bitcoin |
| 147 | + </h3> |
| 148 | + <p className="text-muted-foreground text-sm flex-grow"> |
| 149 | + Build on Bitcoin with some of our most popular guides and |
| 150 | + tutorials. |
| 151 | + </p> |
| 152 | + </Card> |
| 153 | + </Link> |
| 154 | + <Link href="/bitcoin/ordinals/api" className="block h-full"> |
| 155 | + <Card className="p-6 border bg-card h-full flex flex-col"> |
| 156 | + <h3 className="text-lg font-semibold mb-2"> |
| 157 | + Ordinals API Overview |
| 158 | + </h3> |
| 159 | + <p className="text-muted-foreground text-sm flex-grow"> |
| 160 | + View the API reference for our Ordinals API. |
| 161 | + </p> |
| 162 | + </Card> |
| 163 | + </Link> |
106 | 164 | </div>
|
107 | 165 | </main>
|
108 |
| - </> |
| 166 | + </main> |
109 | 167 | );
|
110 | 168 | }
|
0 commit comments