Skip to content

Commit fedb903

Browse files
committed
update homepage
1 parent 55940f0 commit fedb903

File tree

6 files changed

+560
-60
lines changed

6 files changed

+560
-60
lines changed

.github/copilot-instructions.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
applyTo: "**"
3+
---
4+
5+
# Copilot Instructions for Mesh SDK
6+
7+
Rule:
8+
You are a senior engineer with deep experience building production-grade frontend and backend system. Every task you execute must follow this procedure without exception:
9+
10+
1.Clarify Scope First
11+
•Before writing any code, map out exactly how you will approach the task.
12+
•Confirm your interpretation of the objective.
13+
•Write a clear plan showing what functions, modules, or components will be touched and why.
14+
•Do not begin implementation until this is done and reasoned through.
15+
16+
2.Locate Exact Code Insertion Point
17+
•Identify the precise file(s) and line(s) where the change will live.
18+
•Never make sweeping edits across unrelated files.
19+
•If multiple files are needed, justify each inclusion explicitly.
20+
•Do not create new abstractions or refactor unless the task explicitly says so.
21+
22+
3.Minimal, Contained Changes
23+
•Only write code directly required to satisfy the task.
24+
•Avoid adding logging, comments, tests, TODOs, cleanup, or error handling unless directly necessary.
25+
•No speculative changes or “while we’re here” edits.
26+
•All logic should be isolated to not break existing flows.
27+
28+
4.Double Check Everything
29+
•Review for correctness, scope adherence, and side effects.
30+
•Ensure your code is aligned with the existing codebase patterns and avoids regressions.
31+
•Explicitly verify whether anything downstream will be impacted.
32+
33+
5.Deliver Clearly
34+
•Summarize what was changed and why.
35+
•List every file modified and what was done in each.
36+
•If there are any assumptions or risks, flag them for review.
37+
38+
6.Documentation
39+
•For every change in request and response type, change the project specification at .github/prompts/project.md and swagger at swagger.yaml
40+
41+
7. For user interface
42+
- Use only components in the `components` directory.
43+
44+
Reminder: You are not a co-pilot, assistant, or brainstorm partner. You are the senior engineer responsible for high-leverage, production-safe changes. Do not improvise. Do not over-engineer. Do not deviate

apps/docs/app/(home)/page.mdx

