-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathVueMastery.vue
95 lines (86 loc) · 1.89 KB
/
VueMastery.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<template>
<div class="vue-mastery-link">
<a
href="https://www.vuemastery.com/migration-guide-cheat-sheet/"
target="_blank"
>
<div class="banner-wrapper">
<img
class="banner"
alt="Vue Mastery banner"
width="96px"
height="56px"
src="https://storage.googleapis.com/vue-mastery.appspot.com/flamelink/media/vuemastery-graphical-link-96x56.png"
/>
</div>
<p class="description">
Get the free Migration Guide Cheat Sheet at <span>VueMastery.com</span>
</p>
<div class="logo-wrapper">
<img
alt="Vue Mastery Logo"
width="25px"
src="https://storage.googleapis.com/vue-mastery.appspot.com/flamelink/media/vue-mastery-logo.png"
/>
</div>
</a>
</div>
</template>
<style>
.vue-mastery-link {
background-color: #f9f9f9;
border-radius: 8px;
padding: 8px 16px 8px 8px;
}
.vue-mastery-link a {
display: flex;
align-items: center;
text-decoration: none;
}
.vue-mastery-link .banner {
background-color: #f9f9f9;
border-radius: 4px;
width: 96px;
height: 56px;
object-fit: cover;
}
.vue-mastery-link .description {
flex: 1;
font-weight: 500;
font-size: 14px;
line-height: 20px;
color: #213547;
margin: 0 0 0 16px;
}
.vue-mastery-link .description span {
color: #42b883;
}
.vue-mastery-link .logo-wrapper {
position: relative;
width: 48px;
height: 48px;
border-radius: 50%;
background-color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
}
.vue-mastery-link .logo-wrapper img {
width: 25px;
object-fit: contain;
}
@media (max-width: 576px) {
.vue-mastery-link .banner {
width: 56px;
}
.vue-mastery-link .description {
font-size: 12px;
line-height: 18px;
}
.vue-mastery-link .logo-wrapper {
position: relative;
width: 32px;
height: 32px;
}
}
</style>