Skip to content

Commit 393c505

Browse files
committed
add video to website
1 parent df2b1c4 commit 393c505

File tree

4 files changed

+177
-6
lines changed

4 files changed

+177
-6
lines changed

package-lock.json

Lines changed: 160 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@docusaurus/preset-classic": "3.0.1",
1919
"@docusaurus/theme-mermaid": "^3.0.1",
2020
"@mdx-js/react": "^3.0.0",
21+
"@mux/mux-player-react": "^2.5.0",
2122
"clsx": "^2.0.0",
2223
"prism-react-renderer": "^2.3.0",
2324
"react": "^18.0.0",

src/components/Home/index.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
XIcon2,
1414
} from "../../icons";
1515
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
16+
import MuxPlayer from '@mux/mux-player-react';
1617

1718
export default function Home({ recentPosts }) {
1819
const {
@@ -231,12 +232,21 @@ export default function Home({ recentPosts }) {
231232
</main>
232233

233234
{/* OVERVIEW SECTION */}
234-
{/* <section className="st_overview">
235-
<h2>3DSTREET OVERVIEW</h2>
236-
<video className="st_overview_video" controls preload="metadata">
235+
<section className="st_overview">
236+
<h2>3DSTREET IN 2 MINUTES</h2>
237+
<MuxPlayer
238+
streamType="on-demand"
239+
playbackId="lXImH9p0000L4fsSSEHgz6RudBQv02CgqQh"
240+
metadataVideoTitle="Placeholder (optional)"
241+
metadataViewerUserId="Placeholder (optional)"
242+
primaryColor="#FFFFFF"
243+
secondaryColor="#000000"
244+
accentColor="#653CB0"
245+
/>
246+
{/* <video className="st_overview_video" controls preload="metadata">
237247
<source src="/video/3d-streets-overview.mp4" type="video/mp4" />
238-
</video>
239-
</section> */}
248+
</video> */}
249+
</section>
240250

241251
<div className="st_grid_3_wrapper">
242252
{/* VISION SECTION */}

src/css/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ section h2 {
260260
----------------------------------------------------------------*/
261261

262262
.st_overview {
263-
margin-top: 64px;
263+
margin-top: 4px;
264264
display: flex;
265265
flex-direction: column;
266266
row-gap: 24px;

0 commit comments

Comments
 (0)