1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 15:16:40 -04:00

fix <Video /> component (downgrade react-player to 2.10.1)

This commit is contained in:
2023-04-13 11:09:13 -04:00
parent a4a402bcde
commit cab79559e6
9 changed files with 868 additions and 799 deletions

View File

@ -1,10 +1,8 @@
import { NextSeo } from "next-seo";
import Image from "../components/Image";
import Link from "../components/Link";
import Video from "../components/Video";
import { styled, theme } from "../lib/styles/stitches.config";
import pandaGif from "../public/static/images/angry-panda.gif";
const Center = styled("div", {
textAlign: "center",
});
@ -25,7 +23,18 @@ const FourOhFour = () => {
<NextSeo title="404 Not Found" />
<Center>
<Image src={pandaGif} alt="404s make panda angry..." quality={30} />
<Video
src={{
webm: "/static/images/angry-panda.webm",
mp4: "/static/images/angry-panda.mp4",
}}
autoplay
title="404s make panda angry..."
responsive={false}
css={{
maxWidth: "400px",
}}
/>
<H1>404: Page Not Found 😢</H1>