ISSUE-004 - Saving progress. Have two options for image display.

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.
This commit is contained in:
Kyle Geib committed 2021-12-21 21:17:38 -05:00
1 parent 2cd683f59d
commit b4ea27e8c6
8 files changed
+61 -5

No files matched your search

@@ -0,0 +1,10 @@
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>;
}