Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions apps/playground-web/src/app/connect/ui/nft/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import { APIHeader } from "@/components/blocks/APIHeader";
import {
NftCardDemo,
NftDescriptionBasic,
NftMediaBasic,
NftMediaOverride,
NftNameBasic,
} from "@/components/headless-ui/nft-examples";
import ThirdwebProvider from "@/components/thirdweb-provider";
import { metadataBase } from "@/lib/constants";
import type { Metadata } from "next";

export const metadata: Metadata = {
metadataBase,
title: "NFT Components",
description:
"Elevate your NFT marketplace with our React headless UI components, engineered for seamless digital asset transactions. These customizable, zero-styling components simplify NFT interactions while giving developers complete freedom to craft their perfect user interface.",
};

export default function Page() {
return (
<ThirdwebProvider>
<main className="container px-0 pb-20">
<APIHeader
title="NFT Components"
description={
<>
Elevate your NFT applications with our React headless UI
components, engineered for seamless digital asset transactions.
These customizable, zero-styling components simplify NFT
interactions while giving developers complete freedom to craft
their perfect user interface.
</>
}
docsLink="https://portal.thirdweb.com/react/v5/connecting-wallets/ui-components"
heroLink="/headless-ui-header.png"
/>
<section className="space-y-8">
<NftMediaBasic />
</section>
<section className="space-y-8">
<NftMediaOverride />
</section>
<section className="space-y-8">
<NftNameBasic />
</section>
<section className="space-y-8">
<NftDescriptionBasic />
</section>
<section className="space-y-8">
<NftCardDemo />
</section>
</main>
</ThirdwebProvider>
);
}
80 changes: 80 additions & 0 deletions apps/playground-web/src/app/connect/ui/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import { APIHeader } from "@/components/blocks/APIHeader";
import {
AccountAddressBasic,
AccountAddressFormat,
AccountAvatarBasic,
AccountBalanceBasic,
AccountBalanceCustomToken,
AccountBalanceFormat,
AccountBalanceUSD,
AccountBlobbieBasic,
AccountNameBasic,
AccountNameCustom,
ConnectDetailsButtonClone,
} from "@/components/headless-ui/account-examples";
import ThirdwebProvider from "@/components/thirdweb-provider";
import { metadataBase } from "@/lib/constants";
import type { Metadata } from "next";

export const metadata: Metadata = {
metadataBase,
title: "Account Components",
description:
"Streamline your Web3 development with our React headless UI components for wallet integration. These unstyled, customizable components handle complex wallet operations while giving you complete control over your dApp's design.",
};

export default function Page() {
return (
<ThirdwebProvider>
<main className="container px-0 pb-20">
<APIHeader
title="Account Components"
description={
<>
Streamline your Web3 development with our React headless UI
components for wallet integration. These unstyled, customizable
components handle complex wallet operations while giving you
complete control over your dApp&apos;s design.
</>
}
docsLink="https://portal.thirdweb.com/react/v5/connecting-wallets/ui-components"
heroLink="/headless-ui-header.png"
/>

<section className="space-y-8">
<AccountAddressBasic />
</section>
<section className="space-y-8">
<AccountAddressFormat />
</section>
<section className="space-y-8">
<AccountNameBasic />
</section>
<section className="space-y-8">
<AccountNameCustom />
</section>
<section className="space-y-8">
<AccountBalanceBasic />
</section>
<section className="space-y-8">
<AccountBalanceCustomToken />
</section>
<section className="space-y-8">
<AccountBalanceFormat />
</section>
<section className="space-y-8">
<AccountBalanceUSD />
</section>
<section className="space-y-8">
<AccountAvatarBasic />
</section>
<section className="space-y-8">
<AccountBlobbieBasic />
</section>
<section className="space-y-8">
<ConnectDetailsButtonClone />
</section>
</main>
</ThirdwebProvider>
);
}
14 changes: 14 additions & 0 deletions apps/playground-web/src/app/navLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,18 @@ export const navLinks: SidebarLink[] = [
name: "Blockchain API",
href: "/connect/blockchain-api",
},
{
name: "Headless UI",
expanded: true,
links: [
{
name: "Account",
href: "/connect/ui",
},
{
name: "NFT",
href: "/connect/ui/nft",
},
],
},
];
6 changes: 6 additions & 0 deletions apps/playground-web/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ function WalletsSection() {
description="Performant, and reliable blockchain API"
icon={CodeIcon}
/>
<ArticleCardIndex
href="/connect/ui"
title="Headless UI"
description="Modular & composable set of UIs for your web3 applications"
icon={CodeIcon}
/>
</div>
</section>
);
Expand Down
Loading
Loading