Compare commits
No commits in common. "bdeaa9a561917730b20d15c34bb74655cbfd1376" and "eaa4c17d4da1f2e9832cc61e54bbb3fb71c3bb02" have entirely different histories.
bdeaa9a561
...
eaa4c17d4d
2 changed files with 24 additions and 23 deletions
|
|
@ -14,15 +14,12 @@ export default class Clock extends Vue {
|
||||||
@Prop()
|
@Prop()
|
||||||
public format!: string;
|
public format!: string;
|
||||||
|
|
||||||
private update(): void {
|
|
||||||
this.formatted = DateTime.now()
|
|
||||||
.setLocale(navigator.language)
|
|
||||||
.toFormat(this.format);
|
|
||||||
}
|
|
||||||
|
|
||||||
public created(): void {
|
public created(): void {
|
||||||
this.update();
|
this.interval = setInterval((): void => {
|
||||||
this.interval = setInterval(this.update, 10000);
|
this.formatted = DateTime.now()
|
||||||
|
.setLocale(navigator.language)
|
||||||
|
.toFormat(this.format);
|
||||||
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
public beforeDestroy(): void {
|
public beforeDestroy(): void {
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,30 @@
|
||||||
<template>
|
<template>
|
||||||
<v-toolbar color="primary" prominent dark>
|
<v-toolbar color="primary" prominent dark>
|
||||||
<v-container class="d-flex pa-0" fluid fill-height>
|
<v-row class="d-flex">
|
||||||
<div class="d-flex justify-start slim text-left text-no-wrap">LOGO</div>
|
<v-col
|
||||||
|
cols="3"
|
||||||
|
class="d-flex flex-grow-1 flex-shrink-1 justify-start text-left"
|
||||||
|
>
|
||||||
|
LOGO
|
||||||
|
</v-col>
|
||||||
|
|
||||||
<div class="d-flex justify-center text-center mx-auto thw-font">
|
<v-col
|
||||||
|
cols="6"
|
||||||
|
class="d-flex flex-grow-0 flex-shrink-1 justify-center text-center"
|
||||||
|
>
|
||||||
TITLE
|
TITLE
|
||||||
</div>
|
</v-col>
|
||||||
|
|
||||||
<div class="d-flex justify-end slim text-right text-no-wrap">
|
<v-col
|
||||||
|
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>
|
||||||
</div>
|
</v-col>
|
||||||
</v-container>
|
</v-row>
|
||||||
</v-toolbar>
|
</v-toolbar>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -29,12 +40,5 @@ import Clock from "./Clock.vue";
|
||||||
export default class TitleBar extends Vue {}
|
export default class TitleBar extends Vue {}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="css" scoped>
|
<style>
|
||||||
.slim {
|
|
||||||
max-width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.thw-font {
|
|
||||||
font-family: "Lubalin Graph", "Roboto", sans-serif !important;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
Loading…
Reference in a new issue