Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #40 from NaturalSelectionLabs/feature/gitcoin-nya
Browse files Browse the repository at this point in the history
chore: some adjustments
  • Loading branch information
yzhe819 committed Sep 8, 2021
2 parents 829e3cc + 81462f3 commit 5c66218
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
8 changes: 6 additions & 2 deletions src/components/GitcoinCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@
cursor-pointer
"
>
<img :src="imageUrl" class="w-28 h-28 rounded rounded-2xl m-2" />
<div class="w-45 md:w-60 pl-10">
<img :src="imageUrl" class="w-32 h-32 rounded rounded-2xl m-0.5" />
<div class="w-45 md:w-60 pl-8">
<div class="mb-2 font-semibold text-lg">{{ name }}</div>
<div class="w-full flex flex-row gap-x-6 overflow-y-auto">
<div>
<div class="font-medium">{{ contrib }}</div>
<div>Contrib</div>
</div>
<div>
<div class="font-medium">{{ contrib }}</div>
<div>ETH</div>
</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Gitcoins.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</div>
<div
class="px-4 py-4 flex gap-5 fixed bottom-0 left-0 right-0 max-w-md m-auto w-full"
v-if="list.length == 0"
v-if="list.length === 0"
>
<Button size="lg" class="m-auto text-lg bg-gitcoin-button text-white shadow-gitcoin">
Go to Gitcoin
Expand Down
16 changes: 9 additions & 7 deletions src/views/Setup/SetupGitcoins.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
color-tips="text-gitcoin-title"
color-background="bg-gitcoin-bg"
class="w-full mb-4"
:is-having-content="true"
:tips="show.length === 0 ? 'Drag to reorder' : ''"
>
<template #content> </template>
<template #footer-button>
Expand All @@ -45,14 +47,14 @@
color-tips="text-gitcoin-title"
color-background="bg-gray-bg"
class="w-full mb-4"
:is-having-content="hide.length !== 0"
:is-having-content="true"
:tips="hide.length === 0 ? 'Drag here to hide' : ''"
>
<template #accessibility>
<i class="bx bx-info-circle" style="color: rgba(0, 0, 0, 0.2)" />
</template>
<template #header-button
><Button
<template #header-button>
<Button
size="sm"
class="text-xs bg-white text-gitcoin-button shadow-gitcoin-sm ml-auto"
:class="{
Expand All @@ -62,8 +64,8 @@
@click="showAll"
>
Show All
</Button></template
>
</Button>
</template>
<template #content> </template>
</Card>

Expand Down Expand Up @@ -92,8 +94,8 @@ import ImgHolder from '@/components/ImgHolder.vue';
},
})
export default class SetupGitcoins extends Vue {
public show: Array<Object> = [{}];
public hide: Array<Object> = [{}];
public show: Array<Object> = [];
public hide: Array<Object> = [];
showAll() {}
Expand Down

0 comments on commit 5c66218

Please sign in to comment.