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
22 changes: 22 additions & 0 deletions apps/portal/redirects.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,27 @@ const v4ToV5Redirects = {
"/references/wallets/:path*": "/typescript/v5/supported-wallets",
};

const payRedirects = {
"/connect/pay/overview": "/pay",
"/connect/pay/onramp-providers": "/pay/onramp-providers",
"/connect/pay/fees": "/pay/fees",
"/connect/pay/get-started": "/pay/get-started",
"/connect/pay/guides/accept-direct-payments":
"/pay/guides/accept-direct-payments",
"/connect/pay/guides/build-a-custom-experience":
"/pay/guides/build-a-custom-experience",
"/connect/pay/guides/cross-chain-swapping":
"/pay/guides/cross-chain-swapping",
"/connect/pay/customization/connectbutton":
"/pay/customization/connectbutton",
"/connect/pay/customization/payembed": "/pay/customization/payembed",
"/connect/pay/customization/send-transaction":
"/pay/customization/send-transaction",
"/connect/pay/webhooks": "/pay/webhooks",
"/connect/pay/testing-pay": "/pay/testing-pay",
"/connect/pay/faqs": "/pay/faqs",
};

/**
* @type {import('next').NextConfig['redirects']}
*/
Expand All @@ -1066,6 +1087,7 @@ export const redirects = async () => {
...createRedirects(unrealEngineRedirects),
...createRedirects(v4ToV5Redirects),
...createRedirects(glossaryRedirects),
...createRedirects(payRedirects),
];
};

