Skip to content

Commit 27fdfa1

Browse files
sarahschwartzuF4No
andauthored
feat: add "Share on X" button (#141)
Adds a component button and some tweets to prompt users to share their accomplishments on X --------- Co-authored-by: Antonio <tonioufa@gmail.com>
1 parent c8924e4 commit 27fdfa1

11 files changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<template>
2+
<UButton
3+
icon="i-lucide-rocket"
4+
size="md"
5+
variant="outline"
6+
:to="url"
7+
target="_blank"
8+
>
9+
Share on X
10+
</UButton>
11+
</template>
12+
13+
<script setup lang="ts">
14+
const props = defineProps<{ text: string }>();
15+
16+
const url = `https://x.com/intent/tweet?text=${encodeURIComponent(props.text)}`;
17+
</script>

content/tutorials/build-a-zk-game/40.building-the-frontend.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,3 +258,5 @@ Once completed, you can open the "High Scores" window to view your new high scor
258258

259259
Ready to build more ZK games?
260260
You can replace the `game_lib` with any other deterministic game written in Rust!
261+
262+
::twitter-button{text="Just made my first ZK game with @zkSyncDevs"}

content/tutorials/cross-chain-governance/30.cross-chain-transactions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,5 @@ Now, let's call the `increment` method on Layer 2 from Layer 1.
119119
[documentation](https://docs.zksync.io/zksync-era/sdk/js/ethers).
120120
- To learn more about the ZKsync hardhat plugins, check out their
121121
[documentation](https://docs.zksync.io/zksync-era/tooling/hardhat/guides/getting-started).
122+
123+
::twitter-button{text="Just built a crosschain governance contract on @zkSyncDevs"}

content/tutorials/custom-zk-chain/10.index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,4 +370,6 @@ bun deploy-erc20
370370
371371
Nice - you just deployed a contract to your own local ZKsync Chain!
372372
373+
::twitter-button{text="I ran my own local @zkSyncDevs chain using zkstack CLI"}
374+
373375
Next, let's take a look at customizing a chain.

content/tutorials/custom-zk-chain/20.customizing-your-chain.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,3 +434,5 @@ To restart the docker containers for your ecosystem and run your custom ZKsync C
434434
1. Initialize the ecosystem with `zkstack ecosystem init --dev`.
435435
1. Start the chain server with `zkstack server`.
436436
1. Bridge ERC20 tokens from the L1 to L2.
437+
438+
::twitter-button{text="I made a custom local @zkSyncDevs chain using zkstack CLI"}

content/tutorials/daily-spend-limit-account/10.index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,3 +540,5 @@ Let's test the `SpendLimit` contract works to make it refuse ETH transfers that
540540
541541
Written by [porco-rosso](https://linktr.ee/porcorossoj) for the GitCoin bounty.
542542
Updated by Matter Labs.
543+
544+
::twitter-button{text="Deployed my first smart contract account with a daily spending limit on @zkSyncDevs"}

content/tutorials/erc20-paymaster/10.index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,5 @@ As a workaround, try including a specific `gasLimit` value in the transaction.
348348
[documentation](https://sdk.zksync.io/js/ethers).
349349
- To learn more about the ZKsync hardhat plugins, check out their
350350
[documentation](https://docs.zksync.io/build/tooling/hardhat/getting-started).
351+
352+
::twitter-button{text="Just built a paymaster that lets users pay gas with ERC20 tokens on @zkSyncDevs"}

content/tutorials/frontend-paymaster/10.index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,3 +437,5 @@ Now you should be able to update the greeting message with ETH or any of the ava
437437
:test-action{actionId="confirm-transaction-2"}
438438
:test-action{actionId="wait-for-transaction-2"}
439439
:test-action{actionId="check-for-new-greeting-2"}
440+
441+
::twitter-button{text="Just built a Vue frontend that uses a paymaster on @zkSyncDevs"}

content/tutorials/native-aa-multisig/10.index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,3 +483,5 @@ so it has enough funds to pay for the transaction fees.
483483
[documentation](https://sdk.zksync.io/js/ethers).
484484
- To learn more about the ZKsync hardhat plugins, check out their
485485
[documentation](https://docs.zksync.io/build/tooling/hardhat/getting-started).
486+
487+
::twitter-button{text="Just built a native multisig smart contract acccount on @zkSyncDevs"}

content/tutorials/paymaster-foundry-guide/30.interacting-cast-paymaster.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,5 @@ cast balance 0xd9498989Fada9e78798F696B17Ab6B3b5Fe65FDF --rpc-url anvil-zksync |
108108

109109
🚀 **Build on This** → Now that you’ve successfully deployed and interacted with a Gasless Paymaster,
110110
consider extending its logic to include **custom validation rules, user whitelisting, or sponsorship models** for transactions!
111+
112+
::twitter-button{text="Just deployed a gasless paymaster contract with Foundry on @zkSyncDevs"}

0 commit comments

Comments
 (0)