Compare commits

...

3 commits

2 changed files with 23 additions and 24 deletions

View file

@ -14,12 +14,15 @@ export default class Clock extends Vue {
@Prop() @Prop()
public format!: string; public format!: string;
public created(): void { private update(): void {
this.interval = setInterval((): void => {
this.formatted = DateTime.now() this.formatted = DateTime.now()
.setLocale(navigator.language) .setLocale(navigator.language)
.toFormat(this.format); .toFormat(this.format);
}, 1000); }
public created(): void {
this.update();
this.interval = setInterval(this.update, 10000);
} }
public beforeDestroy(): void { public beforeDestroy(): void {

View file

@ -1,30 +1,19 @@
<template> <template>
<v-toolbar color="primary" prominent dark> <v-toolbar color="primary" prominent dark>
<v-row class="d-flex"> <v-container class="d-flex pa-0" fluid fill-height>
<v-col <div class="d-flex justify-start slim text-left text-no-wrap">LOGO</div>
cols="3"
class="d-flex flex-grow-1 flex-shrink-1 justify-start text-left"
>
LOGO
</v-col>
<v-col <div class="d-flex justify-center text-center mx-auto thw-font">
cols="6"
class="d-flex flex-grow-0 flex-shrink-1 justify-center text-center"
>
TITLE TITLE
</v-col> </div>
<v-col <div class="d-flex justify-end slim text-right text-no-wrap">
cols="3"
class="d-flex flex-grow-1 flex-shrink-1 justify-end text-right"
>
<div class="flex-column"> <div class="flex-column">
<Clock class="d-flex justify-end" format="DDD" /> <Clock class="d-flex justify-end" format="DDD" />
<Clock class="d-flex justify-end" format="T" /> <Clock class="d-flex justify-end" format="T" />
</div> </div>
</v-col> </div>
</v-row> </v-container>
</v-toolbar> </v-toolbar>
</template> </template>
@ -40,5 +29,12 @@ import Clock from "./Clock.vue";
export default class TitleBar extends Vue {} export default class TitleBar extends Vue {}
</script> </script>
<style> <style lang="css" scoped>
.slim {
max-width: 0;
}
.thw-font {
font-family: "Lubalin Graph", "Roboto", sans-serif !important;
}
</style> </style>