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

Merged
konrad merged 1 commits from dpschen/frontend:feature/use-img-for-logo into main 2022-11-12 10:48:55 +00:00
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>