Skip to content

Commit d3202bc

Browse files
authored
feat: add vuemastery migration graphical link (#11)
1 parent 3679bab commit d3202bc

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

src/index.md

+81
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,87 @@ sidebar: false
66

77
This guide is primarily for users with prior Vue 2 experience who want to learn about the changes between Vue 2 and Vue 3. **This is not something you have to read from top to bottom before trying out Vue 3.** The recommended way to learn Vue 3 is by reading the [new documentation](https://vuejs.org).
88

9+
<!-- VueMastery Start -->
10+
<style>
11+
.vue-mastery-link {
12+
background-color: #f9f9f9;
13+
border-radius: 8px;
14+
padding: 8px 16px 8px 8px;
15+
}
16+
17+
.vue-mastery-link a {
18+
display: flex;
19+
align-items: center;
20+
text-decoration: none;
21+
}
22+
23+
.vue-mastery-link .banner {
24+
background-color: #f9f9f9;
25+
border-radius: 4px;
26+
width:96px;
27+
height:56px;
28+
object-fit: cover;
29+
}
30+
31+
.vue-mastery-link .description {
32+
flex: 1;
33+
font-weight: 500;
34+
font-size: 14px;
35+
line-height: 20px;
36+
color: #213547;
37+
margin: 0 0 0 16px;
38+
}
39+
40+
.vue-mastery-link .description span {
41+
color: #42b883;
42+
}
43+
44+
.vue-mastery-link .logo-wrapper {
45+
position: relative;
46+
width: 48px;
47+
height: 48px;
48+
border-radius: 50%;
49+
background-color: #ffffff;
50+
display: flex;
51+
justify-content: center;
52+
align-items: center;
53+
}
54+
55+
.vue-mastery-link .logo-wrapper img {
56+
width: 25px;
57+
object-fit: contain;
58+
}
59+
60+
@media (max-width: 576px) {
61+
.vue-mastery-link .banner {
62+
width:56px;
63+
}
64+
65+
.vue-mastery-link .description {
66+
font-size: 12px;
67+
line-height: 18px;
68+
}
69+
.vue-mastery-link .logo-wrapper {
70+
position: relative;
71+
width: 32px;
72+
height: 32px;
73+
}
74+
}
75+
</style>
76+
77+
<div class="vue-mastery-link">
78+
<a href="https://www.vuemastery.com/migration-guide-cheat-sheet/" target="_blank">
79+
<div class="banner-wrapper">
80+
<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" />
81+
</div>
82+
<p class="description">Get the free Migration Guide Cheat Sheet at <span>VueMastery.com</span></p>
83+
<div class="logo-wrapper">
84+
<img alt="Vue Mastery Logo" width="25px" src="https://storage.googleapis.com/vue-mastery.appspot.com/flamelink/media/vue-mastery-logo.png" />
85+
</div>
86+
</a>
87+
</div>
88+
<!-- VueMastery End -->
89+
990
## Notable New Features
1091

1192
Some of the new features to keep an eye on in Vue 3 include:

0 commit comments

Comments
 (0)