feat: use img for logo so that it's not part of the main bundle
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Dominik Pschenitschni 2022-11-11 22:13:41 +01:00
parent 163d9366d3
commit 753539e5d4
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
1 changed files with 6 additions and 6 deletions

View File

@ -1,16 +1,16 @@
<script setup lang="ts">
import { computed } from 'vue'
import { useNow } from '@vueuse/core'
import {computed} from 'vue'
import {useNow} from '@vueuse/core'
import LogoFull from '@/assets/logo-full.svg?component'
import LogoFullPride from '@/assets/logo-full-pride.svg?component'
import LogoFull from '@/assets/logo-full.svg?url'
import LogoFullPride from '@/assets/logo-full-pride.svg?url'
const now = useNow()
const Logo = computed(() => now.value.getMonth() === 5 ? LogoFullPride : LogoFull)
const logoUrl = computed(() => now.value.getMonth() === 5 ? LogoFullPride : LogoFull)
</script>
<template>
<Logo alt="Vikunja" class="logo" />
<img alt="Vikunja" :src="logoUrl" class="logo" />
</template>
<style lang="scss" scoped>