1
1
<template >
2
- <div id =" app" >
3
- <vue-player
4
- src =" http://techslides.com/demos/sample-videos/small.mp4"
5
- videoPlaceholderSrc =" http://techslides.com/demos/sample-videos/small.mp4"
6
- poster =" https://via.placeholder.com/150"
7
- title =" this is a title"
8
- playsinline
9
- preview-on-mouse
10
- v-model =" playing"
11
- >
12
- </vue-player >
13
-
14
- <ul >
15
- <li >
16
- src-index: {{srcIndex}}
17
- </li >
18
-
19
- <li @click =" playing = !playing" >
20
- playing: {{playing}}
21
- </li >
22
-
23
- <li @click =" controls = !controls" >
24
- controls: {{controls}}
25
- </li >
26
-
27
- <li @click =" fullscreen = !fullscreen" >
28
- fullscreen: {{fullscreen}}
29
- </li >
30
-
31
- <li >
32
- volume: <input type =" range" min =" 0" max =" 1" step =" 0.01" :value =" volume" @input =" setVolume" /> {{volume}}
33
- </li >
34
- </ul >
35
- </div >
2
+ <div id =" app" >
3
+ <div class =" columns is-centered" >
4
+ <div class =" column is-half" >
5
+ <intro />
6
+
7
+ <div class =" container" >
8
+ <h2 class =" title " >Instalation</h2 >
9
+
10
+ <p class =" subtitle" >
11
+ Click <a href =" https://github.com/algoz098/vue-player#usage--guide" >here</a >
12
+ </p >
13
+ </div >
14
+
15
+ <basic-player />
16
+
17
+ <minimum-player />
18
+
19
+ <preview-player />
20
+
21
+ <poster-player />
22
+
23
+ <div class =" container" >
24
+ <h2 class =" title " >More</h2 >
25
+
26
+ <p class =" subtitle" >
27
+ For more details, events, and props see <a href =" https://github.com/algoz098/vue-player/blob/master/PLAYER.md" >this</a >
28
+ </p >
29
+ </div >
30
+ </div >
31
+ </div >
32
+ </div >
36
33
</template >
37
34
38
35
<script >
39
- import vuePlayer from ' ./components/player.vue'
36
+ import intro from ' ./showcase/intro.vue'
37
+ import basicPlayer from ' ./showcase/basicPlayer.vue'
38
+ import minimumPlayer from ' ./showcase/minimumPlayer.vue'
39
+ import previewPlayer from ' ./showcase/previewPlayer.vue'
40
+ import posterPlayer from ' ./showcase/posterPlayer.vue'
40
41
41
42
export default {
42
43
name: ' app' ,
43
44
44
45
components: {
45
- vuePlayer
46
+ intro,
47
+ basicPlayer,
48
+ minimumPlayer,
49
+ previewPlayer,
50
+ posterPlayer
46
51
},
47
52
48
53
data () {
@@ -64,12 +69,42 @@ export default {
64
69
</script >
65
70
66
71
<style >
72
+ @import url (' https://fonts.googleapis.com/css?family=Montserrat&display=swap' );
67
73
body {
68
- margin : 10px ;
69
- max-width : 50vw ;
74
+ margin-top : 0 ;
75
+ margin-left : 17vw ;
76
+ margin-right : 17vw ;
77
+ font-family : ' Montserrat' , sans-serif ;
78
+ }
79
+
80
+ .title {
81
+ margin-bottom : 5px ;
82
+ font-size : 2.5rem ;
83
+ }
84
+
85
+ .subtitle {
86
+ margin-top : 0 ;
87
+ font-size : 1.5rem ;
88
+ max-width : 900px ;
89
+ }
90
+
91
+ .flex {
92
+ display : flex ;
93
+ }
94
+
95
+ .flex > div :not (:last-child ) {
96
+ padding-right : 10px ;
97
+ padding-left : 0px ;
98
+ }
99
+
100
+ .flex > div :not (:first-child ) {
101
+ padding-right : 0px ;
102
+ padding-left : 10px ;
70
103
}
71
104
72
- #app {
73
- margin : 0 ;
105
+ .highlight {
106
+ background-color : rgb (209 , 209 , 209 );
107
+ padding : 5px 10px ;
108
+ border-radius : 5px ;
74
109
}
75
110
</style >
0 commit comments