diff --git a/src/pages/_app.jsx b/src/pages/_app.jsx index 2a1f4c743..3318dd2ea 100644 --- a/src/pages/_app.jsx +++ b/src/pages/_app.jsx @@ -6,6 +6,7 @@ import Head from "next/head"; import "styles/globals.css"; import "styles/theme.css"; import "styles/manrope.css"; +import "styles/stream.css"; import nextI18nextConfig from "../../next-i18next.config"; import { ColorProvider } from "utils/contexts/color"; diff --git a/src/styles/stream.css b/src/styles/stream.css new file mode 100644 index 000000000..dbef1272e --- /dev/null +++ b/src/styles/stream.css @@ -0,0 +1,15 @@ +.animation { + margin: auto; + background-image: repeating-radial-gradient(circle at 17% 32%, white, black 0.00085px); + animation: tv-static 5s linear infinite; +} + +@keyframes tv-static { + from { + background-size: 100% 100%; + } + + to { + background-size: 200% 200%; + } +} \ No newline at end of file diff --git a/src/widgets/mjpeg/component.jsx b/src/widgets/mjpeg/component.jsx index 122ba5111..4fe3c868c 100644 --- a/src/widgets/mjpeg/component.jsx +++ b/src/widgets/mjpeg/component.jsx @@ -1,19 +1,17 @@ import Image from "next/image"; -import { useState } from 'react'; export default function Component({ service }) { const { widget } = service; const { stream, fit = "contain" } = widget; - const [src, setImgSrc] = useState(stream); - + return (