Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix style #39

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": false,
"homepage": "https://github.com/witnet/wit-vue-ui#readme",
"license" : "MIT",
"license": "MIT",
"bugs": {
"url": "https://github.com/witnet/wit-vue-ui/issues"
},
Expand Down
8 changes: 4 additions & 4 deletions src/assets/svg/simpleswap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Card/BaseCard.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="card border rounded-lg px-xl py-xl mr-sm mb-sm max-w-md h-full">
<div class="card border-2 bg-white-50 border-black-950 rounded-lg px-lg py-lg mr-sm mb-sm w-full h-full">
<div v-if="link" class="flex justify-between items-center">
<h3 class="text-xl text-black-950 font-semibold leading-4">
{{ title }}
Expand Down
19 changes: 8 additions & 11 deletions src/components/Card/WCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,17 @@
</BaseCard>
</a>
</div>
<div v-if="isBaseCard">
<BaseCard :hover="hover">
<template #header><slot name="header"></slot></template>
<template #description>
<slot name="description"></slot>
</template>
</BaseCard>
</div>
<BaseCard v-else-if="isBaseCard" :hover="hover">
<template #header><slot name="header"></slot></template>
<template #description>
<slot name="description"></slot>
</template>
</BaseCard>
<div
v-if="isIconCard"
v-else
class="h-full w-auto out-of-boundaries card border-2 border-black-950 bg-white-50 rounded-lg px-xl py-xl max-w-sm"
>
<WIconRounded class="rounded-icon" :size="90" :disableHoverEffect="true">
<WIconRounded class="rounded-icon" :big-size="true" :disableHoverEffect="true">
<slot name="icon">Icon</slot>
</WIconRounded>
<div class="ml-xl px-sm">
Expand Down Expand Up @@ -81,7 +79,6 @@ const props = defineProps({
required: false
}
})
const isIconCard = computed(() => props.type === CardType.Icon)
const isLinkCard = computed(() => props.type === CardType.Link)
const isBaseCard = computed(() => props.type === CardType.Base)
function toggleHover() {
Expand Down
Loading