Skip to content

Commit 0c1ff02

Browse files
Greggyyx990803
authored andcommitted
Adding pathways to free Video content (vuejs#1907)
1 parent deca14c commit 0c1ff02

File tree

9 files changed

+54
-4
lines changed

9 files changed

+54
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vuejs.org",
33
"private": true,
44
"hexo": {
5-
"version": "3.7.0"
5+
"version": "3.7.1"
66
},
77
"scripts": {
88
"start": "hexo server",

src/v2/guide/index.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ If you’d like to learn more about Vue before diving in, we <a id="modal-player
1212

1313
If you are an experienced frontend developer and want to know how Vue compares to other libraries/frameworks, check out the [Comparison with Other Frameworks](comparison.html).
1414

15+
<div class="vue-mastery"><a href="https://www.vuemastery.com/courses/intro-to-vue-js/vue-instance/" target="_blank" rel="noopener" title="Free Vue.js Course">Watch a free video course on Vue Mastery</a></div>
16+
1517
## Getting Started
1618

1719
<p class="tip">The official guide assumes intermediate level knowledge of HTML, CSS, and JavaScript. If you are totally new to frontend development, it might not be the best idea to jump right into a framework as your first step - grasp the basics then come back! Prior experience with other frameworks helps, but is not required.</p>
@@ -395,4 +397,4 @@ You may have noticed that Vue components are very similar to **Custom Elements**
395397

396398
We've briefly introduced the most basic features of Vue.js core - the rest of this guide will cover them and other advanced features with much finer details, so make sure to read through it all!
397399

398-
<div id="video-modal" class="modal"><div class="video-space" style="padding: 56.25% 0 0 0; position: relative;"><iframe src="https://player.vimeo.com/video/247494684" style="height: 100%; left: 0; position: absolute; top: 0; width: 100%; margin: 0" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div><script src="https://player.vimeo.com/api/player.js"></script></div>
400+
<div id="video-modal" class="modal"><div class="video-space" style="padding: 56.25% 0 0 0; position: relative;"><iframe src="https://player.vimeo.com/video/247494684" style="height: 100%; left: 0; position: absolute; top: 0; width: 100%; margin: 0" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div><script src="https://player.vimeo.com/api/player.js"></script><p class="modal-text">Video by <a href="https://www.vuemastery.com" target="_blank" rel="noopener" title="Vue.js Courses on Vue Mastery">Vue Mastery</a>. Watch Vue Mastery’s free <a href="https://www.vuemastery.com/courses/intro-to-vue-js/vue-instance/" target="_blank" rel="noopener" title="Vue.js Courses on Vue Mastery">Intro to Vue course</a>.</div>

src/v2/guide/installation.md

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ Vue provides an [official CLI](https://github.com/vuejs/vue-cli) for quickly sca
6262

6363
<p class="tip">The CLI assumes prior knowledge of Node.js and the associated build tools. If you are new to Vue or front-end build tools, we strongly suggest going through <a href="./">the guide</a> without any build tools before using the CLI.</p>
6464

65+
<div class="vue-mastery"><a href="https://www.vuemastery.com/courses/real-world-vue-js/vue-cli" target="_blank" rel="noopener" title="Vue CLI">Watch a video explanation on Vue Mastery</a></div>
66+
6567
## Explanation of Different Builds
6668

6769
In the [`dist/` directory of the NPM package](https://cdn.jsdelivr.net/npm/vue/dist/) you will find many different builds of Vue.js. Here's an overview of the difference between them:

src/v2/guide/reactivity.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ order: 601
66

77
Now it's time to take a deep dive! One of Vue's most distinct features is the unobtrusive reactivity system. Models are just plain JavaScript objects. When you modify them, the view updates. It makes state management simple and intuitive, but it's also important to understand how it works to avoid some common gotchas. In this section, we are going to dig into some of the lower-level details of Vue's reactivity system.
88

9+
<div class="vue-mastery"><a href="https://www.vuemastery.com/courses/advanced-components/build-a-reactivity-system" target="_blank" rel="noopener" title="Vue Reactivity">Watch a video explanation on Vue Mastery</a></div>
10+
911
## How Changes Are Tracked
1012

1113
When you pass a plain JavaScript object to a Vue instance as its `data` option, Vue will walk through all of its properties and convert them to [getter/setters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects#Defining_getters_and_setters) using [Object.defineProperty](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty). This is an ES5-only and un-shimmable feature, which is why Vue doesn't support IE8 and below.

src/v2/guide/state-management.md

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ order: 502
88

99
Large applications can often grow in complexity, due to multiple pieces of state scattered across many components and the interactions between them. To solve this problem, Vue offers [vuex](https://github.com/vuejs/vuex): our own Elm-inspired state management library. It even integrates into [vue-devtools](https://github.com/vuejs/vue-devtools), providing zero-setup access to [time travel debugging](https://raw.githubusercontent.com/vuejs/vue-devtools/master/media/demo.gif).
1010

11+
<div class="vue-mastery"><a href="https://www.vuemastery.com/courses/mastering-vuex/intro-to-vuex/" target="_blank" rel="noopener" title="Vuex Tutorial">Watch a video explanation on Vue Mastery</a></div>
12+
1113
### Information for React Developers
1214

1315
If you're coming from React, you may be wondering how vuex compares to [redux](https://github.com/reactjs/redux), the most popular Flux implementation in that ecosystem. Redux is actually view-layer agnostic, so it can easily be used with Vue via [simple bindings](https://yarnpkg.com/en/packages?q=redux%20vue&p=1). Vuex is different in that it _knows_ it's in a Vue app. This allows it to better integrate with Vue, offering a more intuitive API and improved development experience.

themes/vue/layout/index.ejs

+4-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@
118118
</div>
119119

120120
<div id="video-modal" class="modal">
121-
<div class="video-space" style="padding: 56.25% 0 0 0; position: relative;"><iframe src="https://player.vimeo.com/video/247494684" style="height: 100%; left: 0; position: absolute; top: 0; width: 100%;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div><script src="https://player.vimeo.com/api/player.js"></script>
121+
<div class="video-space" style="padding: 56.25% 0 0 0; position: relative;"><iframe src="https://player.vimeo.com/video/247494684" style="height: 100%; left: 0; position: absolute; top: 0; width: 100%;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
122+
</div><script src="https://player.vimeo.com/api/player.js"></script>
123+
<p class="modal-text">Video by <a href="https://www.vuemastery.com" target="_blank" rel="noopener" title="Vue.js Courses on Vue Mastery">Vue Mastery</a>. Watch Vue Mastery’s free <a href="https://www.vuemastery.com/courses/intro-to-vue-js/vue-instance/" target="_blank" rel="noopener" title="Vue.js Courses on Vue Mastery">Intro to Vue course</a>.
124+
</p>
122125
</div>
123126

124127
<script>

themes/vue/source/css/_modal.styl

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
box-sizing: border-box
33
display: none
44
position: fixed
5-
width: 80%
5+
width: 75%
66
height: auto
77
padding: .5em
88
background-color: #f9f9f9
@@ -13,6 +13,12 @@
1313
top: 50%
1414
left: 50%
1515
transform: translate(-50%, -50%)
16+
.modal-text
17+
margin-bottom 0.5em
18+
text-align center
19+
> a
20+
color $green
21+
font-weight 600
1622
.overlay
1723
position: fixed
1824
top: 0
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
.vue-mastery
2+
background-color #e7ecf3
3+
padding 1em 1.25em
4+
border-radius 2px
5+
color #486491
6+
position relative
7+
margin-top 1em
8+
a
9+
color #486491 !important
10+
position relative
11+
padding-left 36px
12+
&:before
13+
content ''
14+
position absolute
15+
display block
16+
width 30px
17+
height 30px
18+
top -5px
19+
left -4px
20+
border-radius 50%
21+
background-color #73abfe
22+
&:after
23+
content ''
24+
position absolute
25+
display block
26+
width 0
27+
height 0
28+
top 5px
29+
left 8px
30+
border-top 5px solid transparent
31+
border-bottom 5px solid transparent
32+
border-left 8px solid #fff

themes/vue/source/css/page.styl

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
@import "_style-guide"
1414
@import "_modal"
1515
@import "_scrimba"
16+
@import "_vue-mastery"
1617

1718
#header
1819
box-shadow: 0 0 1px rgba(0,0,0,.25)

0 commit comments

Comments
 (0)