Skip to content

Commit

Permalink
feat: feedback issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Another-DevX committed Feb 1, 2024
1 parent eb13a4b commit d35df97
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 24 deletions.
6 changes: 2 additions & 4 deletions src/components/_global/BalBtn/BalBtn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import {
hoverTo,
loadingBackground,
loadingDarkBackground,
loadingFrom,
loadingTo,
text,
} from 'button-options';
Expand Down Expand Up @@ -119,9 +117,9 @@ const bgGradientClasses = computed(() => {
return `bg-complementary-b dark:complementary-b text-white `;
}
if (props.loading) {
return `bg-gradient-to-tr ${loadingFrom(fromColor)} ${loadingTo(toColor)}`;
return 'transition-colors button-gradient';
}
if (props.color === 'gradient') return 'transition-colors button-gradient ';
if (props.color === 'gradient') return 'transition-colors button-gradient';
return ` bg-gradient-to-tr ${gradientFrom(fromColor)} ${gradientTo(
toColor
Expand Down
2 changes: 1 addition & 1 deletion src/components/_global/BalModal/BalModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ defineExpose({ hide });
shadow="lg"
:noPad="noPad"
:noContentPad="noContentPad"
class="bg-refi-gray modal-card"
class="dark:bg-refi-gray modal-card"
noBorder
overflowYScroll
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const hasNFT = computed(
const isAbleToUpgradeNFT = computed(() => NFTData?.value?.isAbleToUpgrade[0]);
const isImageLoaded = ref<boolean>(false);
const isOpenUpgradeNFTModal = ref(false);
const isOpenMintNFTModal = ref(false);
Expand Down Expand Up @@ -95,7 +94,12 @@ function handleMintNFTClose() {
</h3>
<div class="flex justify-between items-center text-base">
<p>Voting Power</p>
<p v-if="NFTData">{{ NFTData.attributes[1].value }} Votes</p>
<p v-if="NFTData">
{{ NFTData.attributes[1].value }}
{{
parseInt(NFTData.attributes[1].value) === 1 ? 'vote' : 'votes'
}}
</p>
<p v-else>- Votes</p>
</div>
</div>
Expand Down Expand Up @@ -163,7 +167,12 @@ function handleMintNFTClose() {
</h3>
<div class="flex justify-between items-center text-base">
<p>Voting Power</p>
<p v-if="NFTData">{{ NFTData.attributes[1].value }} Votes</p>
<p v-if="NFTData">
{{ NFTData.attributes[1].value }}
{{
parseInt(NFTData.attributes[1].value) === 1 ? 'vote' : 'votes'
}}
</p>
<p v-else>- Votes</p>
</div>
</div>
Expand Down Expand Up @@ -234,7 +243,12 @@ function handleMintNFTClose() {
<h3 v-else class="self-start text-lg">Mint NFT</h3>
<div class="flex justify-between items-center text-base">
<p>Voting Power</p>
<p v-if="NFTData">{{ NFTData.attributes[1].value }} Votes</p>
<p v-if="NFTData">
{{ NFTData.attributes[1].value }}
{{
parseInt(NFTData.attributes[1].value) === 1 ? 'vote' : 'votes'
}}
</p>
<p v-else>- Votes</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ function onImageLoad() {
<BalModal
:class="isImageLoaded ? 'visible' : 'invisible'"
:show="isOpenModal"
customBgColor="bg-refi-gray"
:fireworks="true"
@close="handleCloseModal"
>
<div class="flex flex-col gap-4 justify-center items-center">
<div class="flex flex-col gap-4 justify-center items-center text-white">
<div class="flex flex-col gap-2 justify-center items-center w-full">
<p>Here is your new NFT</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function onImageLoad() {
<BalModal
:class="isImageLoaded ? 'visible' : 'invisible'"
:show="isOpenModal"
customBgColor="bg-refi-gray"
:fireworks="true"
@close="handleCloseModal"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/footer/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const { openNpsModal } = useAppzi();
{{ $t('docs') }}
</BalLink>
<BalLink
:href="EXTERNAL_LINKS.RegenerativeFI.Docs"
:href="EXTERNAL_LINKS.RegenerativeFI.Support"
external
noStyle
class="group link link--external"
Expand Down
22 changes: 16 additions & 6 deletions src/components/heros/HomePageHero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defineProps<Props>();
<div class="flex flex-col gap-4">
<div class="flex flex-row gap-4 justify-center items-center">
<div
class="py-2 px-3 w-full rounded-md border dark:border-gray-900 shadow-xl"
class="py-2 px-3 w-full rounded-md border dark:border-gray-900 card-shadow"
>
<h4
v-if="isPoolsVolumesLoading"
Expand All @@ -34,7 +34,7 @@ defineProps<Props>();
</h4>
</div>
<div
class="py-2 px-3 w-full rounded-md border dark:border-gray-900 shadow-xl"
class="py-2 px-3 w-full rounded-md border dark:border-gray-900 card-shadow"
>
<h4
v-if="isPoolsVolumesLoading"
Expand All @@ -47,7 +47,7 @@ defineProps<Props>();
</h4>
</div>
</div>
<p>
<p class="text-sm font-normal text-complementary">
There are currently {{ tokensAmount }} tokens listed.
<a class="underline underline-offset-2" href="#">View all tokens</a>
or
Expand All @@ -59,15 +59,25 @@ defineProps<Props>();
</BalCard>
<BalCard growContent>
<div class="flex flex-col justify-between items-start w-full h-full">
<h4>How pools function</h4>
<p>
<h4 class="text-base font-medium">How pools function</h4>
<p class="text-sm font-normal text-complementary">
Liquidity Providers add It is a long established fact that a reader
will be distracted by the readable content of a page when looking at
its layout. The point of using Lorem Ipsum is that it has.
</p>
<a class="underline underline-offset-2" href="#">Learn more</a>
<a
class="text-sm font-normal text-complementary underline underline-offset-2"
href="#"
>Learn more</a
>
</div>
</BalCard>
</div>
</div>
</template>

<style scoped>
.card-shadow {
box-shadow: 1px 2px 6px 0 #00000024;
}
</style>
4 changes: 2 additions & 2 deletions src/components/navs/AppNav/DesktopLinks/DesktopLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function isActive(page: string): boolean {
{{ $t('swap') }}
</DesktopLinkItem>
<DesktopLinkItem
:to="{ name: 'home', params: { networkSlug } }"
:active="isActive('home')"
:to="{ name: 'pools', params: { networkSlug } }"
:active="isActive('pools')"
prefetch
@click="trackGoal(Goals.ClickNavPools)"
>
Expand Down
10 changes: 5 additions & 5 deletions src/plugins/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const ClaimPage = () => import('@/pages/claim/index.vue');
const LegacyClaimPage = () => import('@/pages/claim/legacy.vue');
const CookiesPolicyPage = () => import('@/pages/cookies-policy.vue');
const GetVeBalPage = () => import('@/pages/get-vebal.vue');
const HomePage = () => import('@/pages/index.vue');
const PoolsPage = () => import('@/pages/index.vue');
const PoolPage = () =>
import(/* webpackPrefetch: true */ '@/pages/pool/_id.vue');
const CreatePoolPage = () => import('@/pages/pool/create.vue');
Expand Down Expand Up @@ -44,9 +44,9 @@ declare module 'vue-router' {

const routes: RouteRecordRaw[] = [
{
path: '/',
name: 'home',
component: HomePage,
path: '/pools',
name: 'pools',
component: PoolsPage,
},
{
path: '/terms-of-use',
Expand Down Expand Up @@ -176,7 +176,7 @@ const routes: RouteRecordRaw[] = [
{
path: '/:networkSlug?',
name: 'home',
component: HomePage,
component: SwapPage,
beforeEnter: (to, from, next) => {
/*
- Correct urls:
Expand Down

0 comments on commit d35df97

Please sign in to comment.