Skip to content

Commit

Permalink
chore: update the video and set a fallback for the loading (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoSoaress authored Jul 5, 2024
1 parent 4d431dd commit f965789
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 1 deletion.
Binary file modified public/images/GasStation/gas-station.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/videos/GasStation/gas-station.mp4
Binary file not shown.
Binary file added public/videos/GasStation/gas-station.webm
Binary file not shown.
3 changes: 2 additions & 1 deletion src/components/GasStation/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { Button, Typography } from '@mui/material'
const Hero = ({ title, text, link }: BaseBlock) => {
return (
<div className={css.videoWrapper}>
<video autoPlay muted playsInline loop className={css.video}>
<video autoPlay muted playsInline loop poster="/images/GasStation/gas-station.png" className={css.video}>
<source src="/videos/GasStation/gas-station.webm" type="video/webm" />
<source src="/videos/GasStation/gas-station.mp4" type="video/mp4" />
<img src="/images/GasStation/gas-station.png" alt="Safe Gas Station" />
</video>
Expand Down

0 comments on commit f965789

Please sign in to comment.