Skip to content

Commit 276da55

Browse files
feat: Reorganize portal landing page sections
1 parent ecb4571 commit 276da55

File tree

5 files changed

+138
-394
lines changed

5 files changed

+138
-394
lines changed

apps/portal/src/app/connect/page.mdx

Lines changed: 46 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ import {
77
OpenSourceCard,
88
Stack,
99
ConnectCard,
10+
SDKCard,
1011
Callout
1112
} from "@doc";
13+
import { TypeScriptIcon, ReactIcon, DotNetIcon, UnityIcon, UnrealEngineIcon } from "@/icons";
1214
import { cn } from "@/lib/utils";
1315
import Link from "next/link";
1416
import { Button } from "@/components/ui/button";
@@ -36,24 +38,51 @@ Connect is the complete toolkit for connecting every user to your application. I
3638
title="Playground"
3739
href="https://playground.thirdweb.com"
3840
iconUrl="/icons/connect/intros/demo.svg"
41+
isExternal={true}
3942
/>
4043
<ConnectCard
41-
title="Quickstart"
42-
href="https://portal.thirdweb.com/react/v5/getting-started"
44+
title="Templates"
45+
href="https://thirdweb.com/templates"
4346
iconUrl="/icons/connect/intros/quickstart.svg"
4447
/>
45-
{/* <ConnectCard
46-
title="Why Connect?"
47-
href=""
48-
iconUrl="/icons/connect/intros/why-connect.svg"
49-
/>
50-
<ConnectCard
51-
title="Video Tutorial"
52-
href=""
53-
iconUrl="/icons/connect/intros/video-tutorial.svg"
54-
/> */}
5548
</div>
56-
### With Connect, you can:
49+
50+
### Quick starts
51+
52+
<Grid>
53+
<SDKCard
54+
title="TypeScript"
55+
href="/typescript/v5/getting-started"
56+
icon={TypeScriptIcon}
57+
/>
58+
<SDKCard
59+
title="React"
60+
href="/react/v5/getting-started"
61+
icon={ReactIcon}
62+
/>
63+
<SDKCard
64+
title="React Native"
65+
href="/react-native/v5/getting-started"
66+
icon={ReactIcon}
67+
/>
68+
<SDKCard
69+
title="DotNet"
70+
href="/dotnet/getting-started"
71+
icon={DotNetIcon}
72+
/>
73+
<SDKCard
74+
title="Unity"
75+
href="/unity/v5/getting-started"
76+
icon={UnityIcon}
77+
/>
78+
<SDKCard
79+
title="Unreal Engine"
80+
href="/unreal-engine/getting-started"
81+
icon={UnrealEngineIcon}
82+
/>
83+
</Grid>
84+
85+
### With Connect, you can
5786

