File tree Expand file tree Collapse file tree 2 files changed +88
-3
lines changed Expand file tree Collapse file tree 2 files changed +88
-3
lines changed Original file line number Diff line number Diff line change 1
1
.DS_Store
2
2
node_modules
3
- examples /
4
- packages /
5
- public /
6
3
7
4
# local env files
8
5
.env.local
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div class =" main-section" >
3
+ <h3 class =" section-title white" >How to use</h3 >
4
+ <pre class =" npm-code white" >
5
+ <code >
6
+ npm install vue-particle-line --save
7
+ </code >
8
+ </pre >
9
+
10
+ <br >
11
+
12
+ <div class =" wrap-code text-left" >
13
+ <h4 class =" white" >Main.js file</h4 >
14
+ <pre class =" language-js" ><code >
15
+ import Vue from 'vue'
16
+ import vueParticleLine from 'vue-particle-line'
17
+ import 'vue-particle-line/dist/vue-particle-line.css'
18
+ Vue.use(vueParticleLine)
19
+ </code ></pre >
20
+ </div >
21
+ <br >
22
+ <div class =" wrap-code text-left" >
23
+ <h4 class =" white" >App.vue file - Simple example</h4 >
24
+ <pre class =" language-html" ><code >
25
+ {{appCode}}
26
+ </code ></pre >
27
+ </div >
28
+ <br >
29
+ <div class =" wrap-table" >
30
+ <h4 class =" white text-left" >Props</h4 >
31
+ <pre class =" language-html" >编写中</pre >
32
+ </div >
33
+ </div >
34
+ </template >
35
+
36
+ <script >
37
+ import Prism from ' prismjs'
38
+ const appCode = ` <template>
39
+ <div id="app">
40
+ <vue-particle-line>
41
+ <router-view />
42
+ </vue-particle-line>
43
+ </div>
44
+ </template>`
45
+ export default {
46
+ name: ' usage' ,
47
+ data () {
48
+ return {
49
+ appCode
50
+ }
51
+ },
52
+ mounted () {
53
+ Prism .highlightAll ()
54
+ }
55
+ }
56
+ </script >
57
+
58
+ <style lang="scss" scoped>
59
+ .main-section {
60
+ max-width : 650px ;
61
+ margin : auto ;
62
+ padding : 0 1rem ;
63
+ }
64
+ .section-title {
65
+ margin : 2rem 0 0 0 ;
66
+ }
67
+ .main-title {
68
+ color : #fff ;
69
+ z-index : 999 ;
70
+ h2 {
71
+ font-size : 7rem ;
72
+ font-family : " Teko" , sans-serif ;
73
+ text-shadow : 8px 8px #000000 ;
74
+ text-transform : uppercase ;
75
+ margin : 0 ;
76
+ @media (max-width : 767px ) {
77
+ font-size : 3rem ;
78
+ }
79
+ }
80
+ // p.subtitle {
81
+ // font-size: 1.7rem;
82
+ // margin: 0;
83
+ // @media (max-width: 767px) {
84
+ // font-size: 1rem;
85
+ // }
86
+ // }
87
+ }
88
+ </style >
You can’t perform that action at this time.
0 commit comments