forked from avidofood/vue-responsive-video-background-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (61 loc) · 3.25 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Vue Responsive Video Background Player</title>
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<style>
html, body {
background-color: #000;
font-family: 'Nunito', sans-serif;
}
.video-container{
max-height: 400px;
height: 100vh;
}
</style>
</head>
<body>
<div id="app">
<video-background
class="video-container"
src="demo/public/videos/roadster-loop-imperial.mp4"
overlay="linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(251, 148, 158, 0.22), rgba(251, 148, 158, 0.42))"
:sources="[
{src: 'demo/public/videos/accessories-hero-desktop.mp4', res: 991, autoplay: true},
{src: 'demo/public/videos/power-hero-mobile.mp4', res: 575, autoplay: true, poster: 'demo/public/images/[email protected]'}
]"
>
<div class="d-flex justify-content-center align-items-center h-50 px-2">
<h4 class="text-white text-center d-md-none" style="font-weight: 600;">Vue Responsive Background Player</h4>
<h1 class="text-white d-none d-md-block" style="font-weight: 600; ">Vue Responsive Background Player</h1>
</div>
</video-background>
<section class="container text-center mt-3">
<h6 class="text-light">Vue.js component</h6>
<a class="btn btn-danger" href="https://github.com/avidofood/vue-responsive-video-background-player" role="button">Source on GitHub</a>
<div class="social mt-4">
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-show-count="false">Tweet</a>
<a class="github-button" href="https://github.com/avidofood/vue-responsive-video-background-player" data-show-count="true" aria-label="Star avidofood/vue-responsive-video-background-player on GitHub">Star</a>
</div>
</section>
<section class="container mt-5">
<div class="row">
<div class="col-12 col-md-6">
<h4 class="text-white d-md-none" style="font-weight: 600;">Designed for Vue</h4>
<h2 class="text-white d-none d-md-block" style="font-weight: 600; ">Designed for Vue</h2>
</div>
<div class="col-12 col-md-6">
<p class="text-white">You can even change the video resolution with different breakpoints. Try it out, resize your window!</p>
</div>
</div>
</section>
</div>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
<script src="demo/public/js/app.js"></script>
</body>
</html>