Expand Down
6 changes: 5 additions & 1 deletion apps/portal/src/app/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ import {
import { ThirdwebIcon } from "../icons/thirdweb";

const links = [
{
name: "Bridge",
href: "/pay",
},
{
name: "Engine",
href: "/engine",
Expand Down Expand Up @@ -120,7 +124,7 @@ export const connectLinks: Array<{
const apisLinks = [
{
name: "Insight",
href: "https://insight-api.thirdweb.com/reference",
href: "https://insight.thirdweb.com/reference",
},
{
name: "Engine Cloud",
Expand Down
95 changes: 0 additions & 95 deletions apps/portal/src/app/connect/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const inAppSlug = "/connect/in-app-wallet";
const walletSlug = "/connect/wallet";
const aAslug = "/connect/account-abstraction";
const authSlug = "/connect/auth";
const paySlug = "/connect/pay";

export const sidebar: SideBar = {
name: "Connect",
Expand Down Expand Up @@ -229,100 +228,6 @@ export const sidebar: SideBar = {
],
},
{ separator: true },
{
name: "Universal Bridge",
isCollapsible: false,
links: [
{
name: "Overview",
href: `${paySlug}/overview`,
},
{
name: "Supported Routes",
href: "https://thirdweb.com/routes",
},
{
name: "Onramp Providers",
href: `${paySlug}/onramp-providers`,
},
{
name: "Service Fees",
href: `${paySlug}/fees`,
},
{
name: "API",
href: "https://bridge.thirdweb.com/reference",
},
{
name: "Get Started",
href: `${paySlug}/get-started`,
expanded: true,
links: [
{
name: "ConnectButton",
href: `${paySlug}/get-started#option-1-connectbutton`,
},
{
name: "Embed",
href: `${paySlug}/get-started#option-2-embed-pay`,
},
{
name: "Send a Transaction",
href: `${paySlug}/get-started#option-3-send-a-transaction-with-pay`,
},
],
},
{
name: "Tutorials",
isCollapsible: true,

links: [
{
name: "Accept Direct Payments",
href: `${paySlug}/guides/accept-direct-payments`,
},
{
name: "Build a Custom Onramp Experience",
href: `${paySlug}/guides/build-a-custom-experience`,
},
{
name: "Cross-Chain Swapping",
href: `${paySlug}/guides/cross-chain-swapping`,
},
],
},
{
name: "Customization",
isCollapsible: true,
links: [
{
name: "ConnectButton",
href: `${paySlug}/customization/connectbutton`,
},
{
name: "PayEmbed",
href: `${paySlug}/customization/payembed`,
},
{
name: "useSendTransaction",
href: `${paySlug}/customization/send-transaction`,
},
],
},
{
name: "Webhooks",
href: `${paySlug}/webhooks`,
},
{
name: "Developer Mode",
href: `${paySlug}/testing-pay`,
},
{
name: "FAQs",
href: `${paySlug}/faqs`,
},
],
},
// User identity
{
name: "User Identity",
Expand Down
4 changes: 2 additions & 2 deletions apps/portal/src/app/insight/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ export const sidebar: SideBar = {
},
{
name: "API Reference",
href: "https://insight-api.thirdweb.com/reference#tag/webhooks",
href: "https://insight.thirdweb.com/reference#tag/webhooks",
},
],
},
{
name: "API Reference",
href: "https://insight-api.thirdweb.com/reference",
href: "https://insight.thirdweb.com/reference",
icon: <BracesIcon />,
},
{
Expand Down
12 changes: 2 additions & 10 deletions apps/portal/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ function Hero() {
thirdweb Documentation
</h1>
<p className="mb-8 max-w-md text-lg text-muted-foreground leading-normal">
Frontend, Backend, and Onchain tools to build complete web3 apps —
on every EVM chain.
Development framework for building onchain apps, games, and agents.
</p>
</div>
</div>
Expand Down Expand Up @@ -115,7 +114,7 @@ function ReferenceSection() {
/>
<SDKCard
title="Insight"
href="https://insight-api.thirdweb.com/reference"
href="https://insight.thirdweb.com/reference#tag/webhooks"
icon={InsightIcon}
isExternal
iconClassName="text-muted-foreground"
Expand All @@ -127,13 +126,6 @@ function ReferenceSection() {
isExternal
iconClassName="text-muted-foreground"
/>
<SDKCard
title="Contracts"
href="https://contracts.thirdweb.com/reference"
icon={ContractsIcon}
isExternal
iconClassName="text-muted-foreground"
/>
<SDKCard
title="Wallets"
href="/connect/wallet/get-users" // TODO: actual openAPI docs
Expand Down
21 changes: 21 additions & 0 deletions apps/portal/src/app/pay/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { DocLayout } from "@/components/Layouts/DocLayout";
import { createMetadata } from "@doc";
import { sidebar } from "./sidebar";

export default async function Layout(props: { children: React.ReactNode }) {
return (
<DocLayout sideBar={sidebar} editPageButton={true}>
{props.children}
</DocLayout>
);
}

export const metadata = createMetadata({
title: "thirdweb Universal Bridge Documentation",
image: {
title: "thirdweb Universal Bridge Docs",
icon: "nebula",
},
description:
"thirdweb Universal Bridge documentation. Learn how to use the thirdweb Universal Bridge to send and receive tokens across different blockchains.",
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createMetadata, DocImage, Grid, SDKCard, FeatureCard } from "@doc";
import PayOverviewImage from "../assets/pay-overview.png";
import SupportedChains from "../../../_images/supported-chains.png";
import PayOverviewImage from "./assets/pay-overview.png";
import SupportedChains from "../_images/supported-chains.png";
import {RocketIcon, ArrowLeftRightIcon, WalletIcon, PencilIcon, ShieldCheckIcon, PiggyBankIcon, GlobeIcon, ComponentIcon} from "lucide-react";

export const metadata = createMetadata({
Expand Down
131 changes: 131 additions & 0 deletions apps/portal/src/app/pay/sidebar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
import type { SideBar } from "@/components/Layouts/DocLayout";
import {
AlbumIcon,
ArrowLeftRightIcon,
BracesIcon,
CircleDollarSignIcon,
CodeIcon,
FlaskConicalIcon,
MessageCircleQuestionIcon,
PaletteIcon,
RocketIcon,
TriangleRightIcon,
WalletIcon,
WebhookIcon,
} from "lucide-react";

const paySlug = "/pay";

export const sidebar: SideBar = {
name: "Universal Bridge",
links: [
{
name: "Overview",
href: `${paySlug}/overview`,
icon: <WalletIcon />,
},
{
name: "Supported Routes",
href: "https://thirdweb.com/routes",
icon: <ArrowLeftRightIcon />,
},
{
name: "Onramp Providers",
href: `${paySlug}/onramp-providers`,
icon: <TriangleRightIcon />,
},
{
name: "Service Fees",
href: `${paySlug}/fees`,
icon: <CircleDollarSignIcon />,
},
{
name: "Get Started",
href: `${paySlug}/get-started`,
icon: <RocketIcon />,
links: [
{
name: "ConnectButton",
href: `${paySlug}/get-started#option-1-connectbutton`,
},
{
name: "Embed",
href: `${paySlug}/get-started#option-2-embed-pay`,
},
{
name: "Send a Transaction",
href: `${paySlug}/get-started#option-3-send-a-transaction-with-pay`,
},
],
},
{
name: "Tutorials",
isCollapsible: true,
icon: <AlbumIcon />,
links: [
{
name: "Accept Direct Payments",
href: `${paySlug}/guides/accept-direct-payments`,
},
{
name: "Build a Custom Onramp Experience",
href: `${paySlug}/guides/build-a-custom-experience`,
},
{
name: "Cross-Chain Swapping",
href: `${paySlug}/guides/cross-chain-swapping`,
},
],
},
{
name: "Customization",
isCollapsible: true,
icon: <PaletteIcon />,
links: [
{
name: "ConnectButton",
href: `${paySlug}/customization/connectbutton`,
},
{
name: "PayEmbed",
href: `${paySlug}/customization/payembed`,
},
{
name: "useSendTransaction",
href: `${paySlug}/customization/send-transaction`,
},
],
},
{
name: "API Reference",
href: "https://bridge.thirdweb.com/reference",
icon: <BracesIcon />,
},
{
name: "SDK Reference",
href: "/typescript/v5/buy/quote",
icon: <CodeIcon />,
links: [
{
name: "TypeScript SDK",
href: "/typescript/v5/buy/quote",
},
],
},
{
name: "Webhooks",
href: `${paySlug}/webhooks`,
icon: <WebhookIcon />,
},
{
name: "Developer Mode",
href: `${paySlug}/testing-pay`,
icon: <FlaskConicalIcon />,
},
{
name: "FAQs",
href: `${paySlug}/faqs`,
icon: <MessageCircleQuestionIcon />,
},
],
};
Loading
Loading