Alisa/web/src/components/HeaderBar.vue

63 lines
1.2 KiB
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 13:07:33 +02:00
<v-spacer></v-spacer>
<!-- Create, Delete, Edit -->
<div>
<v-btn icon class="mr-3">
<Plus />
</v-btn>
<v-btn icon class="mr-3">
<Trash2 />
</v-btn>
<v-btn icon class="mr-3">
<Pencil />
</v-btn>
</div>
<v-text-field
2024-07-09 11:35:48 +02:00
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';
2024-07-09 13:07:33 +02:00
import { Plus } from 'lucide-vue-next';
import { Trash2 } from 'lucide-vue-next';
import { Pencil } from 'lucide-vue-next';
2024-07-09 12:11:21 +02:00
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>