Add time to EventDate

This commit is contained in:
Jörn-Michael Miehe 2022-09-15 01:12:45 +00:00
parent e4056f3825
commit ef6582bc0a

View file

@ -1,10 +1,19 @@
<template>
<div class="d-flex align-end justify-center mr-1 mr-md-2">
<div class="d-flex justify-center mr-1 mr-md-2">
<div class="d-flex flex-column align-end">
<div class="d-flex align-end">
<span class="d-flex text-h4 text-md-h3">{{ day }}</span>
<span class="d-flex text-h5 text-md-h4 blue-grey--text text--darken-1">
{{ month }}
</span>
</div>
<span
class="d-flex text-h6 text-md-h5 blue-grey--text text--lighten-1 mt-n1"
>
{{ time }}
</span>
</div>
</div>
</template>
<script lang="ts">
@ -23,13 +32,17 @@ export default class EventDate extends Vue {
private get month(): string {
return this.date.toFormat("MM.");
}
private get time(): string {
return this.date.toLocaleString(DateTime.TIME_24_SIMPLE);
}
}
</script>
<style lang="scss" scoped>
@import "~vuetify/src/styles/settings/_variables";
div {
div.justify-center {
min-width: 95px;
@media #{map-get($display-breakpoints, "md-and-up")} {