Import repositories from gitlab
This commit is contained in:
15
next/components/videoBlock/index.jsx
Normal file
15
next/components/videoBlock/index.jsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import styles from "./style.module.scss";
|
||||
|
||||
export default async function VideoBlock(props) {
|
||||
return (
|
||||
<iframe
|
||||
className={`${props.className} ${styles.videoBlock}`}
|
||||
width={ props.mode ==='thumbnail' ? "220" : "560" }
|
||||
height={props.mode ==='thumbnail' ? "220" : "315"}
|
||||
src={props.src}
|
||||
title={props.title}
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||
allowFullScreen
|
||||
/>
|
||||
);
|
||||
}
|
||||
3
next/components/videoBlock/style.module.scss
Normal file
3
next/components/videoBlock/style.module.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
.videoBlock {
|
||||
max-width: 90vw;
|
||||
}
|
||||
Reference in New Issue
Block a user