Skip to content

Commit 7b9e114

Browse files
committed
FE fixes
1 parent a4f44e3 commit 7b9e114

5 files changed

Lines changed: 24 additions & 34 deletions

File tree

frontend/components/parts/form/Claim.vue

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<script lang="ts" setup>
22
import { useMessage } from 'naive-ui';
33
import { createPublicClient, http, isErc6492Signature } from 'viem';
4-
import SuccessSVG from '~/assets/images/success.svg';
54
import { ClaimType } from '~/lib/values/general.values';
65
76
const props = defineProps({
@@ -85,15 +84,11 @@ async function claim() {
8584
</script>
8685

8786
<template>
88-
<div class="max-w-md w-full md:px-6 my-12 mx-auto">
89-
<img :src="SuccessSVG" class="mx-auto" width="165" height="169" alt="airdrop" />
90-
87+
<div class="max-w-md w-full md:px-9 my-12 mx-auto">
9188
<div class="my-8 text-center">
92-
<h3 class="mb-6">Great Success!</h3>
93-
<p>
94-
Minting your NFT is almost done. Please sign the message with your wallet to confirm ownership of the wallet and
95-
claim your NFT.
96-
</p>
89+
<NuxtIcon name="icon/cube" class="inline-block icon-auto text-9xl lg:text-[150px]" filled />
90+
<h1 class="mt-4 mb-6 lg:text-3xl">Your NFT is ready for you</h1>
91+
<p>Click below to reveal your unique digital collectible.</p>
9792
</div>
9893
<Btn size="large" :loading="loading" :disabled="walletUsed" @click="claim()">Claim NFT</Btn>
9994
</div>

frontend/components/parts/form/Share.vue

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,24 @@ onMounted(async () => {
1919
</script>
2020

2121
<template>
22-
<div v-if="metadata" class="max-w-md w-full md:px-6 mx-auto">
23-
<div class="mb-8 text-center">
24-
<h3 v-if="txHash">Just minted my #{{ metadata.name }} NFT on Apillon!</h3>
25-
<h3 v-else>Already minted your #{{ metadata.name }} NFT on Apillon!</h3>
22+
<div v-if="metadata" class="max-w-md w-full md:px-2 mx-auto">
23+
<div v-if="txHash || true" class="mb-8 text-center">
24+
<NuxtIcon name="icon/success" class="inline-block text-3xl text-green" filled />
25+
<h4>Great success!</h4>
26+
<p class="text-bg-bg">Your NFT has been successfully minted. Share it with the world!</p>
2627
</div>
28+
<h1 class="my-4 text-center lg:text-3xl">Your NFT</h1>
2729

28-
<div class="rounded-lg overflow-hidden mb-6">
30+
<div class="rounded-lg overflow-hidden mb-6 max-w-64 mx-auto">
2931
<div v-if="loading" class="w-full h-40 flex-cc">
3032
<Spinner :size="36" />
3133
</div>
3234
<img v-else-if="imageLink" :src="imageLink" class="w-full" alt="nft" />
3335

34-
<div class="p-6 bg-grey-dark text-white">
35-
<h5>{{ metadata.name }}</h5>
36+
<div class="p-3 bg-grey-dark rounded-b-lg text-white">
37+
<span class="text-cs">{{ metadata.name }}</span>
3638
</div>
3739
<div class="mt-4 text-center">
38-
<p class="mb-4">{{ metadata.description }}</p>
39-
40-
<!-- Transaction -->
4140
<a
4241
v-if="txHash"
4342
:href="transactionLink(txHash, config.public.CHAIN_ID)"

frontend/components/parts/form/Wallet.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ function connectWallet(conn: Connector<CreateConnectorFn>) {
2828
</script>
2929

3030
<template>
31-
<div class="max-w-md w-full md:px-6 my-12 mx-auto text-center">
31+
<div class="max-w-md w-full md:px-4 my-12 mx-auto text-center">
3232
<NuxtIcon name="icon/studio" class="text-3xl inline-block" />
3333

3434
<h1 class="my-4">{{ claimTypeName }}</h1>
3535
<div>
36-
<strong>Email the magic. Earn the trust.</strong><br />
37-
Turn leads into fans - and fans into believers.
36+
<strong> You’ll need a secure wallet to receive and manage your NFT.</strong><br />
37+
38+
No wallet yet? Use Apillon Embedded wallet - no tricky setup, no stress.
3839
</div>
3940

4041
<hr class="my-4 border-grey-transparent dark:border-bg-lighter" />

frontend/pages/claim.vue

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { Events } from '@apillon/wallet-sdk';
33
import { useWallet } from '@apillon/wallet-vue';
44
import { useMessage } from 'naive-ui';
55
import { isErc6492Signature } from 'viem';
6-
import SuccessSVG from '~/assets/images/success.svg';
76
import { ClaimType } from '~/lib/values/general.values';
87
98
definePageMeta({
@@ -93,20 +92,16 @@ function onClaim(metadata: Metadata, txHash?: string) {
9392
</p>
9493
</div>
9594
<FormShare v-else-if="metadata" :metadata="metadata" />
96-
<div v-else-if="!connected" class="max-w-md w-full md:px-6 my-12 mx-auto">
97-
<img :src="SuccessSVG" class="mx-auto" width="165" height="169" alt="airdrop" />
98-
95+
<div v-else-if="!connected" class="max-w-md w-full md:px-9 my-12 mx-auto">
9996
<div class="my-8 text-center">
100-
<h3 class="mb-6">Great Success!</h3>
101-
<p>
102-
To join this NFT airdrop, you need to connect your EVM compatible wallet. This step is crucial for securely
103-
receiving and managing the airdropped NFTs.
104-
</p>
97+
<NuxtIcon name="icon/cube" class="inline-block icon-auto text-9xl lg:text-[150px]" filled />
98+
<h1 class="mt-4 mb-6 lg:text-3xl">Your NFT is ready for you</h1>
99+
<p>Click below to reveal your unique digital collectible.</p>
105100
</div>
106101

107102
<ConnectWallet size="large" />
108103
</div>
109-
<div v-else-if="isWhitelist && !walletSignature" class="max-w-md w-full md:px-6 my-12 mx-auto">
104+
<div v-else-if="isWhitelist && !walletSignature" class="max-w-md w-full md:px-9 my-12 mx-auto">
110105
<Btn size="large" :loading="loading" @click="validateWallet()"> Wallet eligibility check </Btn>
111106
</div>
112107
<NftCountdown v-else-if="timeToStart > 0" :timestamp="config.public.CLAIM_START" />

frontend/pages/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ function openEmbeddedWallet() {
3131
<div class="my-8 text-center max-w-xl mx-auto">
3232
<h6 class="mb-2 font-semibold">Having trouble logging in?</h6>
3333
<p class="text-black">
34-
Only those with secret handshake (the designated wallet) can enter. Contact the master who set up your NFT
35-
Studio to request access.
34+
Only those with secret handshake (the designated wallet) can enter. Contact the master who set up your Simplet
35+
to request access.
3636
</p>
3737
</div>
3838
<Footer />

0 commit comments

Comments
 (0)