Skip to content

Commit b979511

Browse files
committed
docs: add Intro component
1 parent afc8be1 commit b979511

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<template>
2+
<div class="intro-container">
3+
<p>An infinite scroll plugin for Vue.js</p>
4+
<router-link
5+
class="button button-large button-basic"
6+
:to="'/guide/'"
7+
tag="button">
8+
Get Started
9+
</router-link>
10+
<button class="button button-large">View GitHub</button>
11+
<ul class="feat-list">
12+
<li>
13+
<h3>Out of the box</h3>
14+
BalabalaBalabalaBalabalaBalabala
15+
</li>
16+
<li>
17+
<h3>2-direction support</h3>
18+
BalabalaBalabalaBalabalaBalabala
19+
</li>
20+
<li>
21+
<h3>Result display</h3>
22+
BalabalaBalabalaBalabalaBalabala
23+
</li>
24+
</ul>
25+
</div>
26+
</template>
27+
28+
<style lang="stylus" scoped>
29+
@require '../styles/config';
30+
31+
.intro-container
32+
width 640px
33+
text-align center
34+
35+
> p
36+
margin 0 0 40px
37+
color $c-basic-light
38+
39+
.button + .button
40+
margin-left 20px
41+
42+
.feat-list
43+
list-style none
44+
display flex
45+
margin-top 60px
46+
padding 0
47+
48+
li
49+
flex 1
50+
color $c-basic-light
51+
word-break break-all
52+
53+
&:not(:last-child)
54+
margin-right 40px
55+
56+
&::before
57+
content ''
58+
display block
59+
padding-top 57%
60+
background no-repeat center top/90%
61+
filter grayscale(50%)
62+
transition filter 0.3s
63+
64+
&:first-child::before
65+
background-image url('../assets/images/icon-box.png')
66+
67+
&:nth-child(2)::before
68+
background-image url('../assets/images/icon-dir.png')
69+
70+
&:last-child::before
71+
background-image url('../assets/images/icon-msg.png')
72+
73+
&:hover::before
74+
filter none
75+
76+
h3
77+
margin 0 0 5px
78+
color $c-basic
79+
</style>

0 commit comments

Comments
 (0)