Browse Source

feat(gui-v2): add prop to disable sponsors img

pull/2837/head
braks 2 years ago
parent
commit
1b3a3d06b7
  1. 7
      packages/nc-gui-v2/components/general/Sponsors.vue

7
packages/nc-gui-v2/components/general/Sponsors.vue

@ -3,14 +3,15 @@ import MdiHeartsCard from '~icons/mdi/cards-heart'
interface Props {
nav?: boolean
img?: boolean
}
const { nav = false } = defineProps<Props>()
const { nav = false, img = true } = defineProps<Props>()
</script>
<template>
<v-card :rounded="0" class="dark:bg-gray-900" href="https://github.com/sponsors/nocodb" target="_blank">
<v-img src="/ants-leaf-cutter.jpeg" :cover="true" :aspect-ratio="1" :height="nav ? 80 : ''" />
<v-img v-if="img" src="/ants-leaf-cutter.jpeg" :cover="true" :aspect-ratio="1" :height="nav ? 80 : ''" />
<v-card-title v-if="!nav" class="pb-2">
{{ $t('msg.info.sponsor.header') }}
@ -21,7 +22,7 @@ const { nav = false } = defineProps<Props>()
</v-card-text>
<v-card-actions class="justify-center">
<v-btn class="dark:(!text-white) text-primary">
<v-btn color="primary" class="dark:(!text-white)">
<MdiHeartsCard class="text-red-500 mr-2" />
{{ $t('activity.sponsorUs') }}
</v-btn>

Loading…
Cancel
Save