Lines changed: 131 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ import {
1313
Users,
1414
Star,
1515
ChevronRight,
16-
} from "lucide-react"
17-
import { cn } from '@/lib/cn';
18-
import { buttonVariants } from '@/components/ui/button';
16+
} from "lucide-react";
17+
import { cn } from "@/lib/cn";
18+
import { buttonVariants } from "@/components/ui/button";
1919
import { iconResolver } from "@/lib/iconResolver";
20+
import { Cards } from "fumadocs-ui/components/card";
2021
import {
2122
Card,
2223
CardAction,
@@ -30,7 +31,13 @@ import {
3031
BoltIcon,
3132
PaintBrushIcon,
3233
RocketLaunchIcon,
33-
WalletIcon
34+
WalletIcon,
35+
BanknotesIcon,
36+
MagnifyingGlassIcon,
37+
WrenchScrewdriverIcon,
38+
ComputerDesktopIcon,
39+
DocumentCheckIcon,
40+
CloudIcon,
3441
} from "@heroicons/react/24/solid";
3542

3643
<main className="min-h-screen">
@@ -47,31 +54,20 @@ import {
4754
Ship UTXO Apps Faster with Mesh
4855
</h1>
4956

50-
<p className="text-lg sm:text-xl mb-10 max-w-2xl mx-auto leading-relaxed">
51-
Mesh is the open-source TypeScript SDK for Cardano that helps developers write better code and scale applications with ease
52-
</p>
57+
<div className="text-lg sm:text-xl mb-10 max-w-2xl mx-auto leading-relaxed">
58+
Mesh is the open-source TypeScript SDK that helps developers write better code and scale applications with ease
59+
</div>
5360

5461
<div className="flex flex-col sm:flex-row gap-4 justify-center items-center">
5562
<Link
56-
href="/guides/nextjs"
63+
href="/guides"
5764
className={cn(
5865
buttonVariants({ size: 'lg', color: 'primary' }),
5966
'rounded-xl px-10 py-4 text-lg font-semibold flex items-center justify-center gap-2 transition-all duration-500 group hover:shadow-xl hover:shadow-primary/10 hover:scale-105'
6067
)}
6168
>
6269
🚀 Get Started
6370
</Link>
64-
65-
<Link
66-
href="https://github.com/MeshJS/examples"
67-
className={cn(
68-
buttonVariants({ size: 'lg', color: 'secondary' }),
69-
'rounded-xl px-10 py-4 text-lg font-semibold flex items-center justify-center gap-2 transition-all duration-500 hover:shadow-xl hover:shadow-primary/10 hover:scale-105 group bg-gradient-to-br from-background to-card'
70-
)}
71-
>
72-
<Code className="w-5 h-5" />
73-
View Examples
74-
</Link>
7571
</div>
7672

7773
<div className="mt-12 flex flex-wrap justify-center gap-8 text-sm">
@@ -89,13 +85,115 @@ import {
8985
</span>
9086
<span className="inline-flex items-center">
9187
<Users className="w-4 h-4 mr-1" />
92-
10k+ Developers
88+
3k+ Weekly Downloads
9389
</span>
9490
</div>
9591
</div>
9692
</div>
93+
9794
</section>
9895

96+
<section className="py-16 sm:py-20 lg:py-32 xl:py-36 relative">
97+
<div className="container mx-auto px-4 sm:px-6 lg:px-8">
98+
<div className="text-center mb-16">
99+
<h2 className="font-heading font-bold text-3xl lg:text-4xl mb-4">Has everything you need</h2>
100+
<div className="text-xl max-w-2xl mx-auto">
101+
Comprehensive suite of tools and libraries to help you build amazing applications
102+
</div>
103+
</div>
104+
105+
<div className="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
106+
{[
107+
{
108+
title: "Wallets",
109+
href: "/apis/wallets",
110+
icon: <WalletIcon />,
111+
description: "Wallets APIs for interacting with the blockchain"
112+
},
113+
{
114+
title: "Transaction Builder",
115+
href: "/apis/txbuilder",
116+
icon: <BanknotesIcon />,
117+
description: "Build transactions with cardano-cli like APIs"
118+
},
119+
{
120+
title: "Transaction Parser",
121+
href: "/apis/txparser",
122+
icon: <MagnifyingGlassIcon />,
123+
description: "Parse transactions for testing and rebuilding"
124+
},
125+
{
126+
title: "Providers",
127+
href: "/providers",
128+
icon: <CloudIcon />,
129+
description: "Data providers for connecting to the blockchain"
130+
},
131+
{
132+
title: "Utilities",
133+
href: "/apis/utilities",
134+
icon: <WrenchScrewdriverIcon />,
135+
description: "Serializers, resolvers and data types for converting between different formats"
136+
},
137+
{
138+
title: "React Components",
139+
href: "/react",
140+
icon: <ComputerDesktopIcon />,
141+
description: "Frontend React UI components and React hooks"
142+
},
143+
{
144+
title: "Svelte Components",
145+
href: "/svelte",
146+
icon: <ComputerDesktopIcon />,
147+
description: "Svelte UI components for wallet connections"
148+
},
149+
{
150+
title: "Smart Contract Library",
151+
href: "/smart-contracts",
152+
icon: <DocumentCheckIcon />,
153+
description: "Open-source smart contracts, complete with documentation, and live demos"
154+
},
155+
{
156+
title: "Aiken",
157+
href: "/aiken",
158+
icon: iconResolver("icons/aiken.png"),
159+
description: "Function programming language created for Cardano smart contract development"
160+
},
161+
{
162+
title: "Hydra",
163+
href: "/hydra",
164+
icon: iconResolver("icons/hydra.svg"),
165+
description: "Layer 2 scaling solution for Cardano"
166+
},
167+
{
168+
title: "Yaci",
169+
href: "/yaci",
170+
icon: iconResolver("icons/yaci.png"),
171+
description: "Custom devnet to tailor your devnet needs with a builtin indexer"
172+
},
173+
{
174+
title: "Midnight",
175+
href: "https://midnight.meshjs.dev/en",
176+
icon: iconResolver("icons/midnight.svg", "invert dark:invert-0"),
177+
description: "Leveraging zero-knowledge technology to enable data protection"
178+
},
179+
{
180+
title: "Wallet as a Service",
181+
href: "https://utxos.dev/",
182+
icon: iconResolver("icons/mesh.svg", "invert dark:invert-0"),
183+
description: "Access self-custodial wallet using social logins"
184+
}
185+
].map((card) => (
186+
<Link key={card.title} href={card.href}>
187+
<Card className="text-center hover:border-primary/50 transition-colors px-4 py-8">
188+
<CardTitle className="font-heading">{card.title}</CardTitle>
189+
<CardDescription>{card.description}</CardDescription>
190+
</Card>
191+
</Link>
192+
))}
193+
</div>
194+
</div>
195+
196+
</section>
99197

100198
<section id="features" className="py-16 sm:py-20 lg:py-32 xl:py-36 relative overflow-hidden">
101199
<div className="container mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
@@ -109,9 +207,9 @@ import {
109207
Built for Modern Web3 Development
110208
</h2>
111209

112-
<p className="text-lg max-w-2xl mx-auto">
210+
<div className="text-lg max-w-2xl mx-auto">
113211
Here are a few reasons why developers love building with Mesh
114-
</p>
212+
</div>
115213
</div>
116214

117215
<div className="grid md:grid-cols-3 gap-8">
@@ -160,6 +258,7 @@ import {
160258
</Card>
161259
</div>
162260
</div>
261+
163262
</section>
164263

165264
<section className="py-16 sm:py-20 lg:py-32 xl:py-36 relative">
@@ -174,10 +273,10 @@ import {
174273
<h2 className="font-heading font-bold text-3xl lg:text-4xl mb-6">
175274
Frontend Components & React Hooks
176275
</h2>
177-
<p className="text-lg mb-6">
276+
<div className="text-lg mb-6">
178277
Mesh provides everything you need to bring your Web3 user interface to life with ready-to-use components
179278
and hooks.
180-
</p>
279+
</div>
181280
<div className="space-y-4">
182281
{[
183282
{ icon: RocketLaunchIcon, text: "Getting Started with React", link: "/react/getting-started" },
@@ -224,6 +323,7 @@ import {
224323
</Card>
225324
</div>
226325
</div>
326+
227327
</section>
228328

229329
<section className="py-16 sm:py-20 lg:py-32 xl:py-36 relative">
@@ -238,9 +338,9 @@ import {
238338
<h2 className="font-heading font-bold text-3xl lg:text-4xl mb-6">
239339
Universal Wallet Support
240340
</h2>
241-
<p className="text-lg mb-6">
341+
<div className="text-lg mb-6">
242342
Mesh Wallet provides APIs to interact with Cardano. Its transaction builder works with cardano-cli wallets, seed phrases, private keys, and CIP wallets, making it easy to build scripts or multi-signature apps.
243-
</p>
343+
</div>
244344
</div>
245345

246346
<Card className="transition-all duration-500 hover:shadow-xl hover:shadow-primary/10 hover:scale-105 group bg-gradient-to-br from-background to-card">
@@ -267,44 +367,16 @@ import {
267367
</Card>
268368
</div>
269369
</div>
270-
</section>
271370

272-
<section className="py-16 sm:py-20 lg:py-32 xl:py-36 relative">
273-
<div className="container mx-auto px-4 sm:px-6 lg:px-8">
274-
<div className="text-center mb-16">
275-
<h2 className="font-heading font-bold text-3xl lg:text-4xl mb-4">Integrate with Services</h2>
276-
<p className="text-xl max-w-2xl mx-auto">
277-
Choose between multiple providers to access blockchain data and services
278-
</p>
279-
</div>
280-
281-
<div className="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
282-
{[
283-
{ name: "Blockfrost", description: "Featuring over 100 APIs tailored for easy access to Cardano blockchain", icon: "providers/blockfrost.png"},
284-
{ name: "Hydra Provider (beta)", description: "Layer 2 scaling solution for Cardano that increases transaction throughput and ensures cost efficiency while maintaining security.", icon: "providers/hydra.svg" },
285-
{ name: "Maestro", description: "Advanced UTxO-indexing data layer to supercharge Defi on Bitcoin, Cardano & Dogecoin", icon: "providers/maestro.png"},
286-
{ name: "Ogmios", description: "Lightweight bridge interface for cardano-node that offers WebSockets API that enables local clients to speak Ouroboros' mini-protocols", icon: "providers/ogmios.png"},
287-
{ name: "UTxORPC", description: "Highly efficient through gRPC, using a compact and high-performance binary format", icon: "providers/utxo-rpc.png"},
288-
{ name: "Yaci", description: "Custom Cardano devnet to tailor your devnet needs with a builtin indexer and custom viewer for devnet", icon: "providers/yaci.png"},
289-
{ name: "Offline Fetcher", description: "An offline blockchain data provider for testing, development and offline scenarios.", icon: "maestro.png"},
290-
{ name: "Offline Evaluator", description: "Advanced UTxO-indexing data layer to supercharge Defi on Bitcoin, Cardano & DogecoinAn offline Plutus script evaluator for testing and validation.", icon: "maestro.png"},
291-
].map((provider) => (
292-
<Card key={provider.name} className="text-center hover:border-primary/50 transition-colors px-4 py-8">
293-
<CardTitle className="font-heading">{provider.name}</CardTitle>
294-
<CardDescription>{provider.description}</CardDescription>
295-
</Card>
296-
))}
297-
</div>
298-
</div>
299371
</section>
300372

301373
<section className="py-16 sm:py-20 lg:py-32 xl:py-36 relative">
302374
<div className="container mx-auto px-4 sm:px-6 lg:px-8">
303375
<div className="text-center mb-16">
304376
<h2 className="font-heading font-bold text-3xl lg:text-4xl mb-4">Start building with Mesh</h2>
305-
<p className="text-xl max-w-2xl mx-auto">
377+
<div className="text-xl max-w-2xl mx-auto">
306378
Mesh gives you ready-to-use utilities for transactions, wallets, and tokens on Cardano. Check the docs or try an example to see it in action.
307-
</p>
379+
</div>
308380
</div>
309381

310382
<div className="flex flex-col sm:flex-row gap-4 justify-center items-center">
@@ -320,16 +392,17 @@ import {
320392
</Link>
321393

322394
<Link
323-
href="https://docs.meshjs.dev/"
395+
href="/guides"
324396
className={cn(
325397
buttonVariants({ size: 'lg', color: 'secondary' }),
326398
'rounded-xl px-10 py-4 text-lg font-semibold flex items-center justify-center gap-2 transition-all duration-500 hover:shadow-xl hover:shadow-primary/10 hover:scale-105 group bg-gradient-to-br from-background to-card'
327399
)}
328400
>
329401
<Globe className="mr-2 w-5 h-5" />
330-
Read the Docs
402+
Check the guides
331403
</Link>
332404
</div>
333405
</div>
406+
334407
</section>
335408
</main>

0 commit comments

Comments
 (0)