Add time to EventDate
This commit is contained in:
parent
e4056f3825
commit
ef6582bc0a
1 changed files with 19 additions and 6 deletions
|
@ -1,9 +1,18 @@
|
|||
<template>
|
||||
<div class="d-flex align-end justify-center mr-1 mr-md-2">
|
||||
<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 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>
|
||||
|
||||
|
@ -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")} {
|
||||
|
|
Loading…
Reference in a new issue