Skip to content

Commit

Permalink
add video component
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Jan 10, 2024
1 parent 0297854 commit 1156086
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions resources/views/components/video.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@props([
'conversion' => null,
'poster' => null,
'src' => null,
'media',
])

<video {!! $attributes !!} height="{{ $media->getHeight($conversion) }}" width="{{ $media->getWidth($conversion) }}"
alt="{{ $media->getName($conversion) }}"
poster="{{ $poster ?? $media->getUrl($conversion ? $conversion . '.poster' : 'poster') }}"
src="{{ $src ?? $media->getUrl() }}">

0 comments on commit 1156086

Please sign in to comment.