Skip to content

Commit

Permalink
feat: inline play Hero videos
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoSoaress committed Dec 15, 2023
1 parent 173c225 commit 8dca8fb
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/Core/AASdk/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const AASdk = ({ title, caption, text, link }: BaseBlock) => {
)}
</Grid>
<div className={css.videoWrapper}>
<video autoPlay muted loop className={css.video}>
<video autoPlay muted playsInline loop className={css.video}>
<source src={isSmallScreen ? '/videos/aa-sdk-mobile.webm' : '/videos/aa-sdk.webm'} type="video/webm" />
<source
src={isSmallScreen ? '/videos/aa-sdk-mobile.hevc.mp4' : '/videos/aa-sdk.hevc.mp4'}
Expand Down
8 changes: 4 additions & 4 deletions src/components/Core/Intro/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const CoreIntro = ({ title, text, link, scroll }: BaseBlock & { scroll?: { title
>
<Grid item md={6} display="flex" justifyContent="center">
<video autoPlay muted loop className={css.video}>
<source src="/videos/intro-chip.webm" type="video/webm" />
<source src="/videos/intro-chip.hevc.mp4" type="video/mp4" />
<source src="/videos/intro-chip.mp4" type="video/mp4" />
<img src="/images/intro-chip.png" alt="Core Chip" />
<source src="/videos/Core/intro-chip.webm" type="video/webm" />
<source src="/videos/Core/intro-chip.hevc.mp4" type="video/mp4" />
<source src="/videos/Core/intro-chip.mp4" type="video/mp4" />
<img src="/images/Core/intro-chip.png" alt="Core Chip" />
</video>
</Grid>
<Grid item md={6}>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Home/Intro/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const Intro = ({ title, text, buttons }: BaseBlock) => {
</Grid>
</Grid>
<div className={css.filter}>
<video autoPlay muted loop className={css.video}>
<source src="/videos/safe-logo.mp4" type="video/mp4" />
<video autoPlay muted playsInline loop className={css.video}>
<source src="/videos/Home/safe-logo.mp4" type="video/mp4" />
</video>
<div className={css.frame} />
</div>
Expand Down

0 comments on commit 8dca8fb

Please sign in to comment.