v5: Revenge of the JavaScript 🦸 (#711)

Hugo ➡️ Next.js
This commit is contained in:
jake authored and GitHub committed 2021-12-30 08:18:41 -05:00
1 parent b7505fa260
commit 9979e1bf3f
577 files changed
+8019 -11864

No files matched your search

@@ -0,0 +1,10 @@
.wrapper {
position: relative;
padding-top: 56.25%; // 100 / (1280 / 720)
}
.react_player {
position: absolute;
top: 0;
left: 0;
}
+12
View File
@@ -0,0 +1,12 @@
import ReactPlayer from "react-player/lazy";
import type { ReactPlayerProps } from "react-player";
import styles from "./FullPageVideo.module.scss";
export default function Video(props: ReactPlayerProps) {
return (
<div className={styles.wrapper}>
<ReactPlayer className={styles.react_player} width="100%" height="100%" {...props} />
</div>
);
}