Skip to content

Commit 7da7302

Browse files
committed
Add startup screen video to homepage
1 parent 7e226e9 commit 7da7302

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

src/pages/index.tsx

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
66
import useBaseUrl from "@docusaurus/useBaseUrl";
77
import styles from "./styles.module.css";
88
import { Feature, FeatureList } from "../Feature";
9+
import ReactPlayer from "react-player";
910

1011
function Home() {
1112
const context = useDocusaurusContext();
@@ -254,12 +255,30 @@ function Home() {
254255
Automatically keep party members up-to-date in your lobby
255256
screen using the <code>RedpointPartyMember</code> actor.
256257
</li>
258+
<li>
259+
Bind the friends list and party members to a UMG tree view
260+
widget; we'll keep entries up-to-date and you can focus on
261+
design.
262+
</li>
257263
</ul>
258264
</Feature.Describer>
259265
<Feature.Visual>
260-
<a href="#" target="_blank">
261-
<img src="#" className={classnames(styles.featureImage)} />
262-
</a>
266+
<div className={classnames(styles.featureImage)}>
267+
<ReactPlayer
268+
playing
269+
loop
270+
muted
271+
url={useBaseUrl("img/features/startup.mp4")}
272+
width="100%"
273+
height="auto"
274+
style={{
275+
marginTop: "1em",
276+
marginBottom: "1em",
277+
// fixes weird extra bottom margin around videos
278+
display: "flex",
279+
}}
280+
/>
281+
</div>
263282
</Feature.Visual>
264283
</Feature>
265284
<Feature>

static/img/features/startup.mp4

2.36 MB
Binary file not shown.

0 commit comments

Comments
 (0)