Skip to content

Commit 27095fc

Browse files
committed
chore: minor updates
1 parent 4f056d7 commit 27095fc

File tree

82 files changed

+317
-262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+317
-262
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# TurboETH BUIDL
1+
# TurboETH ⚡️ BUIDL
22

3-
Handcrafted Web3 components that you can copy and paste into your WAGMI apps. Free. Open Source. **Use this to build your own component library**.
3+
Collection of essential components for any modern Web3 applications. Save time and BUIDL faster. Free. Open Source. **Use this to build your own component library**.
44

55
## Documentation
66

apps/www/__registry__/.autogenerated

-1
This file was deleted.

apps/www/__registry__/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
> Files inside this directory is autogenerated by `./scripts/build-registry.ts`. **Do not edit them manually.** - shadcn
1+
Files are auto-generated. Do not edit!

apps/www/__registry__/index.tsx

-14
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,6 @@ export const Index: Record<string, any> = {
9696
component: React.lazy(() => import("@/registry/default/buidl/erc20/erc20-select-and-amount")),
9797
files: ["registry/default/buidl/erc20/erc20-select-and-amount.tsx"],
9898
},
99-
"accordion": {
100-
name: "accordion",
101-
type: "components:ui",
102-
registryDependencies: undefined,
103-
component: React.lazy(() => import("@/registry/default/ui/accordion")),
104-
files: ["registry/default/ui/accordion.tsx"],
105-
},
10699
"address-demo": {
107100
name: "address-demo",
108101
type: "components:example",
@@ -222,12 +215,5 @@ export const Index: Record<string, any> = {
222215
component: React.lazy(() => import("@/registry/default/example/erc20-select-and-amount-demo")),
223216
files: ["registry/default/example/erc20-select-and-amount-demo.tsx"],
224217
},
225-
"accordion-demo": {
226-
name: "accordion-demo",
227-
type: "components:example",
228-
registryDependencies: ["accordion"],
229-
component: React.lazy(() => import("@/registry/default/example/accordion-demo")),
230-
files: ["registry/default/example/accordion-demo.tsx"],
231-
},
232218
},
233219
}

apps/www/app/examples/authentication/page.tsx

+49-47
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ import Image from "next/image"
33
import Link from "next/link"
44

55
import { cn } from "@/lib/utils"
6-
import { buttonVariants } from "@/registry/default/ui/button"
7-
import { UserAuthForm } from "@/app/examples/authentication/components/user-auth-form"
6+
import { AccountAddress } from "@/registry/default/buidl/account-address"
7+
import { AccountBlockie } from "@/registry/default/buidl/account-blockie"
8+
import { Address } from "@/registry/default/buidl/address"
9+
import { IsWalletConnected } from "@/registry/default/buidl/is-wallet-connected"
10+
import { IsWalletDisconnected } from "@/registry/default/buidl/is-wallet-disconnected"
11+
import { WalletConnect } from "@/registry/default/buidl/wallet-connect"
12+
import { WalletDisconnect } from "@/registry/default/buidl/wallet-disconnect"
13+
import { Button, buttonVariants } from "@/registry/default/ui/button"
814

