Add remaining samples, tooling, and local project assets
This commit is contained in:
21
samples/src/components/VideoModal.astro
Normal file
21
samples/src/components/VideoModal.astro
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
interface Props {
|
||||
id: string;
|
||||
videoSrc: string;
|
||||
}
|
||||
|
||||
const { id, videoSrc } = Astro.props;
|
||||
---
|
||||
|
||||
<div class="modal" id={id}>
|
||||
<div class="modal-content">
|
||||
<span class="close">×</span>
|
||||
<video
|
||||
src={videoSrc}
|
||||
controls
|
||||
muted="muted"
|
||||
controlsList="nodownload"
|
||||
></video>
|
||||
<p>▲ 영상 위에 마우스 커서를 올리면 재생 컨트롤바가 보입니다.</p>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user