Skip to content

Commit aeebd0e

Browse files
committed
add Scrimba links for preview
1 parent 49ffe8e commit aeebd0e

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

src/v2/guide/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ or:
3232

3333
The [Installation](installation.html) page provides more options of installing Vue. Note: We **do not** recommend that beginners start with `vue-cli`, especially if you are not yet familiar with Node.js-based build tools.
3434

35+
If you prefer something more interactive, you can also check out [this tutorial series on Scrimba](https://scrimba.com/playlist/pXKqta), which gives you a mix of screencast and code playground that you can pause and play around with anytime.
36+
3537
## Declarative Rendering
3638

39+
<div class="scrimba"><a href="https://scrimba.com/p/pXKqta/cQ3QVcr" target="_blank">Try this lesson on Scrimba</a></div>
40+
3741
At the core of Vue.js is a system that enables us to declaratively render data to the DOM using straightforward template syntax:
3842

3943
``` html
@@ -105,6 +109,8 @@ If you open up your JavaScript console again and enter `app2.message = 'some new
105109

106110
## Conditionals and Loops
107111

112+
<div class="scrimba"><a href="https://scrimba.com/p/pXKqta/cEQe4SJ" target="_blank">Try this lesson on Scrimba</a></div>
113+
108114
It's easy to toggle the presence of an element, too:
109115

110116
``` html
@@ -189,6 +195,8 @@ In the console, enter `app4.todos.push({ text: 'New item' })`. You should see a
189195

190196
## Handling User Input
191197

198+
<div class="scrimba"><a href="https://scrimba.com/p/pXKqta/czPNaUr" target="_blank">Try this lesson on Scrimba</a></div>
199+
192200
To let users interact with your app, we can use the `v-on` directive to attach event listeners that invoke methods on our Vue instances:
193201

194202
``` html
@@ -265,6 +273,8 @@ var app6 = new Vue({
265273

266274
## Composing with Components
267275

276+
<div class="scrimba"><a href="https://scrimba.com/p/pXKqta/cEQVkA3" target="_blank">Try this lesson on Scrimba</a></div>
277+
268278
The component system is another important concept in Vue, because it's an abstraction that allows us to build large-scale applications composed of small, self-contained, and often reusable components. If we think about it, almost any type of application interface can be abstracted into a tree of components:
269279

270280
![Component Tree](/images/components.png)

themes/vue/source/css/_scrimba.styl

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.scrimba
2+
background-color #e7ecf3
3+
padding 1em 1.25em
4+
border-radius 2px
5+
color #486491
6+
position relative
7+
a
8+
color #486491 !important
9+
position relative
10+
padding-left 36px
11+
&:before
12+
content ''
13+
position absolute
14+
display block
15+
width 30px
16+
height 30px
17+
top -5px
18+
left -4px
19+
border-radius 50%
20+
background-color #73abfe
21+
&:after
22+
content ''
23+
position absolute
24+
display block
25+
width 0
26+
height 0
27+
top 5px
28+
left 8px
29+
border-top 5px solid transparent
30+
border-bottom 5px solid transparent
31+
border-left 8px solid #fff

themes/vue/source/css/page.styl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
@import "_team"
1313
@import "_style-guide"
1414
@import "_modal"
15+
@import "_scrimba"
1516

1617
#header
1718
box-shadow: 0 0 1px rgba(0,0,0,.25)
@@ -255,4 +256,4 @@
255256
&.tip
256257
background-color: rgb(255,255,255)
257258
border: 2px solid #e8e8e8
258-
border-left: 4px solid $red
259+
border-left: 4px solid $red

0 commit comments

Comments
 (0)