Skip to content

Commit

Permalink
feat: add missing component pages
Browse files Browse the repository at this point in the history
  • Loading branch information
marthendalnunes committed Nov 27, 2023
1 parent cbd98b1 commit df62763
Show file tree
Hide file tree
Showing 43 changed files with 528 additions and 91 deletions.
18 changes: 9 additions & 9 deletions apps/www/app/examples/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ export default function ExamplesLayout({ children }: ExamplesLayoutProps) {
<>
<div className="container relative">
<PageHeader className="page-header pb-8">
<Link
href="/docs/components/wallet-connect"
className="inline-flex items-center rounded-lg bg-muted px-3 py-1 text-sm font-medium"
>
⚡️ <Separator className="mx-2 h-4" orientation="vertical" />{" "}
<span className="sm:hidden">Build Web3 in Turbo Mode.</span>
<span className="hidden sm:inline">Build Web3 in Turbo Mode</span>
<ArrowRightIcon className="ml-1 h-4 w-4" />
</Link>
<Link
href="/docs/components/wallet-connect"
className="inline-flex items-center rounded-lg bg-muted px-3 py-1 text-sm font-medium"
>
⚡️ <Separator className="mx-2 h-4" orientation="vertical" />{" "}
<span className="sm:hidden">Build Web3 in Turbo Mode.</span>
<span className="hidden sm:inline">Build Web3 in Turbo Mode</span>
<ArrowRightIcon className="ml-1 h-4 w-4" />
</Link>
<PageHeaderHeading className="hidden md:block">
Check out some examples.
</PageHeaderHeading>
Expand Down
2 changes: 1 addition & 1 deletion apps/www/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const metadata: Metadata = {
"Radix UI",
"WAGMI",
"Web3",
"Ethereum"
"Ethereum",
],
authors: [
{
Expand Down
4 changes: 2 additions & 2 deletions apps/www/config/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ export const docsConfig: DocsConfig = {
items: [],
},
{
title: "Wallet Manage",
title: "(WIP) Wallet Manage",
href: "/docs/components/wallet-manage",
items: [],
},
{
title: "Network Manage",
title: "(WIP) Network Manage",
href: "/docs/components/network-manage",
items: [],
},
Expand Down
2 changes: 1 addition & 1 deletion apps/www/content/docs/components/account-address.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Address
description: Display connected account address.
component: true
wagmi:
link: https://wagmi.sh/react/hooks/useNetwork
link: https://wagmi.sh/react/hooks/useAccount
---

<ComponentPreview
Expand Down
57 changes: 57 additions & 0 deletions apps/www/content/docs/components/account-balance.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
title: Account Balance
description: Display the balance of the connected account.
component: true
wagmi:
link: https://wagmi.sh/react/hooks/useAccount
---

<ComponentPreview
name="account-balance-demo"
className="[&_.preview>[data-orientation=vertical]]:sm:max-w-[70%]"
/>

## Installation

<Tabs defaultValue="manual">

<TabsList>
<TabsTrigger value="manual">Manual</TabsTrigger>
<TabsTrigger disabled={true} value="cli">
CLI (Coming Soon)
</TabsTrigger>
</TabsList>

<TabsContent value="cli">

<Steps>

<Step>Coming soon...</Step>

</Steps>

</TabsContent>

<TabsContent value="manual">

<Steps>

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="account-balance" />

</Steps>

</TabsContent>

</Tabs>

## Usage

```tsx
import { AccountBalance } from "@/components/buidl/account-balance"
```

```tsx
<AccountBalance />
```
9 changes: 7 additions & 2 deletions apps/www/content/docs/components/account-blockie.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
title: Account Blockie
description: Display connected account blockie identicon.
component: true

wagmi:
link: https://wagmi.sh/react/hooks/useAccount
---

<ComponentPreview
Expand Down Expand Up @@ -35,9 +36,13 @@ component: true

<Steps>

<Step>Install the following components:</Step>

- [Blockie](/docs/components/blockie)

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="blockie" />
<ComponentSource name="account-blockie" />

</Steps>

Expand Down
6 changes: 5 additions & 1 deletion apps/www/content/docs/components/account-ens-avatar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Account ENS Avatar
description: Display the connected account ENS avatar.
component: true
radix:
wagmi:
link: https://wagmi.sh/react/hooks/useEnsAvatar
---

Expand Down Expand Up @@ -36,6 +36,10 @@ radix:

<Steps>

<Step>Install the following components:</Step>

- [EnsAvatar](/docs/components/ens-avatar)

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="account-ens-avatar" />
Expand Down
12 changes: 8 additions & 4 deletions apps/www/content/docs/components/account-ens-name.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: Account ENS Name
description: Display the connected account ENS name.
component: true
radix:
link: https://wagmi.sh/react/hooks/useEnsAvatar
wagmi:
link: https://wagmi.sh/react/hooks/useAccount
---

<ComponentPreview
Expand Down Expand Up @@ -36,6 +36,10 @@ radix:

<Steps>

<Step>Install the following components:</Step>

- [EnsName](/docs/components/ens-name)

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="account-ens-name" />
Expand All @@ -49,9 +53,9 @@ radix:
## Usage

```tsx
import { AccountEnsAvatar } from "@/components/buidl/account-ens-name"
import { AccountEnsName } from "@/components/buidl/account-ens-name"
```

```tsx
<AccountEnsAvatar />
<AccountEnsName />
```
57 changes: 57 additions & 0 deletions apps/www/content/docs/components/account-nonce.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
title: Account Nonce
description: Display the nonce of the connected account.
component: true
wagmi:
link: https://wagmi.sh/react/hooks/useAccount
---

<ComponentPreview
name="account-nonce-demo"
className="[&_.preview>[data-orientation=vertical]]:sm:max-w-[70%]"
/>

## Installation

<Tabs defaultValue="manual">

<TabsList>
<TabsTrigger value="manual">Manual</TabsTrigger>
<TabsTrigger disabled={true} value="cli">
CLI (Coming Soon)
</TabsTrigger>
</TabsList>

<TabsContent value="cli">

<Steps>

<Step>Coming soon...</Step>

</Steps>

</TabsContent>

<TabsContent value="manual">

<Steps>

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="account-nonce" />

</Steps>

</TabsContent>

</Tabs>

## Usage

```tsx
import { AccountNonce } from "@/components/buidl/account-nonce"
```

```tsx
<AccountNonce />
```
58 changes: 58 additions & 0 deletions apps/www/content/docs/components/block-explorer-link.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
title: Block Explorer Link
description: Link to an address or transaction to the block explorer of a given network.
component: true
wagmi:
link: https://wagmi.sh/react/hooks/useNetwork
---

<ComponentPreview
name="block-explorer-link-demo"
className="[&_.preview>[data-orientation=vertical]]:sm:max-w-[70%]"
/>

## Installation

<Tabs defaultValue="manual">

<TabsList>
<TabsTrigger value="manual">Manual</TabsTrigger>
<TabsTrigger disabled={true} value="cli">
CLI (Coming Soon)
</TabsTrigger>
</TabsList>

<TabsContent value="cli">

<Steps>

<Step>Coming soon...</Step>

</Steps>

</TabsContent>

<TabsContent value="manual">

<Steps>

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="block-explorer-link" />

</Steps>

</TabsContent>

</Tabs>

## Usage

```tsx
import { WalletConnect } from "@/components/buidl/wallet-connect"
```

```tsx
<WalletConnect />
<WalletConnect>Custom Text</WalletConnect>
```
2 changes: 1 addition & 1 deletion apps/www/content/docs/components/blockie.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ component: true
<Step>Install the following dependencies:</Step>

```bash
pnpm add ethereum-blockies-base64
npm add ethereum-blockies-base64
```

<Step>Copy and paste the following code into your project.</Step>
Expand Down
2 changes: 1 addition & 1 deletion apps/www/content/docs/components/ens-avatar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: ENS Avatar
description: Display an account ENS avatar.
component: true
radix:
wagmi:
link: https://wagmi.sh/react/hooks/useEnsAvatar
---

Expand Down
2 changes: 1 addition & 1 deletion apps/www/content/docs/components/ens-image.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: ENS Name
description: Display an account ENS domain name.
component: true
radix:
wagmi:
link: https://wagmi.sh/react/hooks/useEnsAvatar
---

Expand Down
4 changes: 2 additions & 2 deletions apps/www/content/docs/components/ens-name.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
title: ENS Name
description: Display an account ENS domain name.
component: true
radix:
link: https://wagmi.sh/react/hooks/useEnsAvatar
wagmi:
link: https://wagmi.sh/react/hooks/useEnsName
---

<ComponentPreview
Expand Down
2 changes: 1 addition & 1 deletion apps/www/content/docs/components/ens-symbol.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: ENS Symbol
description: Display an account ENS domain name.
component: true
radix:
wagmi:
link: https://wagmi.sh/react/hooks/useEnsAvatar
---

Expand Down
Loading

0 comments on commit df62763

Please sign in to comment.