Enabled astro preload, added video components, videos for software lead, part of content for software lead
This commit is contained in:
12
src/components/Video.astro
Normal file
12
src/components/Video.astro
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
import {type videoConfig} from "@interfaces/video.ts";
|
||||
|
||||
const config: videoConfig = Astro.props.videoConfig;
|
||||
console.log(config);
|
||||
---
|
||||
|
||||
<video class="w-full h-auto max-w-1/2" controls>
|
||||
<source src={config.videoPath} type={config.videoType ?? "video/mp4"}/>
|
||||
Your browser does not support the video tag.
|
||||
</video>
|
||||
|
||||
Reference in New Issue
Block a user