1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 17:06:37 -04:00

next-mdx-remote v4 (#737)

This commit is contained in:
2022-01-18 09:25:09 -05:00
committed by GitHub
parent 2ef5d06c38
commit a406010bd2
110 changed files with 1009 additions and 1490 deletions

View File

@ -1,7 +1,7 @@
import { NextSeo } from "next-seo";
import Content from "../components/Content";
import Title from "../components/title/Title";
import Video from "../components/media/Video";
import Content from "../components/Content/Content";
import Title from "../components/Title/Title";
import Video from "../components/Video/Video";
import thumbnail from "../public/static/images/leo/thumb.png";
@ -19,31 +19,10 @@ const Leo = () => (
<Content>
<Video
url={[
{ src: "/static/images/leo/leo.webm", type: "video/webm" },
{ src: "/static/images/leo/leo.mp4", type: "video/mp4" },
]}
config={{
// @ts-ignore
file: {
attributes: {
poster: thumbnail.src,
controlsList: "nodownload",
preload: "metadata",
autoPlay: false,
},
tracks: [
{
kind: "subtitles",
src: "/static/images/leo/subs.en.vtt",
srcLang: "en",
label: "English",
default: true,
},
],
},
}}
controls={true}
webm="/static/images/leo/leo.webm"
mp4="/static/images/leo/leo.mp4"
thumbnail={thumbnail.src}
subs="/static/images/leo/subs.en.vtt"
/>
<p className="copyright">