wrbapp/frontend/components/layout/Topbar.vue

21 lines
737 B
Vue
Raw Normal View History

2022-09-16 21:11:44 +02:00
<template>
2022-12-04 11:57:53 +01:00
<div v-if="route.meta.key !== 'disable'" class="w-full topbar h-10 bg-neutral-200 dark:bg-neutral-800 flex justify-center items-center shadow px-5 gap-2">
2022-09-16 21:11:44 +02:00
<div class="flex justify-evenly items-center gap-3 w-full max-w-xl dark:text-gray-300 text-gray-900">
<Icon v-if="route.meta.key === 'back'" size="1.75em" @click="router.back()" class="hover:cursor-pointer" name="ion:arrow-back"/>
<h1 class="capitalize font-bold text-xl mr-auto">{{ route.meta.title }}</h1>
</div>
</div>
</template>
<script setup>
const route = useRoute()
const router = useRouter()
2022-12-04 11:57:53 +01:00
</script>
<style>
.topbar {
padding-top: calc(env(safe-area-inset-bottom) + 20px);
padding-bottom: 20px;
}
</style>