forked from Stigmatoz/web-activity-time-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWebsiteStatsDetails.vue
More file actions
67 lines (62 loc) · 1.32 KB
/
WebsiteStatsDetails.vue
File metadata and controls
67 lines (62 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<template>
<div class="container">
<div class="block">
<p class="title">{{ t('allTime.message') }}</p>
<p class="value">
{{ convertSummaryTimeToString(details.summaryTime) }}
</p>
</div>
<div class="block">
<p class="title">{{ t('sessions.message') }}</p>
<p class="value">
{{ details.sessions }}
</p>
</div>
<div class="block">
<p class="title">{{ t('averageDailyUsage.message') }}</p>
<p class="value">
{{ convertSummaryTimeToString(details.averageTime) }}
</p>
</div>
</div>
</template>
<script lang="ts">
export default {
name: 'WebsiteStatsDetails',
};
</script>
<script lang="ts" setup>
import { useI18n } from 'vue-i18n';
import { TabListByDays } from '../dto/tabListSummary';
import { convertSummaryTimeToString } from '../utils/converter';
defineProps<{
details: TabListByDays;
}>();
const { t } = useI18n();
</script>
<style scoped>
.title {
font-weight: 600;
font-size: 16px;
}
.container {
display: flex;
width: auto;
}
.block {
padding: 10px;
background-color: rgb(237 237 237);
border-radius: 10px;
margin-right: 30px;
box-shadow: 12px 12px 2px 1px rgb(185 255 171);
}
.block p.title {
font-size: 15px;
color: grey;
}
.block p.value {
margin: 5px;
font-size: 20px;
font-weight: 600;
}
</style>