Compare commits
3 commits
eaa4c17d4d
...
bdeaa9a561
| Author | SHA1 | Date | |
|---|---|---|---|
| bdeaa9a561 | |||
| 042f5f6b18 | |||
| 3d3183c5f1 |
2 changed files with 23 additions and 24 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
Loading…
Reference in a new issue