Skip to content

Commit c476e00

Browse files
author
Philipp
committed
Added Vue 3
1 parent 0338aa6 commit c476e00

11 files changed

+1446
-2752
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Responsive Video Background Player for Vue ⚡️
1+
# Responsive Video Background Player for Vue 2 and Vue 3 ⚡️
22

33
<a href="https://www.npmjs.com/package/vue-responsive-video-background-player">
44
<img src="https://img.shields.io/npm/dt/vue-responsive-video-background-player.svg" alt="Downloads">
@@ -14,12 +14,16 @@
1414

1515
**If you are looking to play videos in the background, you have found the best Vue package for it 😜 (Currently no YouTube videos)**
1616

17-
>**Prerequisites**: Vue 2.x.x
17+
>**Prerequisites**: Vue 2.x.x or Vue 3.x.x
1818
1919
## Installation in 2 Steps
2020

2121
### 1: Add with npm 💻
2222
```bash
23+
# For Vue 2.x.x
24+
npm install [email protected]
25+
26+
# For Vue 3.x.x
2327
npm install vue-responsive-video-background-player
2428
```
2529

demo/public/js/app.js

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/resources/js/app.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
2-
import Vue from 'vue';
1+
import { createApp } from 'vue';
32
import VideoBackground from '../../../src/index';
43

5-
Vue.component('video-background', VideoBackground);
4+
const app = createApp({});
5+
6+
app.component('VideoBackground', VideoBackground);
67

7-
new Vue({ // eslint-disable-line no-new
8-
el: '#app',
9-
});
8+
app.mount('#app');

dist/index.common.js

+300-417
Large diffs are not rendered by default.

dist/index.umd.js

+304-421
Large diffs are not rendered by default.

dist/index.umd.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ <h6 class="text-light">Vue.js component</h6>
5151
<section class="container mt-5">
5252
<div class="row">
5353
<div class="col-12 col-md-6">
54-
<h4 class="text-white d-md-none" style="font-weight: 600;">Designed for Vue</h4>
55-
<h2 class="text-white d-none d-md-block" style="font-weight: 600; ">Designed for Vue</h2>
54+
<h4 class="text-white d-md-none" style="font-weight: 600;">Designed for Vue 2 & 3</h4>
55+
<h2 class="text-white d-none d-md-block" style="font-weight: 600; ">Designed for Vue 2 & 3</h2>
5656
</div>
5757
<div class="col-12 col-md-6">
5858
<p class="text-white">You can even change the video resolution with different breakpoints. Try it out, resize your window!</p>
@@ -61,7 +61,6 @@ <h2 class="text-white d-none d-md-block" style="font-weight: 600; ">Designed for
6161

6262
</section>
6363
</div>
64-
6564
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
6665
<script async defer src="https://buttons.github.io/buttons.js"></script>
6766
<script src="demo/public/js/app.js"></script>

0 commit comments

Comments
 (0)