Download frontend/src/background/Background.js from ashwinR/Portfolio: direct link, hf CLI and curl.
- Browser
- Download file 519 Bytes
-
https://huggingface.co/spaces/ashwinR/Portfolio/resolve/main/frontend/src/background/Background.js
- Command line
-
hf download hf://spaces/ashwinR/Portfolio/frontend/src/background/Background.js
-
curl -L -o Background.js https://huggingface.co/spaces/ashwinR/Portfolio/resolve/main/frontend/src/background/Background.js
519 Bytes
| 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; |