-
-
Notifications
You must be signed in to change notification settings - Fork 203
/
Copy pathAppStats.vue
65 lines (59 loc) · 1006 Bytes
/
AppStats.vue
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
<template>
<div class="stats">
<div class="bio">
<p>{{ selectedUser.bio }}</p>
</div>
<div>
<span class="desc">Followers</span><br>
<span class="lg">{{ selectedUser.followers }}</span>
</div>
<div>
<span class="desc">Following</span><br>
<span class="lg">{{ selectedUser.following }}</span>
</div>
</div>
</template>
<script>
export default {
props: {
selectedUser: {
type: Object
}
}
}
</script>
<style lang="scss" scoped>
.stats {
font-family: 'Playfair Display', serif;
display: flex;
position: absolute;
right: 0;
top: 330px;
width: 60%;
justify-content: space-between;
line-height: 1.2;
}
.lg {
font-size: 40px;
}
.bio {
width: 60%;
line-height: 1.4;
}
@media screen and (max-width: 980px) {
.bio {
display: none;
}
.stats {
justify-content: flex-end;
div {
padding-left: 20px;
}
}
}
@media screen and (max-width: 600px) {
.stats {
display: none;
}
}
</style>