Skip to content

Commit 6afe501

Browse files
committed
add video to homepage
1 parent c3ae829 commit 6afe501

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

src/components/video-demo.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { Box, Container } from '@chakra-ui/react'
2+
import { Heading } from '@/components/mdx'
3+
import React from 'react'
4+
5+
export const VideoDemo = () => {
6+
return (
7+
<Box id={'video-demo'} as='section' my={12}>
8+
<Container maxW='container.lg' centerContent>
9+
<Heading as='h1' size='2xl' mb={4}>
10+
Video Demonstration
11+
</Heading>
12+
<Box w='100%' maxW='800px' borderRadius='lg' overflow='hidden' boxShadow='md'>
13+
<iframe
14+
width='100%'
15+
height='450'
16+
src='https://www.youtube.com/embed/-ztHdnkvJzQ'
17+
title='VirtualShip Classroom Demonstration'
18+
allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share'
19+
allowFullScreen
20+
></iframe>
21+
</Box>
22+
</Container>
23+
</Box>
24+
)
25+
}

src/pages/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Projects, Features, HeroBanner, Funders } from '@/components'
2+
import { VideoDemo } from '@/components/video-demo'
23

34
import { Layout } from '@/components/layout'
45

@@ -14,6 +15,7 @@ export default function IndexPage() {
1415
>
1516
<HeroBanner />
1617
<Features />
18+
<VideoDemo />
1719
{/* <Projects /> TODO uncomment when projects are ready */}
1820
<Funders />
1921
</Layout>

0 commit comments

Comments
 (0)