💄 Add Titlebar

This commit is contained in:
2022-04-29 22:54:48 +02:00
parent 5302392f08
commit 3f956b6c2c
4 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,39 @@
<script setup>
import MenuIcon from "./icons/menu-icon.vue";
import { computed } from "vue";
import { useRoute } from "vue-router";
const route = useRoute();
const routeName = computed(() => route.name);
</script>
<template>
<div class="titlebar">
<span class="title">{{ routeName }}</span>
<div class="settings">
<MenuIcon />
</div>
</div>
</template>
<style scoped>
.titlebar {
height: 68px;
background-color: var(--titlebar-color);
display: flex;
flex-direction: row;
align-items: center;
}
.title {
font-size: 25px;
padding-left: 13px;
}
.settings {
display: flex;
width: 100%;
justify-content: right;
padding-right: 13px;
}
</style>