File size: 519 Bytes
f332108 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import React from "react";
import "../styles/background.css";
import video from "../assets/bg-universe.mp4";
import fallbackImage from "../assets/fallback-image.png";
const Background = () => {
return (
<>
<div className="shadow-overlay"></div>
<video
playsInline
autoPlay
muted
loop
preload="auto"
id="bg"
poster={fallbackImage}
>
<source src={video} type="video/mp4" />
</video>
</>
);
};
export default Background; |