BackgroundImage uses <img> and can be centered with VideoFeedFrame, but cannot be shrunk when the window becomes narrow. BackgroundImageDiv uses div and a background image property, but cannot be centered with VideoFeedFrame.
11 lines
355 B
TypeScript
11 lines
355 B
TypeScript
import { VideoFeedFrame, BackgroundImage, BackgroundImageDiv } from "./styles";
|
|
|
|
import bg from "../../../public/images/misc/bg-standin.jpg";
|
|
|
|
export default function VideoFeed() {
|
|
return <VideoFeedFrame centered={true}>
|
|
{/* <BackgroundImage src={bg} alt="formula one cars on track" /> */}
|
|
<BackgroundImageDiv src={bg} />
|
|
</VideoFeedFrame>;
|
|
}
|