|
3 | 3 | 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). |
4 | 4 |
|
5 | 5 | <!-- VueMastery Start --> |
6 | | -<style> |
7 | | -.vue-mastery-link { |
8 | | - background-color: #f9f9f9; |
9 | | - border-radius: 8px; |
10 | | - padding: 8px 16px 8px 8px; |
11 | | -} |
12 | | - |
13 | | -.vue-mastery-link a { |
14 | | - display: flex; |
15 | | - align-items: center; |
16 | | - text-decoration: none; |
17 | | -} |
18 | | - |
19 | | -.vue-mastery-link .banner { |
20 | | - background-color: #f9f9f9; |
21 | | - border-radius: 4px; |
22 | | - width:96px; |
23 | | - height:56px; |
24 | | - object-fit: cover; |
25 | | -} |
26 | | - |
27 | | -.vue-mastery-link .description { |
28 | | - flex: 1; |
29 | | - font-weight: 500; |
30 | | - font-size: 14px; |
31 | | - line-height: 20px; |
32 | | - color: #213547; |
33 | | - margin: 0 0 0 16px; |
34 | | -} |
35 | | - |
36 | | -.vue-mastery-link .description span { |
37 | | - color: #42b883; |
38 | | -} |
39 | | - |
40 | | -.vue-mastery-link .logo-wrapper { |
41 | | - position: relative; |
42 | | - width: 48px; |
43 | | - height: 48px; |
44 | | - border-radius: 50%; |
45 | | - background-color: #ffffff; |
46 | | - display: flex; |
47 | | - justify-content: center; |
48 | | - align-items: center; |
49 | | -} |
50 | | - |
51 | | -.vue-mastery-link .logo-wrapper img { |
52 | | - width: 25px; |
53 | | - object-fit: contain; |
54 | | -} |
55 | | - |
56 | | -@media (max-width: 576px) { |
57 | | - .vue-mastery-link .banner { |
58 | | - width:56px; |
59 | | - } |
60 | | - |
61 | | - .vue-mastery-link .description { |
62 | | - font-size: 12px; |
63 | | - line-height: 18px; |
64 | | - } |
65 | | - .vue-mastery-link .logo-wrapper { |
66 | | - position: relative; |
67 | | - width: 32px; |
68 | | - height: 32px; |
69 | | - } |
70 | | -} |
71 | | -</style> |
72 | | - |
73 | | -<div class="vue-mastery-link"> |
74 | | - <a href="https://www.vuemastery.com/migration-guide-cheat-sheet/" target="_blank"> |
75 | | - <div class="banner-wrapper"> |
76 | | - <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" /> |
77 | | - </div> |
78 | | - <p class="description">Get the free Migration Guide Cheat Sheet at <span>VueMastery.com</span></p> |
79 | | - <div class="logo-wrapper"> |
80 | | - <img alt="Vue Mastery Logo" width="25px" src="https://storage.googleapis.com/vue-mastery.appspot.com/flamelink/media/vue-mastery-logo.png" /> |
81 | | - </div> |
82 | | - </a> |
83 | | -</div> |
| 6 | +<script setup> |
| 7 | +import VueMasteryWidget from './VueMastery.vue' |
| 8 | +</script> |
| 9 | +<VueMasteryWidget/> |
84 | 10 | <!-- VueMastery End --> |
85 | 11 |
|
86 | | -<style> |
87 | | -.note { |
88 | | - color: #476582; |
89 | | -} |
90 | | -</style> |
91 | | - |
92 | 12 | ## Notable New Features |
93 | 13 |
|
94 | 14 | Some of the new features to keep an eye on in Vue 3 include: |
@@ -117,3 +37,9 @@ New framework-level recommendations are listed [here](./recommendations). |
117 | 37 | ## Migration Build |
118 | 38 |
|
119 | 39 | If you have an existing Vue 2 project or library that you intend to upgrade to Vue 3, we provide a build of Vue 3 that offers Vue 2 compatible APIs. Check out the [Migration Build](./migration-build.html) page for more details. |
| 40 | + |
| 41 | +<style> |
| 42 | +.note { |
| 43 | + color: #476582; |
| 44 | +} |
| 45 | +</style> |
0 commit comments