Skip to content

Commit 0db1f3a

Browse files
feat: add x402 next template (#921)
1 parent 7fb2a58 commit 0db1f3a

4 files changed

Lines changed: 28 additions & 0 deletions

File tree

apps/web/public/locales/en/common.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3203,6 +3203,10 @@
32033203
"description": "Sell services with x402"
32043204
},
32053205
"2": {
3206+
"title": "x402 Next Template",
3207+
"description": "Build your fullstack dApp with x402 and Next.js"
3208+
},
3209+
"3": {
32063210
"title": "x402 Template",
32073211
"description": "Build your API with x402"
32083212
}
@@ -3256,6 +3260,11 @@
32563260
"title": "Build on Solana",
32573261
"description": "Get started with Solana development, wallets, and deploying your first program",
32583262
"cta": "Build"
3263+
},
3264+
"x402NextTemplate": {
3265+
"title": "x402 Next Template",
3266+
"description": "Build and deploy your Next.js dApp with an X402 integration",
3267+
"cta": "Build"
32593268
}
32603269
},
32613270
"problem": {

apps/web/src/app/[locale]/x402/hackathon/page.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ export default async function Page(_props: Props) {
4646
solanaTitle: t("x402.hackathon.prerequisites.solana.title"),
4747
solanaDescription: t("x402.hackathon.prerequisites.solana.description"),
4848
solanaCta: t("x402.hackathon.prerequisites.solana.cta"),
49+
x402NextTitle: t("x402.hackathon.prerequisites.x402NextTemplate.title"),
50+
x402NextDescription: t(
51+
"x402.hackathon.prerequisites.x402NextTemplate.description",
52+
),
53+
x402NextCta: t("x402.hackathon.prerequisites.x402NextTemplate.cta"),
4954

5055
problemTitle: t("x402.hackathon.problem.title"),
5156
problemDescription: t("x402.hackathon.problem.description"),

apps/web/src/app/[locale]/x402/hackathon/x402-hackathon.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ interface X402HackathonPageProps {
3333
solanaTitle: string;
3434
solanaDescription: string;
3535
solanaCta: string;
36+
x402NextTitle: string;
37+
x402NextDescription: string;
38+
x402NextCta: string;
3639
problemTitle: string;
3740
problemDescription: string;
3841
requirementsTitle: string;
@@ -132,6 +135,13 @@ export function X402HackathonPage({ translations }: X402HackathonPageProps) {
132135
newTab={false}
133136
ctaLabel={translations.solanaCta}
134137
/>
138+
<DevelopersDocumentItem
139+
title={translations.x402NextTitle}
140+
description={translations.x402NextDescription}
141+
url="https://templates.solana.com/x402-template"
142+
newTab={false}
143+
ctaLabel={translations.x402NextCta}
144+
/>
135145
</div>
136146
</div>
137147
</div>

apps/web/src/data/solutions/x402.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ export const TOOLS = [
2828
},
2929
{
3030
key: "2",
31+
href: "https://templates.solana.com/x402-template",
32+
},
33+
{
34+
key: "3",
3135
href: "https://templates.solana.com/x402-solana-protocol",
3236
},
3337
];

0 commit comments

Comments
 (0)