forked from Stigmatoz/web-activity-time-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyApps.vue
More file actions
77 lines (72 loc) · 1.4 KB
/
MyApps.vue
File metadata and controls
77 lines (72 loc) · 1.4 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
68
69
70
71
72
73
74
75
76
77
<template>
<div class="main">
<p class="header">{{ t('tryMyOtherApps.message') }}</p>
<div class="app-block" @click="openAppLink(App.ClearYoutube)">
<div class="img-block">
<img src="../assets/icons/clear-youtube-logo.svg" height="45" />
</div>
<div>
<p class="title">{{ t('clearYoutube.message') }}</p>
<p class="description">
{{ t('clearYoutube.description') }}
</p>
</div>
</div>
</div>
</template>
<script lang="ts">
export default {
name: 'MyApps',
};
</script>
<script lang="ts" setup>
import { useI18n } from 'vue-i18n';
import { CHROME_STORE_CLEAR_YOUTUBE_URL } from '../utils/chrome-url';
const { t } = useI18n();
enum App {
ClearYoutube,
TrackerJam,
}
function openAppLink(app: App) {
switch (app) {
case App.ClearYoutube:
window.open(CHROME_STORE_CLEAR_YOUTUBE_URL, '_blank');
}
}
</script>
<style scoped>
.main {
margin-top: 50px;
}
.header {
font-size: 16px;
font-weight: 500;
text-transform: uppercase;
}
.app-block {
margin: 20px 0;
padding: 10px 20px;
font-size: 14px;
background-color: #efefef;
border-radius: 10px;
min-width: 655px;
display: flex;
flex-direction: row;
gap: 20px;
cursor: pointer;
}
.app-block .img-block {
margin: auto 0;
}
.title {
font-weight: 500;
font-size: 15px;
}
.description {
margin-top: 10px;
font-size: 14px;
}
img {
margin: auto;
}
</style>