Skip to content

Commit

Permalink
Update CTA (#5627)
Browse files Browse the repository at this point in the history
Set CTA for Engine Playground to "Deploy an Instance"

## Problem solved
Update for [DASH-535](https://linear.app/thirdweb/issue/DASH-535/make-deploy-an-instance-the-primary-cta-in-playground)

Set CTA for Engine Playground to "Deploy an Instance"

<!-- start pr-codex -->

---

## PR-Codex overview
This PR primarily updates the `deployLink` across multiple pages and modifies the `EngineAPIHeader` component to dynamically include the `deployLink` prop, enhancing the deployment functionality in the playground web application.

### Detailed summary
- Added `deployLink` prop to `page.tsx` files for `webhooks`, `minting`, and `airdrop`.
- Updated `docsLink` for `minting` and `airdrop` pages to point to specific API documentation.
- Modified `EngineAPIHeader` component to utilize the `deployLink` prop for dynamic linking.
- Removed hardcoded `Deploy an Instance` button from `EngineAPIHeader`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
  • Loading branch information
DustinTurska committed Dec 8, 2024
1 parent 5fd5186 commit 015293e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions apps/playground-web/src/app/engine/airdrop/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default function Page() {
address!
</>
}
deployLink="https://thirdweb.com/team/~/~/engine/create?utm_source=playground"
docsLink="https://thirdweb-engine.apidocumentation.com/reference#tag/erc20/POST/contract/{chain}/{contractAddress}/erc20/mint-batch-to?utm_source=playground"
heroLink="/airdrop.avif"
/>
Expand Down
1 change: 1 addition & 0 deletions apps/playground-web/src/app/engine/minting/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default function Page() {
sponsor the gas so your users only need a wallet address!
</>
}
deployLink="https://thirdweb.com/team/~/~/engine/create?utm_source=playground"
docsLink="https://thirdweb-engine.apidocumentation.com/reference#tag/erc1155/POST/contract/{chain}/{contractAddress}/erc1155/mint-to?utm_source=playground"
heroLink="/minting.avif"
/>
Expand Down
1 change: 1 addition & 0 deletions apps/playground-web/src/app/engine/webhooks/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default function Page() {
transaction or backend wallet events.
</>
}
deployLink="https://thirdweb.com/team/~/~/engine/create?utm_source=playground"
docsLink="https://portal.thirdweb.com/engine/features/webhooks?utm_source=playground"
heroLink="/webhooks.avif"
/>
Expand Down
14 changes: 6 additions & 8 deletions apps/playground-web/src/components/blocks/EngineAPIHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Button } from "../ui/button";
export function EngineAPIHeader(props: {
title: string;
description: React.ReactNode;
deployLink: string;
docsLink: string;
heroLink: string;
}) {
Expand All @@ -27,6 +28,11 @@ export function EngineAPIHeader(props: {

<div className="flex flex-col gap-3 md:flex-row">
<Button asChild size="lg">
<Link target="_blank" href={props.deployLink}>
Deploy an Instance
</Link>
</Button>
<Button asChild variant="outline" size="lg">
<Link target="_blank" href={props.docsLink}>
View docs
</Link>
Expand All @@ -39,14 +45,6 @@ export function EngineAPIHeader(props: {
Book a Demo
</Link>
</Button>
<Button asChild variant="outline" size="lg">
<Link
target="_blank"
href="https://thirdweb.com/team/~/~/engine/create?utm_source=playground"
>
Deploy an Instance
</Link>
</Button>
</div>
</div>

Expand Down

0 comments on commit 015293e

Please sign in to comment.