915
export const metadata: Metadata = {
1016
title: "Authentication",
@@ -14,21 +20,8 @@ export const metadata: Metadata = {
1420
export default function AuthenticationPage() {
1521
return (
1622
<>
17-
<div className="md:hidden">
18-
<Image
19-
src="/examples/authentication-light.png"
20-
width={1280}
21-
height={843}
22-
alt="Authentication"
23-
className="block dark:hidden"
24-
/>
25-
<Image
26-
src="/examples/authentication-dark.png"
27-
width={1280}
28-
height={843}
29-
alt="Authentication"
30-
className="hidden dark:block"
31-
/>
23+
<div className="p-10 md:hidden">
24+
View this page on a larger screen to see the full example.
3225
</div>
3326
<div className="container relative hidden h-[800px] flex-col items-center justify-center md:grid lg:max-w-none lg:grid-cols-2 lg:px-0">
3427
<Link
@@ -55,47 +48,56 @@ export default function AuthenticationPage() {
5548
>
5649
<path d="M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3" />
5750
</svg>
58-
Acme Inc
51+
Degen Inc
5952
</div>
6053
<div className="relative z-20 mt-auto">
6154
<blockquote className="space-y-2">
6255
<p className="text-lg">
63-
&ldquo;This library has saved me countless hours of work and
64-
helped me deliver stunning designs to my clients faster than
65-
ever before.&rdquo;
56+
&ldquo;I always degenerate to chocolate and coffee.&rdquo;
6657
</p>
67-
<footer className="text-sm">Sofia Davis</footer>
58+
<footer className="text-sm">Mandy Ingber</footer>
6859
</blockquote>
6960
</div>
7061
</div>
7162
<div className="lg:p-8">
7263
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
73-
<div className="flex flex-col space-y-2 text-center">
74-
<h1 className="text-2xl font-semibold tracking-tight">
75-
Create an account
76-
</h1>
77-
<p className="text-sm text-muted-foreground">
78-
Enter your email below to create your account
64+
<IsWalletDisconnected>
65+
<div className="flex flex-col space-y-2 text-center">
66+
<h1 className="text-2xl font-semibold tracking-tight">
67+
Connect Wallet to Continue
68+
</h1>
69+
<p className="text-sm text-muted-foreground">
70+
Enter your email below to create your account
71+
</p>
72+
</div>
73+
<WalletConnect />
74+
<p className="px-8 text-center text-sm text-muted-foreground">
75+
By clicking continue, you agree to our{" "}
76+
<Link
77+
href="/terms"
78+
className="underline underline-offset-4 hover:text-primary"
79+
>
80+
Terms of Service
81+
</Link>{" "}
82+
and{" "}
83+
<Link
84+
href="/privacy"
85+
className="underline underline-offset-4 hover:text-primary"
86+
>
87+
Privacy Policy
88+
</Link>
89+
.
7990
</p>
80-
</div>
81-
<UserAuthForm />
82-
<p className="px-8 text-center text-sm text-muted-foreground">
83-
By clicking continue, you agree to our{" "}
84-
<Link
85-
href="/terms"
86-
className="underline underline-offset-4 hover:text-primary"
87-
>
88-
Terms of Service
89-
</Link>{" "}
90-
and{" "}
91-
<Link
92-
href="/privacy"
93-
className="underline underline-offset-4 hover:text-primary"
94-
>
95-
Privacy Policy
96-
</Link>
97-
.
98-
</p>
91+
</IsWalletDisconnected>
92+
<IsWalletConnected>
93+
<div className="flex items-center justify-center gap-x-2">
94+
<AccountBlockie />
95+
<Button size={"sm"} className="rounded-full">
96+
<AccountAddress truncate linkEnabled />
97+
</Button>
98+
<WalletDisconnect variant={"ghost"} size={"sm"} />
99+
</div>
100+
</IsWalletConnected>
99101
</div>
100102
</div>
101103
</div>

apps/www/app/examples/layout.tsx

+11-14
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,21 @@ export default function ExamplesLayout({ children }: ExamplesLayoutProps) {
2626
<>
2727
<div className="container relative">
2828
<PageHeader className="page-header pb-8">
29-
<Link
30-
href="/docs/changelog"
31-
className="inline-flex items-center rounded-lg bg-muted px-3 py-1 text-sm font-medium"
32-
>
33-
🎉 <Separator className="mx-2 h-4" orientation="vertical" />{" "}
34-
<span className="sm:hidden">Style, a new CLI and more.</span>
35-
<span className="hidden sm:inline">
36-
Introducing Style, a new CLI and more.
37-
</span>
38-
<ArrowRightIcon className="ml-1 h-4 w-4" />
39-
</Link>
29+
<Link
30+
href="/docs/components/wallet-connect"
31+
className="inline-flex items-center rounded-lg bg-muted px-3 py-1 text-sm font-medium"
32+
>
33+
⚡️ <Separator className="mx-2 h-4" orientation="vertical" />{" "}
34+
<span className="sm:hidden">Build Web3 in Turbo Mode.</span>
35+
<span className="hidden sm:inline">Build Web3 in Turbo Mode</span>
36+
<ArrowRightIcon className="ml-1 h-4 w-4" />
37+
</Link>
4038
<PageHeaderHeading className="hidden md:block">
4139
Check out some examples.
4240
</PageHeaderHeading>
4341
<PageHeaderHeading className="md:hidden">Examples</PageHeaderHeading>
4442
<PageHeaderDescription>
45-
Dashboard, cards, authentication. Some examples built using the
46-
components. Use this as a guide to build your own.
43+
More examples coming soon!
4744
</PageHeaderDescription>
4845
<section className="flex w-full items-center space-x-4 pb-8 pt-4 md:pb-10">
4946
<Link
@@ -53,7 +50,7 @@ export default function ExamplesLayout({ children }: ExamplesLayoutProps) {
5350
Get Started
5451
</Link>
5552
<Link
56-
href="/components"
53+
href="/docs/components/wallet-connect"
5754
className={cn(
5855
buttonVariants({ variant: "outline" }),
5956
"rounded-[6px]"

apps/www/app/page.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function IndexPage() {
2121
<div className="container relative">
2222
<PageHeader className="pb-8">
2323
<Link
24-
href="/docs/changelog"
24+
href="/docs/components"
2525
className="inline-flex items-center rounded-lg bg-muted px-3 py-1 text-sm font-medium"
2626
>
2727
⚡️ <Separator className="mx-2 h-4" orientation="vertical" />{" "}
@@ -31,8 +31,7 @@ export default function IndexPage() {
3131
</Link>
3232
<PageHeaderHeading>A Flexible Web3 Component Library</PageHeaderHeading>
3333
<PageHeaderDescription>
34-
Handcrafted Web3 components that you can copy and paste into your
35-
WAGMI apps.{" "}
34+
Collection of essential components for any modern Web3 applications.{" "}
3635
<span className="font-bold">Save time and BUIDL faster.</span>
3736
</PageHeaderDescription>
3837
<div className="flex w-full items-center space-x-4 pb-8 pt-4 md:pb-10">

apps/www/components/examples-nav.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const examples = [
1111
{
1212
name: "Authentication",
1313
href: "/examples/authentication",
14-
code: "https://github.com/shadcn/ui/tree/main/apps/www/app/examples/authentication",
14+
code: "https://github.com/turbo-eth/buidl/tree/main/apps/www/app/examples/authentication",
1515
},
1616
]
1717

apps/www/components/main-nav.tsx

+1-23
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function MainNav() {
3131
Documentation
3232
</Link>
3333
<Link
34-
href="/docs/components"
34+
href="/docs/components/wallet-connect"
3535
className={cn(
3636
"transition-colors hover:text-foreground/80",
3737
pathname?.startsWith("/docs/components")
@@ -41,28 +41,6 @@ export function MainNav() {
4141
>
4242
Components
4343
</Link>
44-
{/* <Link
45-
href="/themes"
46-
className={cn(
47-
"transition-colors hover:text-foreground/80",
48-
pathname?.startsWith("/themes")
49-
? "text-foreground"
50-
: "text-foreground/60"
51-
)}
52-
>
53-
Themes
54-
</Link>
55-
<Link
56-
href="/examples"
57-
className={cn(
58-
"transition-colors hover:text-foreground/80",
59-
pathname?.startsWith("/examples")
60-
? "text-foreground"
61-
: "text-foreground/60"
62-
)}
63-
>
64-
Examples
65-
</Link> */}
6644
<Link
6745
href={siteConfig.links.github}
6846
className={cn(

apps/www/components/site-footer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function SiteFooter() {
1212
rel="noreferrer"
1313
className="font-medium underline underline-offset-4"
1414
>
15-
shadcn
15+
District Labs
1616
</a>
1717
. The source code is available on{" "}
1818
<a

apps/www/config/docs.ts

+1-13
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,7 @@ export const docsConfig: DocsConfig = {
1313
},
1414
{
1515
title: "Components",
16-
href: "/docs/components/accordion",
17-
},
18-
{
19-
title: "Themes",
20-
href: "/themes",
21-
},
22-
{
23-
title: "Examples",
24-
href: "/examples",
25-
},
26-
{
27-
title: "Figma",
28-
href: "/docs/figma",
16+
href: "/docs/components/wallet-connect",
2917
},
3018
{
3119
title: "GitHub",

apps/www/config/site.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
export const siteConfig = {
22
name: "turboeth/buidl",
33
url: "https://buidl.turboeth.com",
4-
ogImage: "https://buidl.turboeth.com/og.jpg",
4+
ogImage: "https://buidl.turboeth.com/og.png",
55
description:
6-
"Beautifully designed components built with Radix UI and Tailwind CSS.",
6+
"Collection of essential components for any modern Web3 applications ⚡️ copy and paste in minutes.",
77
links: {
88
twitter: "https://twitter.com/districtfi",
9-
github: "https://github.com/turboeth/buidl",
9+
github: "https://github.com/turbo-eth/buidl",
1010
},
1111
}
1212

apps/www/content/docs/components/accordion.mdx

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
title: Accordion
33
description: A vertically stacked set of interactive headings that each reveal a section of content.
44
component: true
5-
radix:
6-
link: https://www.radix-ui.com/docs/primitives/components/accordion
7-
api: https://www.radix-ui.com/docs/primitives/components/accordion#api-reference
5+
86
---
97

108
<ComponentPreview
@@ -77,7 +75,7 @@ npm install @radix-ui/react-accordion
7775

7876
<ComponentSource name="accordion" />
7977

80-
<Step>Update the import paths to match your project setup.</Step>
78+
8179

8280
<Step>Update `tailwind.config.js`</Step>
8381

apps/www/content/docs/components/account-address.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ wagmi:
4040

4141
<ComponentSource name="address" />
4242

43-
<Step>Update the import paths to match your project setup.</Step>
44-
4543
</Steps>
4644

4745
</TabsContent>

apps/www/content/docs/components/account-blockie.mdx

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
title: Account Blockie
33
description: Display connected account blockie identicon.
44
component: true
5-
radix:
6-
link: https://www.radix-ui.com/docs/primitives/components/accordion
7-
api: https://www.radix-ui.com/docs/primitives/components/accordion#api-reference
5+
86
---
97

108
<ComponentPreview

apps/www/content/docs/components/account-ens-avatar.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ radix:
4040

4141
<ComponentSource name="account-ens-avatar" />
4242

43-
<Step>Update the import paths to match your project setup.</Step>
44-
4543
</Steps>
4644

4745
</TabsContent>

apps/www/content/docs/components/account-ens-name.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ radix:
4040

4141
<ComponentSource name="account-ens-name" />
4242

43-
<Step>Update the import paths to match your project setup.</Step>
44-
4543
</Steps>
4644

4745
</TabsContent>

apps/www/content/docs/components/address.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ wagmi:
4040

4141
<ComponentSource name="address" />
4242

43-
<Step>Update the import paths to match your project setup.</Step>
44-
4543
</Steps>
4644

4745
</TabsContent>

0 commit comments

Comments
 (0)