feat: use img for logo so that it's not part of the main bundle (#2684)

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: vikunja/frontend#2684
Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:
Dominik Pschenitschni 2022-11-12 10:48:52 +00:00 committed by konrad
parent 9d604f7a3b
commit 02de481297
1 changed files with 6 additions and 6 deletions

View File

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