Transitions

This commit is contained in:
scambier committed 2022-02-18 11:45:09 +01:00
1 parent dbeb7db2c3
commit 2dcfaf513f
8 files changed
+158 -97

No files matched your search

+21 -4
View File
@@ -1,7 +1,24 @@
<template>
<h1 class="pt-2 pb-4 text-3xl font-bold text-center">
Numbers
</h1>
<div class="flex justify-between items-center mx-auto w-full max-w-md">
<RouterLink
:class="{ 'opacity-0': isHome }"
to="/"
class="text-xl text-stone-400 transition-opacity">
<IconHouse />
</RouterLink>
<h1 class="py-2 text-3xl text-center">
Numbers
</h1>
<IconMenu class="text-xl" />
</div>
</template>
<script setup lang="ts"></script>
<script setup lang="ts">
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import IconHouse from '~icons/ph/house'
import IconMenu from '~icons/ph/list'
const isHome = computed(() => useRoute().name === 'home')
</script>