Skip to content

Commit 1c90623

Browse files
committed
update
1 parent 4b66fbd commit 1c90623

File tree

5 files changed

+428
-1
lines changed

5 files changed

+428
-1
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
import { APIHeader } from "@/components/blocks/APIHeader";
2+
import {
3+
AccountAddressBasic,
4+
AccountAddressFormat,
5+
AccountBalanceBasic,
6+
AccountBalanceCustomToken,
7+
AccountBalanceFormat,
8+
AccountBalanceUSD,
9+
AccountBalanceUSDFormatted,
10+
} from "@/components/headless-ui/account-examples";
11+
import ThirdwebProvider from "@/components/thirdweb-provider";
12+
import { metadataBase } from "@/lib/constants";
13+
import type { Metadata } from "next";
14+
15+
export const metadata: Metadata = {
16+
metadataBase,
17+
title: "Integrate Fiat & Cross-Chain Crypto Payments | thirdweb Pay",
18+
description:
19+
"The easiest way for users to transact in your app. Onramp users in clicks and generate revenue for each user transaction. Integrate for free.",
20+
};
21+
22+
export default function Page() {
23+
return (
24+
<ThirdwebProvider>
25+
<main className="container px-0 pb-20">
26+
<APIHeader
27+
title="Lorem ipsum"
28+
description={
29+
<>
30+
Lorem ipsum, dolor sit amet consectetur adipisicing elit.
31+
Accusantium reprehenderit corrupti sapiente nobis impedit, beatae
32+
sit unde nihil, facilis vitae sunt. Aperiam sed vero repudiandae
33+
nisi maiores repellat molestiae illum.
34+
</>
35+
}
36+
docsLink="https://portal.thirdweb.com/react/v5/connecting-wallets/ui-components"
37+
heroLink="/pay.png"
38+
/>
39+
40+
<section className="space-y-8">
41+
<AccountAddressBasic />
42+
</section>
43+
<section className="space-y-8">
44+
<AccountAddressFormat />
45+
</section>
46+
<section className="space-y-8">
47+
<AccountBalanceBasic />
48+
</section>
49+
<section className="space-y-8">
50+
<AccountBalanceCustomToken />
51+
</section>
52+
<section className="space-y-8">
53+
<AccountBalanceFormat />
54+
</section>
55+
<section className="space-y-8">
56+
<AccountBalanceUSD />
57+
</section>
58+
<section className="space-y-8">
59+
<AccountBalanceUSDFormatted />
60+
</section>
61+
</main>
62+
</ThirdwebProvider>
63+
);
64+
}

apps/playground-web/src/app/navLinks.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,26 @@ export const navLinks: SidebarLink[] = [
8585
name: "Blockchain API",
8686
href: "/connect/blockchain-api",
8787
},
88+
{
89+
name: "Headless UI",
90+
expanded: true,
91+
links: [
92+
{
93+
name: "Account",
94+
href: "/connect/ui",
95+
},
96+
{
97+
name: "NFT",
98+
href: "/connect/ui/nft",
99+
},
100+
{
101+
name: "Token",
102+
href: "/connect/ui/Token",
103+
},
104+
{
105+
name: "Transaction",
106+
href: "/connect/ui/transaction",
107+
},
108+
],
109+
},
88110
];

apps/playground-web/src/app/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ function WalletsSection() {
6060
description="Performant, and reliable blockchain API"
6161
icon={CodeIcon}
6262
/>
63+
<ArticleCardIndex
64+
href="/connect/ui"
65+
title="Headless UI"
66+
description="Modular & composable set of UIs for your web3 applications"
67+
icon={CodeIcon}
68+
/>
6369
</div>
6470
</section>
6571
);

0 commit comments

Comments
 (0)