Revert "feat: use img for logo so that it's not part of the main bundle (#2684)"
This reverts commit 02de481297502ad4b0b2eb2fa3e06366cce6d630.
This commit is contained in:
parent
f6b8d2c4ca
commit
9b050846a4
@ -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?url'
|
import LogoFull from '@/assets/logo-full.svg?component'
|
||||||
import LogoFullPride from '@/assets/logo-full-pride.svg?url'
|
import LogoFullPride from '@/assets/logo-full-pride.svg?component'
|
||||||
|
|
||||||
const now = useNow()
|
const now = useNow()
|
||||||
const logoUrl = computed(() => now.value.getMonth() === 5 ? LogoFullPride : LogoFull)
|
const Logo = computed(() => now.value.getMonth() === 5 ? LogoFullPride : LogoFull)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<img alt="Vikunja" :src="logoUrl" class="logo" />
|
<Logo alt="Vikunja" class="logo" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user