mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Fix Simple player not Astro component
This commit is contained in:
parent
7dffd7880d
commit
328823396c
2 changed files with 33 additions and 132 deletions
33
src/components/video/bg-player.astro
Normal file
33
src/components/video/bg-player.astro
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
const {
|
||||
video,
|
||||
classes = ''
|
||||
} = Astro.props
|
||||
|
||||
//
|
||||
---
|
||||
<div
|
||||
class={[
|
||||
'video-canvas w-screen flex justify-center inset-x-1/2 bg-black transition-opacity duration-500 ease-in-out',
|
||||
classes
|
||||
].join(' ')}
|
||||
style="
|
||||
margin-left: -50vw;
|
||||
margin-right: -50vw;
|
||||
-webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.25));
|
||||
"
|
||||
>
|
||||
<div class="ratio-wrapper w-full">
|
||||
<div class="relative overflow-hidden w-full pb-16/9">
|
||||
<video
|
||||
src={`https://vumbnail.com/${ video.id }.mp4`}
|
||||
class="absolute w-full object-cover inset-0 blur-sm"
|
||||
style="height: 200%;"
|
||||
muted
|
||||
autoplay
|
||||
loop
|
||||
playsinline
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue