1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-26 03:46:06 -05:00

v5: Revenge of the JavaScript 🦸 (#711)

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

View File

@@ -0,0 +1,10 @@
.wrapper {
position: relative;
padding-top: 56.25%; // 100 / (1280 / 720)
}
.react_player {
position: absolute;
top: 0;
left: 0;
}

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>
);
}