Skip to content

Commit

Permalink
chore: client only logo
Browse files Browse the repository at this point in the history
  • Loading branch information
hmbanan666 committed Aug 22, 2024
1 parent 4aeef6a commit 9536770
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ const randomCharUrl = `url(/units/${randomChar}/128.png)`
</script>

<template>
<div>
<ClientOnly>
<div v-if="$route.path === '/'" class="logo" :style="{ backgroundImage: randomCharUrl }" />
<NuxtLink v-else href="/">
<div class="logo shake" :style="{ backgroundImage: randomCharUrl }" />
</NuxtLink>
</div>
</ClientOnly>
</template>

<style scoped>
Expand Down

0 comments on commit 9536770

Please sign in to comment.