ovdashboard/ui/src/components/title/THWLogo.vue

55 lines
1.1 KiB
Vue
Raw Normal View History

2022-09-12 10:47:44 +00:00
<template>
2022-09-12 11:12:47 +00:00
<div class="d-flex flex-column text-wrap">
<div class="d-flex justify-start justify-md-end">
<span class="d-none d-md-flex text-right thw-logo-font mr-2">
{{ above }}
2022-09-12 11:01:48 +00:00
</span>
2022-09-19 11:55:12 +00:00
<v-img class="d-none d-sm-flex" width="56" height="56" :src="logo_url" />
2022-09-12 10:47:44 +00:00
</div>
2022-09-12 11:12:47 +00:00
<v-divider class="d-none d-md-block my-1" />
<span class="d-none d-md-flex thw-logo-font">
{{ below }}
2022-09-12 10:47:44 +00:00
</span>
</div>
</template>
<script lang="ts">
import { Component, Prop, Vue } from "vue-property-decorator";
2022-09-12 10:47:44 +00:00
@Component
export default class THWLogo extends Vue {
2022-09-12 22:37:55 +00:00
@Prop({ required: true })
private readonly above!: string;
2022-09-12 22:37:55 +00:00
@Prop({ required: true })
private readonly below!: string;
2022-09-19 11:55:12 +00:00
private get logo_url(): string {
return this.$ovdashboard.api_url("file/get/logo");
}
}
2022-09-12 10:47:44 +00:00
</script>
<style scoped>
.flex-column {
2022-09-12 11:01:48 +00:00
min-width: 250px;
max-width: 250px;
2022-09-12 10:47:44 +00:00
}
.v-divider {
border-width: 1px;
border-color: white;
}
div.flex-column > div > span:first-child {
2022-09-12 10:47:44 +00:00
font-size: 28px;
line-height: 28px;
2022-09-12 11:01:48 +00:00
align-items: center;
2022-09-12 10:47:44 +00:00
}
div.flex-column > span:last-child {
2022-09-12 10:47:44 +00:00
font-size: 15px;
line-height: 15px;
}
2022-09-12 22:35:58 +00:00
</style>