5887
- **Connect to 350+ different wallet providers** with support for every EVM network
5988
- **Log in and authenticate your users** with customizable and secure [email, phone, passkeys and social login](https://portal.thirdweb.com/connect/in-app-wallet/overview) flows.
@@ -82,59 +111,13 @@ Connect is the complete toolkit for connecting every user to your application. I
82111

83112
Connect is supported on every EVM compatible chain. To view the full list, visit [thirdweb chainlist](https://thirdweb.com/chainlist).
84113

85-
### Templates
114+
### Starter Kits & demos
86115

87-
<ExpandableGrid>
116+
View all available starter kits, demos and templates on Github.
88117

89118
<GithubTemplateCard
90-
title="Next Starter"
91-
href="https://github.com/thirdweb-example/next-starter"
92-
tag="Starter"
93-
/>
94-
<GithubTemplateCard
95-
title="Vite Starter"
96-
href="https://github.com/thirdweb-example/vite-starter"
119+
title="View all templates"
120+
href="https://github.com/thirdweb-example"
97121
tag="Starter"
98122
/>
99-
<GithubTemplateCard
100-
title="Node Starter"
101-
href="https://github.com/thirdweb-example/node-starter"
102-
tag="Starter"
103-
/>
104-
<GithubTemplateCard
105-
title="Expo Starter"
106-
href="https://github.com/thirdweb-example/expo-starter"
107-
tag="Starter"
108-
/>
109-
110-
<GithubTemplateCard
111-
title="NFT Marketplace"
112-
href="https://github.com/thirdweb-example/marketplace-v3"
113-
tag="Builds"
114-
/>
115-
116-
<GithubTemplateCard
117-
title="Auth - NextJS"
118-
href="https://github.com/thirdweb-example/thirdweb-auth-next"
119-
tag="Example"
120-
/>
121-
122-
<GithubTemplateCard
123-
title="Auth - Express"
124-
href="https://github.com/thirdweb-example/thirdweb-auth-express"
125-
tag="Example"
126-
/>
127-
128-
<GithubTemplateCard
129-
title="Account Abstraction"
130-
href="https://github.com/thirdweb-example/account-abstraction"
131-
tag="Example"
132-
/>
133-
134-
<GithubTemplateCard
135-
title="Sign in with Farcaster"
136-
href="https://github.com/thirdweb-example/thirdweb-siwf"
137-
tag="Example"
138-
/>
139123

140-
</ExpandableGrid>

apps/portal/src/app/connect/sidebar.tsx

Lines changed: 36 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { SideBar } from "@/components/Layouts/DocLayout";
22
import { DotNetIcon, ReactIcon, TypeScriptIcon, UnityIcon } from "@/icons";
3-
import { ExternalLink, ZapIcon } from "lucide-react";
3+
import { ExternalLink } from "lucide-react";
44
import { UnrealEngineIcon } from "../../icons/sdks/UnrealEngineIcon";
55

66
// TODO: move the following two slugs to walletSlug with updated docs
@@ -23,11 +23,6 @@ export const sidebar: SideBar = {
2323
name: "Why thirdweb?",
2424
href: "/connect/why-thirdweb",
2525
},
26-
{
27-
name: "Quickstart",
28-
href: "/connect/quickstart",
29-
icon: <ZapIcon />,
30-
},
3126
{
3227
name: "Playground",
3328
href: "https://playground.thirdweb.com/",
@@ -188,29 +183,6 @@ export const sidebar: SideBar = {
188183
name: "Sponsorship rules",
189184
href: `${aAslug}/sponsorship-rules`,
190185
},
191-
// {
192-
// name: "References",
193-
// isCollapsible: true,
194-
// expanded: true,
195-
// links: [
196-
// {
197-
// name: "React",
198-
// href: `/references/typescript/v5/smartWallet`,
199-
// },
200-
// {
201-
// name: "React Native",
202-
// href: `/react-native/v0/wallets/smartwallet`,
203-
// },
204-
// {
205-
// name: "TypeScript",
206-
// href: `/references/wallets/v2/SmartWallet`,
207-
// },
208-
// {
209-
// name: "Unity",
210-
// href: `/unity/wallets/providers/smart-wallet`,
211-
// },
212-
// ],
213-
// },
214186
{
215187
name: "FAQs",
216188
href: `${aAslug}/faq`,
@@ -375,40 +347,42 @@ export const sidebar: SideBar = {
375347
},
376348
],
377349
},
350+
],
351+
},
352+
{ separator: true },
353+
{
354+
name: "API References",
355+
isCollapsible: false,
356+
links: [
378357
{
379-
name: "API References",
380-
links: [
381-
{
382-
name: "TypeScript",
383-
href: "/typescript/v5",
384-
icon: <TypeScriptIcon />,
385-
},
386-
{
387-
name: "React",
388-
href: "/react/v5",
389-
icon: <ReactIcon />,
390-
},
391-
{
392-
name: "React Native",
393-
href: "/react-native/v5",
394-
icon: <ReactIcon />,
395-
},
396-
{
397-
name: "Dotnet",
398-
href: "/dotnet",
399-
icon: <DotNetIcon />,
400-
},
401-
{
402-
name: "Unity",
403-
href: "/unity",
404-
icon: <UnityIcon />,
405-
},
406-
{
407-
name: "Unreal Engine",
408-
href: "/unreal-engine",
409-
icon: <UnrealEngineIcon />,
410-
},
411-
],
358+
name: "TypeScript",
359+
href: "/typescript/v5",
360+
icon: <TypeScriptIcon />,
361+
},
362+
{
363+
name: "React",
364+
href: "/react/v5",
365+
icon: <ReactIcon />,
366+
},
367+
{
368+
name: "React Native",
369+
href: "/react-native/v5",
370+
icon: <ReactIcon />,
371+
},
372+
{
373+
name: "Dotnet",
374+
href: "/dotnet",
375+
icon: <DotNetIcon />,
376+
},
377+
{
378+
name: "Unity",
379+
href: "/unity",
380+
icon: <UnityIcon />,
381+
},
382+
{
383+
name: "Unreal Engine",
384+
href: "/unreal-engine",
385+
icon: <UnrealEngineIcon />,
412386
},
413387
],
414388
},

0 commit comments

Comments
 (0)