Skip to content

Commit

Permalink
Merge pull request #27 from Apillon/dev
Browse files Browse the repository at this point in the history
MetaMask install link (link with path)
  • Loading branch information
MoMannn authored Feb 20, 2024
2 parents f1251d2 + 11695b7 commit 2056848
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 11 deletions.
7 changes: 6 additions & 1 deletion frontend/components/parts/form/Wallet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import WalletSVG from '~/assets/images/wallet.svg';
import { useConnect } from 'use-wagmi';
const { fullPath } = useRoute();
const { connect, connectors, pendingConnector } = useConnect();
</script>

Expand All @@ -23,7 +24,7 @@ const { connect, connectors, pendingConnector } = useConnect();
v-if="!connector.ready && connector.id === 'metaMask'"
type="secondary"
size="large"
href="https://metamask.app.link/dapp/nft.ment.si"
:href="`https://metamask.app.link/dapp/nft.ment.si/${fullPath}`"
>
<span class="inline-flex gap-2 items-center">
<NuxtIcon :name="connector.id" class="text-xl" filled />
Expand All @@ -44,6 +45,10 @@ const { connect, connectors, pendingConnector } = useConnect();
</span>
</Btn>
</template>
<p class="text-xs italic lg:hidden">
*If a wallet is not installed on your mobile device, return to this page after installation
to proceed with the claim process.
</p>
</n-space>
</div>
</template>
4 changes: 2 additions & 2 deletions frontend/lib/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export function copyToClipboard(text: string) {
* OG data
*/
export function prepareOG(
title = 'Ment MFT Airdrop',
description = '',
title = 'Mint your MENT Token',
description = 'Powered by Apillon.',
image = '/images/superrare.jpg',
url = 'https://nft.ment.si/'
) {
Expand Down
6 changes: 3 additions & 3 deletions frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ if (env === Environments.prod) {
}

const meta = {
title: 'powered by Apillon',
description: 'Ment NFT airdrop - powered by Apillon',
title: 'Mint your MENT Token',
description: 'Powered by Apillon.',
url: 'https://nft.ment.si/',
};

Expand Down Expand Up @@ -82,7 +82,7 @@ export default defineNuxtConfig({
htmlAttrs: { lang: 'en' },
bodyAttrs: { id: 'kalm' },
title: meta.title,
titleTemplate: `%s - ${meta.title}`,
titleTemplate: `%s`,
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no',

Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/admin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ definePageMeta({
layout: 'admin',
});
useHead({
title: 'Ment NFT airdrop',
title: 'Mint your MENT Token',
});
const message = useMessage();
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/claim.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ definePageMeta({
layout: 'claim',
});
useHead({
title: 'Ment NFT airdrop',
title: 'Mint your MENT Token',
});
const config = useRuntimeConfig();
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import SuperRareJpg from '~/assets/images/superrare.jpg';
const { isMd } = useScreen();
useHead({
title: 'Ment NFT airdrop',
title: 'Mint your MENT Token',
});
</script>

Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/share.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { prepareOG } from '~/lib/utils/helpers';
import { Chains } from '~/lib/values/general.values';
useHead({
title: 'Ment NFT airdrop',
title: 'Mint your MENT Token',
});
const router = useRouter();
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/success.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@

<script setup lang="ts">
useHead({
title: 'Ment NFT airdrop',
title: 'Mint your MENT Token',
});
</script>

0 comments on commit 2056848

Please sign in to comment.