Skip to content

Commit

Permalink
make usable with mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed May 2, 2024
1 parent 6d00ace commit 95a0cca
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 57 deletions.
2 changes: 1 addition & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Header = defineAsyncComponent(() => import('@/components/Header'))
<style lang="scss">
.page-wrapper {
position: relative;
padding-top: 91px;
padding-top: 200px;
}
.wrapper {
Expand Down
40 changes: 19 additions & 21 deletions components/CheckWalletTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,27 @@
<div class="container">
<div class='grid grid-rows-3 grid-flow-col gap-4'>
<div class='text-4xl mt-10'>Shield PAS tokens to Incognitee</div>
<div class="grid grid-cols-2 gap-4 ">
<div class='text-lg'>
<template v-if="accountStore.paseoBalance > 0">
Shielding your tokens means that you send them from Paseo to Incognitee where you can then trandfer them
privately
<div class='text-lg'>
<template v-if="accountStore.paseoBalance > 0">
Shielding your tokens means that you send them from Paseo to Incognitee where you can then trandfer them
privately

<div class='mt-4'>
<UButton class="btn btn_gradient" @click="shield">Shield PAS to Incognitee</UButton>
<div>{{ txStatus }}</div>
</div>
</template>
<template v-else>
You don’t have any PAS on your new account yet. Follow the link below to obtain some PAS for free
from the Polkadot faucet. Use your address to claim tokens:
<code>{{ accountStore.getAddress }}</code>.
<div class='mt-4'>
<UButton class="btn btn_gradient" @click="shield">Shield PAS to Incognitee</UButton>
<div>{{ txStatus }}</div>
</div>
</template>
<template v-else>
You don’t have any PAS on your new account yet. Follow the link below to obtain some PAS for free
from the Polkadot faucet. Use your address to claim tokens:
<code>{{ accountStore.getAddress }}</code>.

<div class='mt-4'>
<NuxtLink to="https://faucet.polkadot.io/paseo" target="blank" class="btn btn_gradient">Get free PAS
tokens
</NuxtLink>
</div>
</template>
</div>
<div class='mt-4'>
<NuxtLink to="https://faucet.polkadot.io/paseo" target="blank" class="btn btn_gradient">Get free PAS
tokens
</NuxtLink>
</div>
</template>
</div>
</div>
</div>
Expand Down
14 changes: 11 additions & 3 deletions components/Header/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<NuxtLink to="/" class="header__logo">
<Logo />
</NuxtLink>
<div v-if="width > breakpoints.slg" class="header__nav grid grid-cols-4 gap-8 content-start ">
<div class="header__nav grid grid-cols-4 gap-8 content-start ">

<NuxtLink class="text-link paragraph_smll">
<span class="gradient gradient_one">Wallet Address
Expand All @@ -18,7 +18,7 @@
<span class="gradient gradient_one">Incognitee Balance
</span><p>{{ accountStore.getIncogniteeHumanBalance}}</p></NuxtLink>

<NuxtLink class="text-link paragraph_smll">
<NuxtLink v-if="width > breakpoints.slg" class="text-link paragraph_smll">
<span class="gradient gradient_two">Incognitee Status
</span>
<template v-if="incogniteeStore.apiReady">
Expand All @@ -30,7 +30,7 @@
</NuxtLink>

</div>
<div class="header__nav-right">
<div v-if="width > breakpoints.slg" class="header__nav-right">
<Socials />

<button v-if="width <= breakpoints.slg" class="header__burger" :class="{
Expand Down Expand Up @@ -261,4 +261,12 @@ onMounted(() => {
background: rgba(81, 81, 81, 0) !important;
}
}
.header__nav {
display: flex;
flex-direction: row; // default to horizontal layout
@media screen and (max-width: 660px) {
flex-direction: column; // switch to vertical layout on mobile
}
}
</style>
60 changes: 30 additions & 30 deletions components/InviteFriendTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@
available ROC from your Incognitee wallet to another wallet with an invite link. You can share this with
your friends and let them participate.
</div>
<div class="flex flex-cols-2 ">
<div class='mt-10 mr-8'>
<UButton class="btn btn_gradient" @click="inviteFriend">Invite Friend</UButton>
</div>
<div class='mt-10'>
<div class="flex items-center">
<input type="text" ref="urlToShareWithFriend" class="dynamic-width border-2 border-gray-200 p-2"
style="color: black;" :value="inviteUrl" readonly>
<button @click="copyToClipboard" class="button ml-10">
Copy
</button>
</div>
</div>

<div class='mt-10 mb-8'>
<UButton class="btn btn_gradient" @click="inviteFriend">Invite Friend</UButton>
</div>
<div class='mt-10 mb-3'>
<input type="text" ref="urlToShareWithFriend" class="dynamic-width border-2 border-gray-200 p-2"
style="color: black;" :value="inviteUrl" readonly>
</div>
<div class='mt-3 mb-8'>
<button @click="copyToClipboard" class="button">
Copy
</button>
</div>
</div>
</div>
Expand All @@ -34,10 +33,11 @@
import {Keyring} from '@polkadot/keyring'
import {mnemonicGenerate, mnemonicToMiniSecret} from '@polkadot/util-crypto'
import {formatBalance, u8aToHex} from "@polkadot/util";
import { ref } from 'vue';
import {ref} from 'vue';
import {useAccount} from '@/store/account.ts'
import {useIncognitee} from '@/store/incognitee.ts'
import { useAccount } from '@/store/account.ts'
import { useIncognitee } from '@/store/incognitee.ts'
const accountStore = useAccount()
const incogniteeStore = useIncognitee()
Expand Down Expand Up @@ -81,27 +81,27 @@ const inviteFriend = () => {
<style>
.button {
display: flex;
padding: 14px 24px;
align-items: flex-start;
gap: 10px;
border-radius: 12px;
border: 2px solid var(--Transparent-White-20, rgba(255, 255, 255, 0.20));
backdrop-filter: blur(30px);
padding: 14px 24px;
align-items: flex-start;
gap: 10px;
border-radius: 12px;
border: 2px solid var(--Transparent-White-20, rgba(255, 255, 255, 0.20));
backdrop-filter: blur(30px);
}
.dynamic-width::after {
width: 500px;
border-radius: 8px;
border-color: #24ad7c;
height: 55px;
border-radius: 8px;
border-color: #24ad7c;
height: 55px;
}
.dynamic-width {
width: 500px;
border-radius: 8px;
border-color: #24ad7c;
height: 55px;
.dynamic-width {
width: 500px;
border-radius: 8px;
border-color: #24ad7c;
height: 55px;
}
</style>
4 changes: 2 additions & 2 deletions components/PublishonxTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<section id="steps">
<div class="block steps">
<div class="container">
<div class='grid grid-rows-3 grid-flow-col gap-4'>
<div class='text-4xl mt-10'>Publish on X</div>
<div class=''>
<div class='text-4xl mt-10 mb-10'>Publish on X</div>
<div class='text-lg'>
By clicking the ”Check” button, you will be redirected to the Paseo Subscan Portal,
where you have to check for your unshielding event.
Expand Down

0 comments on commit 95a0cca

Please sign in to comment.