flaschengeist-frontend/src/layouts/OutLayout.vue

52 lines
1.2 KiB
Vue
Raw Normal View History

<template>
2020-10-13 09:27:27 +00:00
<q-layout view="hHh lpr lFf">
<!-- Be sure to play with the Layout demo on docs -->
<!-- (Optional) The Header -->
<q-header elevated>
<q-toolbar>
<q-toolbar-title>
<q-avatar>
2020-10-13 09:27:27 +00:00
<img src="logo.svg" />
</q-avatar>
<span class="gt-xs">
Flaschengeist
</span>
</q-toolbar-title>
2020-10-13 21:13:42 +00:00
<q-btn
flat
round
dense
icon="mdi-information"
v-if="$route.name != 'about_out'"
@click="$router.push({ name: 'about_out' })"
/>
<q-btn
flat
round
dense
icon="mdi-login-variant"
v-if="$route.name != 'login'"
@click="$router.push({ name: 'login' })"
/>
</q-toolbar>
</q-header>
<!-- (Optional) The Footer -->
<!-- (Optional) A Drawer; you can add one more with side="right" or change this one's side -->
<q-page-container>
<!-- This is where pages get injected -->
<router-view />
</q-page-container>
</q-layout>
</template>
<script lang="ts">
2020-10-13 09:27:27 +00:00
import { defineComponent } from '@vue/composition-api';
export default defineComponent({
2020-10-13 09:27:27 +00:00
name: 'OutLayout'
});
</script>