Skip to content

Commit 034ae25

Browse files
committed
Replace intro video and update team description
1 parent 26398ef commit 034ae25

4 files changed

Lines changed: 47 additions & 24 deletions

File tree

src/pages/index.js

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import clsx from 'clsx';
22
import Link from '@docusaurus/Link';
33
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
4+
import useBaseUrl from '@docusaurus/useBaseUrl';
45
import Layout from '@theme/Layout';
56
import HomepageFeatures from '@site/src/components/HomepageFeatures';
67

@@ -12,6 +13,7 @@ import React, { useState, useEffect } from 'react';
1213

1314
function HomepageHeader() {
1415
const {siteConfig} = useDocusaurusContext();
16+
const videoUrl = useBaseUrl('/vid/intro.mp4');
1517

1618
return (
1719

@@ -20,11 +22,30 @@ function HomepageHeader() {
2022
style={{
2123
width: '100vw',
2224
marginLeft: 'calc(-50vw + 50%)',
23-
padding: '0rem 0',
25+
padding: '12rem 0',
26+
minHeight: '70vh',
27+
display: 'flex',
28+
alignItems: 'center',
2429
background: 'linear-gradient(90deg, #4f8cff 0%, #6ee7b7 100%)',
30+
position: 'relative',
31+
overflow: 'hidden',
2532
}}
2633
>
27-
<div className="container" style={{ maxWidth: '1000px', textAlign: 'center' }}>
34+
<video
35+
autoPlay
36+
muted
37+
loop
38+
playsInline
39+
preload="auto"
40+
className={styles.videoBackground}
41+
style={{ pointerEvents: 'none' }}
42+
>
43+
<source src={videoUrl} type="video/quicktime" />
44+
<source src={videoUrl} type="video/mp4" />
45+
Your browser does not support the video tag.
46+
</video>
47+
48+
<div className={clsx("container", styles.heroContent)} style={{ maxWidth: '1000px', textAlign: 'center' }}>
2849

2950
{/* EGO PICTURE
3051
<section className={styles.introSection}>
@@ -67,30 +88,15 @@ function HomepageHeader() {
6788
{siteConfig.tagline}
6889
</p>
6990

70-
{/* <div className={styles.buttons}>
71-
<Link
72-
className="button button--secondary button--lg"
73-
style={{
74-
fontSize: '1.25rem',
75-
padding: '1rem 2.5rem',
76-
borderRadius: '2rem',
77-
boxShadow: '0 4px 16px rgba(79,140,255,0.15)',
78-
backgroundColor: '#0d57dfff',
79-
color: '#fff',
80-
border: 'none',
81-
}}
82-
to="/docs/tutorials/intro"
83-
>
84-
Let's get started with Ego!
85-
</Link>
86-
</div> */}
87-
88-
{/* EGO PICTURE */}
91+
{/* EGO PICTURE
8992
{<img
9093
src={require('/img/ego_nobg.png').default}
9194
style={{ width: '100%', maxWidth: '500px', height: 'auto', marginBottom: '-0.5rem' }}
9295
className={styles.introImage}
93-
/>}
96+
/>} */}
97+
98+
99+
94100
</div>
95101
</header>
96102
);

src/pages/index.module.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,20 @@
2121
align-items: center;
2222
justify-content: center;
2323
}
24+
25+
.videoBackground {
26+
position: absolute;
27+
top: 50%;
28+
left: 50%;
29+
width: 100%;
30+
height: 100%;
31+
object-fit: cover;
32+
transform: translate(-50%, -50%);
33+
z-index: 0;
34+
opacity: 0.5;
35+
}
36+
37+
.heroContent {
38+
position: relative;
39+
z-index: 1;
40+
}

src/pages/team.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ function TeamMember({ name, role, image }) {
5959

6060
export default function Team() {
6161
return (
62-
<Layout title="Team" description="The brilliant minds behind Alter-Ego">
62+
<Layout title="Team" description="The brilliant minds behind AlterEgo">
6363
<main>
6464
<section className={styles.teamSection}>
6565
<div className="container">
6666
<div className="text--center margin-bottom--xl">
6767
<Heading as="h1" className={styles.sectionTitle}>Meet the Team</Heading>
68-
<p className={styles.sectionSubtitle}>The brilliant minds behind Alter-Ego robot project.</p>
68+
<p className={styles.sectionSubtitle}>The brilliant minds behind AlterEgo.</p>
6969
</div>
7070

7171
{TeamCategories.map((category, idx) => (

static/vid/intro.mp4

17.5 MB
Binary file not shown.

0 commit comments

Comments
 (0)