feat: preload video

This commit is contained in:
Nazareno Oviedo 2022-04-18 23:26:53 -03:00
parent 2c522a0c3a
commit 9d0531ccd1
4 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ const About = ({
}: InferGetStaticPropsType<typeof getStaticProps>) => {
return (
<PageLayout>
<Meta />
<Meta preload={[{ href: '/videos/hero-about.mp4', as: 'fetch' }]} />
<Hero />
<Team />
<Related data={initialBlogPosts?.data} />

View File

@ -9,7 +9,7 @@ import { Page } from './_app'
const Community: Page = () => {
return (
<PageLayout>
<Meta />
<Meta preload={[{ href: '/videos/banner-community.mp4', as: 'fetch' }]} />
<Hero />
<Events />
<Socials />

View File

@ -40,7 +40,7 @@ const HomePage = ({
}: InferGetStaticPropsType<typeof getStaticProps>) => {
return (
<PageLayout>
<Meta />
<Meta preload={[{ href: '/videos/hero-grid.mp4', as: 'fetch' }]} />
<Hero />
<Benefits />
<LatestNews data={initialBlogPosts?.data} />

View File

@ -43,7 +43,7 @@ const Products = ({
}: InferGetStaticPropsType<typeof getStaticProps>) => {
return (
<PageLayout>
<Meta />
<Meta preload={[{ href: '/videos/banner_products.mp4', as: 'fetch' }]} />
<Hero />
<Stack />
<Network />