diff --git a/package-lock.json b/package-lock.json index 6729081a9..3a90fb6a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19277,9 +19277,9 @@ } }, "node_modules/hls.js": { - "version": "1.5.9", - "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.5.9.tgz", - "integrity": "sha512-CZBc086Ljw7Ie1IGOGUPLiINBPuJcv53O3jPRjH9aJJcbaOxAm7+jf3/TKpNZlCjCjXIz0GhmQCVAyraF7/SkA==" + "version": "1.5.11", + "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.5.11.tgz", + "integrity": "sha512-q3We1izi2+qkOO+TvZdHv+dx6aFzdtk3xc1/Qesrvto4thLTT/x/1FK85c5h1qZE4MmMBNgKg+MIW8nxQfxwBw==" }, "node_modules/hoist-non-react-statics": { "version": "3.3.2", diff --git a/website/src/app/[lang]/[region]/v2/(home)/(components)/mux-video.tsx b/website/src/app/[lang]/[region]/v2/(home)/(components)/mux-video.tsx index b2bc3dc58..24d6d3712 100644 --- a/website/src/app/[lang]/[region]/v2/(home)/(components)/mux-video.tsx +++ b/website/src/app/[lang]/[region]/v2/(home)/(components)/mux-video.tsx @@ -1,19 +1,65 @@ 'use client'; +import { PauseIcon, PlayIcon, SpeakerWaveIcon, SpeakerXMarkIcon } from '@heroicons/react/24/solid'; import MuxVideo from '@mux/mux-video-react'; +import { Button } from '@socialincome/ui'; +import { useEffect, useRef, useState } from 'react'; const MuxVideoComponent = () => { + const ref = useRef(null); + const [muted, setMuted] = useState(true); + const [playing, setPlaying] = useState(false); + + useEffect(() => { + if (playing) { + ref.current?.play(); + } else { + ref.current?.pause(); + } + }, [playing]); + return ( - + <> + +
+
+ + +
+
+ ); }; diff --git a/website/src/app/[lang]/[region]/v2/(home)/(sections)/hero-video.tsx b/website/src/app/[lang]/[region]/v2/(home)/(sections)/hero-video.tsx index 10374e295..f1e9a7f18 100644 --- a/website/src/app/[lang]/[region]/v2/(home)/(sections)/hero-video.tsx +++ b/website/src/app/[lang]/[region]/v2/(home)/(sections)/hero-video.tsx @@ -13,18 +13,19 @@ export async function HeroVideo({ lang }: DefaultParams) { return (
-
-
-
+
+
+
+
{translator.t<{ text: string; color?: FontColor }[]>('section-1.title-1').map((title, index) => ( - + {title.text}{' '} ))}
+
-
); }