Alisa/web/src/components/HeaderBar.vue

49 lines
935 B
Vue
Raw Normal View History

2024-07-09 11:35:48 +02:00
<template>
<div>
<v-toolbar
color="main"
dark
prominent
>
2024-07-09 12:00:33 +02:00
<img src="../assets/turbologo.svg" alt="logo" class="logo" width="75" />
2024-07-09 11:35:48 +02:00
<v-toolbar-title>Vuetify</v-toolbar-title>
<v-spacer></v-spacer>
<v-text-field
class="compact-form mr-2"
2024-07-08 15:22:23 +02:00
label="Search"
variant="solo"
2024-07-09 11:35:48 +02:00
density="compact"
2024-07-08 14:44:50 +02:00
prepend-inner-icon="mdi-magnify"
hide-details
single-line
clearable
rounded="pill"
></v-text-field>
2024-07-09 12:11:21 +02:00
<v-btn icon variant="outlined" @click="handlelogout">
2024-07-09 12:00:33 +02:00
<LogOut />
</v-btn>
2024-07-09 11:35:48 +02:00
</v-toolbar>
</div>
2024-07-09 12:00:33 +02:00
</template>
<script setup lang="ts">
2024-07-09 12:00:33 +02:00
import { LogOut } from 'lucide-vue-next';
2024-07-09 12:11:21 +02:00
import { store } from '@/store';
function handlelogout() {
console.log('logout');
store.setToken(null);
}
</script>
<style scoped>
2024-07-09 11:19:09 +02:00
.logo {
margin-right: 20%;
margin-left: 10px;
}
</style>