Skip to content

Commit ddef888

Browse files
committed
[PRO-249] Portal: Update OG images (#7664)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updating the metadata and image attributes across various pages in the `thirdweb` portal, particularly in the payments and vault sections. It modifies titles, icons, and descriptions to enhance clarity and consistency. ### Detailed summary - Changed `metadata` for payments to use "payments" icon and updated titles. - Updated vault metadata to include a new image with the "vault" icon. - Modified various page descriptions for clarity and consistency. - Added a new script for formatting in `package.json`. - Removed unused code in `api/og/route.tsx`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added and updated metadata images and titles across several pages, including "Contracts", "Vault", and various "Payments" pages for improved visual representation. * Introduced support for a new "vault" icon in metadata image options. * **Style** * Improved formatting and removed extraneous blank lines in code examples and UI components for better readability. * Cleaned up whitespace in multiple example code snippets. * **Chores** * Added a new formatting script for consistent code style across the project. * **Refactor** * Simplified Open Graph image layouts by removing certain UI elements. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 8133fab commit ddef888

File tree

17 files changed

+49
-86
lines changed

17 files changed

+49
-86
lines changed

apps/portal/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"private": true,
7171
"scripts": {
7272
"build": "next build",
73+
"format": "biome format ./src --write",
7374
"create-index": "pnpm tsx scripts/createEmptySearchIndex.ts",
7475
"dev": "next dev",
7576
"extract-llm-content": "pnpm tsx scripts/extractLLMData.ts",
1.37 KB
Loading

apps/portal/src/app/api/og/route.tsx

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -64,37 +64,6 @@ export async function GET(request: Request) {
6464
width: "50%",
6565
}}
6666
>
67-
<div
68-
style={{
69-
alignItems: "center",
70-
display: "flex",
71-
gap: "10px",
72-
marginBottom: "40px",
73-
}}
74-
>
75-
<img
76-
alt=""
77-
height={50 / 1.7}
78-
src={`${BAST_URL}/icons/thirdweb-logo.svg`}
79-
style={{
80-
display: "flex",
81-
}}
82-
width={300 / 1.7}
83-
/>
84-
85-
<div
86-
style={{
87-
color: "white",
88-
fontFamily: "Inter",
89-
fontSize: "26px",
90-
fontWeight: 600,
91-
marginTop: "2px",
92-
}}
93-
>
94-
Docs
95-
</div>
96-
</div>
97-
9867
<div
9968
style={{
10069
display: "flex",
@@ -107,26 +76,6 @@ export async function GET(request: Request) {
10776
>
10877
{title}
10978
</div>
110-
111-
<div
112-
style={{
113-
display: "flex",
114-
}}
115-
>
116-
<div
117-
style={{
118-
background: "white",
119-
borderRadius: "10px",
120-
color: "black",
121-
fontFamily: "Inter",
122-
fontSize: "24px",
123-
fontWeight: 600,
124-
padding: "14px 20px",
125-
}}
126-
>
127-
Read More
128-
</div>
129-
</div>
13079
</div>
13180

13281
<img

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export const metadata = createMetadata({
66
title: "thirdweb Contracts",
77
description:
88
"Tools to easily create, deploy, and manage smart contracts on any EVM compatible blockchain.",
9+
image: {
10+
icon: "contract",
11+
title: "thirdweb Contracts",
12+
},
913
});
1014

1115
# What are Contracts?

apps/portal/src/app/payments/custom-data/page.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import {
2121

2222
export const metadata = createMetadata({
2323
image: {
24-
title: "Payments",
25-
icon: "pay",
24+
title: "Custom Payment Data",
25+
icon: "payments",
2626
},
2727
title: "Custom Payment Data",
2828
description: "Pass custom app data to payments to be included on webhooks, payment history, and more.",
@@ -92,7 +92,7 @@ Associate user IDs, custom payment IDs, order details, and more with any payment
9292
amount="0.1"
9393
purchaseData={{
9494
userId: "user-123",
95-
orderId: "order-456",
95+
orderId: "order-456",
9696
productType: "wallet-funding",
9797
metadata: {
9898
source: "app",

apps/portal/src/app/payments/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const metadata = createMetadata({
1414
description:
1515
"Monetize your app with thirdweb Payments. Sell products, transfer funds between users, launch tokens, and more.",
1616
image: {
17-
icon: "payment",
17+
icon: "payments",
1818
title: "thirdweb Payments Docs",
1919
},
2020
title: "thirdweb Payments Documentation",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import {
2323

2424
export const metadata = createMetadata({
2525
image: {
26-
title: "Payments",
27-
icon: "pay"
26+
title: "Get started with Payments",
27+
icon: "payments"
2828
},
2929
title: "Get started with Payments",
3030
description: "Monetize your app with thirdweb Payments. Sell products, transfer funds between users, launch tokens, and more.",

apps/portal/src/app/payments/products/page.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import {
1212

1313
export const metadata = createMetadata({
1414
image: {
15-
title: "Payments",
16-
icon: "pay",
15+
title: "Sell a Product",
16+
icon: "payments",
1717
},
1818
title: "Sell a Product",
1919
description: "Accept any token as payment for your products.",
@@ -49,7 +49,7 @@ function ProductPage() {
4949
<div>
5050
<h1>Premium Course</h1>
5151
<p>Complete guide to web3 development</p>
52-
52+
5353
<CheckoutWidget
5454
client={client}
5555
chain={arbitrum}

apps/portal/src/app/payments/routes/page.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import { ExternalLink } from "lucide-react";
2222

2323
export const metadata = createMetadata({
2424
image: {
25-
title: "Payments",
26-
icon: "pay",
25+
title: "Find Routes",
26+
icon: "payments",
2727
},
2828
title: "Find Routes",
2929
description: "Find available routes for bridging, swapping, and paying.",

0 commit comments

Comments
 (0)