Skip to content

Commit e1b3535

Browse files
committed
update hero image
Update hero image, remove unused images.
1 parent 0756804 commit e1b3535

File tree

10 files changed

+32
-21
lines changed

10 files changed

+32
-21
lines changed
21 KB
Binary file not shown.
-35.5 KB
Binary file not shown.
23.7 KB
Binary file not shown.
32.9 KB
Binary file not shown.

apps/playground-web/src/app/engine/airdrop/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function Page() {
1616
</>
1717
}
1818
docsLink="https://thirdweb-engine.apidocumentation.com/reference#tag/erc20/POST/contract/{chain}/{contractAddress}/erc20/mint-batch-to"
19-
heroLink="/engine-webhooks.webp"
19+
heroLink="/airdrop.avif"
2020
/>
2121

2222
<section>

apps/playground-web/src/app/engine/minting/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function Page() {
1515
</>
1616
}
1717
docsLink="https://thirdweb-engine.apidocumentation.com/reference#tag/erc1155/POST/contract/{chain}/{contractAddress}/erc1155/mint-to"
18-
heroLink="/engine-webhooks.webp"
18+
heroLink="/minting.avif"
1919
/>
2020

2121
<section>

apps/playground-web/src/app/engine/webhooks/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function Page() {
1515
</>
1616
}
1717
docsLink="https://portal.thirdweb.com/engine/features/webhooks"
18-
heroLink="/engine-webhooks.webp"
18+
heroLink="/webhooks.avif"
1919
/>
2020

2121
<section>

apps/playground-web/src/components/engine/gasless/Sponsorship.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function Sponsorship() {
4848
throw new Error("Invalid contract address format");
4949
}
5050

51-
const response = await fetch(`/api/claimTo`, {
51+
const response = await fetch("/api/claimTo", {
5252
method: "POST",
5353
headers: {
5454
"Content-Type": "application/json",
@@ -64,8 +64,6 @@ export function Sponsorship() {
6464
const { result } = data;
6565
setQueueId(result.queueId);
6666

67-
const timestamp = Date.now();
68-
6967
const newTransaction: ClaimTransactionResults = {
7068
queueId: result.queueId,
7169
status: "Queued",
@@ -118,7 +116,7 @@ export function Sponsorship() {
118116
<div className="space-y-3 sm:space-y-4">
119117
<br />
120118
<ConnectButton client={THIRDWEB_CLIENT} chain={baseSepolia} />
121-
<div className="text-sm text-gray-500">
119+
<div className="text-gray-500 text-sm">
122120
<ol>Select an NFT Contract to mint</ol>
123121
</div>
124122
<Select
@@ -147,7 +145,7 @@ export function Sponsorship() {
147145
</SelectItem>
148146
</SelectContent>
149147
</Select>
150-
<div className="text-sm text-gray-500">
148+
<div className="text-gray-500 text-sm">
151149
<ol>Select the quantity of NFTs to mint</ol>
152150
</div>
153151
<Input
@@ -170,6 +168,14 @@ export function Sponsorship() {
170168
</div>
171169
</form>
172170
<Webhook queueId={queueId || ""} />
171+
172+
<div className="mt-6">
173+
{transactions.map((tx) => (
174+
<div key={tx.queueId} className="text-sm">
175+
Status: {tx.status} - Amount: {tx.amount}
176+
</div>
177+
))}
178+
</div>
173179
</div>
174180
);
175181
}

apps/playground-web/src/components/engine/gasless/Webhook.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ import { useEffect, useState } from "react";
99

1010
// This says Webhook, but it's actually just displaying a dummy webhook
1111

12+
interface WebhookData {
13+
queueId?: string;
14+
status?: string;
15+
}
16+
1217
export function Webhook({ queueId }: { queueId: string }) {
13-
const [data, setData] = useState<any>(null);
18+
const [data, setData] = useState<WebhookData | null>(null);
1419
const [loading, setLoading] = useState(false);
1520

1621
useEffect(() => {
@@ -42,7 +47,7 @@ export function Webhook({ queueId }: { queueId: string }) {
4247
}, [queueId]);
4348

4449
return (
45-
<Card className="w-full mt-8 bg-background">
50+
<Card className="mt-8 w-full bg-background">
4651
<CardHeader>
4752
<CardTitle>Webhook Response</CardTitle>
4853
<CardDescription>{data?.status || "Initializing..."}</CardDescription>

apps/playground-web/src/components/engine/minting/TransactionResults.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ export function ClaimTransactionResults({
123123
};
124124

125125
return (
126-
<Card className="w-full mt-8 bg-background">
127-
<CardHeader className="flex flex-row justify-between items-center">
128-
<h2 className="text-xl font-semibold text-foreground">
126+
<Card className="mt-8 w-full bg-background">
127+
<CardHeader className="flex flex-row items-center justify-between">
128+
<h2 className="font-semibold text-foreground text-xl">
129129
Transaction Results
130130
</h2>
131-
<span className="text-sm text-muted-foreground">
131+
<span className="text-muted-foreground text-sm">
132132
Last 24 hours • {sortedResultsWithDummy.length} transactions
133133
</span>
134134
</CardHeader>
@@ -161,21 +161,21 @@ export function ClaimTransactionResults({
161161
<img
162162
src="/BaseSep.png"
163163
alt="Base"
164-
className="w-4 h-4"
164+
className="h-4 w-4"
165165
/>
166166
)}
167167
{result.network === "OP Sep" && (
168168
<img
169169
src="/OP.png"
170170
alt="Optimism Sep"
171-
className="w-4 h-4"
171+
className="h-4 w-4"
172172
/>
173173
)}
174174
{result.network === "Ethereum" && (
175175
<img
176176
src="/Ethereum.png"
177177
alt="Ethereum"
178-
className="w-4 h-4"
178+
className="h-4 w-4"
179179
/>
180180
)}
181181
{result.network}
@@ -223,7 +223,7 @@ export function ClaimTransactionResults({
223223
</TableCell>
224224
<TableCell>
225225
<span
226-
className={`px-2 inline-flex text-xs leading-5 font-semibold rounded-full ${getStatusColor(getDisplayStatus(result))}`}
226+
className={`inline-flex rounded-full px-2 font-semibold text-xs leading-5 ${getStatusColor(getDisplayStatus(result))}`}
227227
>
228228
{getDisplayStatus(result)}
229229
</span>
@@ -254,13 +254,13 @@ export function ClaimTransactionResults({
254254
</Table>
255255
</div>
256256
{showLeftGradient && (
257-
<div className="sm:hidden absolute left-0 top-0 bottom-0 w-12 pointer-events-none bg-gradient-to-r from-background to-transparent" />
257+
<div className="pointer-events-none absolute top-0 bottom-0 left-0 w-12 bg-gradient-to-r from-background to-transparent sm:hidden" />
258258
)}
259259
{showRightGradient && (
260-
<div className="sm:hidden absolute right-0 top-0 bottom-0 w-12 pointer-events-none bg-gradient-to-l from-background to-transparent" />
260+
<div className="pointer-events-none absolute top-0 right-0 bottom-0 w-12 bg-gradient-to-l from-background to-transparent sm:hidden" />
261261
)}
262262
</CardContent>
263-
<CardFooter className="flex justify-between items-center">
263+
<CardFooter className="flex items-center justify-between">
264264
<Button onClick={handlePrevPage} disabled={currentPage === 1}>
265265
Previous
266266
</Button>

0 commit comments

Comments
 (0)