|
|
|
@ -9,6 +9,7 @@ import IconButton from "@mui/material/IconButton"; |
|
|
|
import { Stack } from "@mui/system"; |
|
|
|
import { Stack } from "@mui/system"; |
|
|
|
import logoSrc from "./logo_chat.svg"; |
|
|
|
import logoSrc from "./logo_chat.svg"; |
|
|
|
import { Fade, LinearProgress } from "@mui/material"; |
|
|
|
import { Fade, LinearProgress } from "@mui/material"; |
|
|
|
|
|
|
|
import { VideoComponent } from "./Proiezione"; |
|
|
|
|
|
|
|
|
|
|
|
export const Galleria = () => { |
|
|
|
export const Galleria = () => { |
|
|
|
const { evento } = useParams(); |
|
|
|
const { evento } = useParams(); |
|
|
|
@ -66,6 +67,7 @@ export const Galleria = () => { |
|
|
|
style={{ position: "absolute", width: "100vw", top: "50%" }} |
|
|
|
style={{ position: "absolute", width: "100vw", top: "50%" }} |
|
|
|
/> |
|
|
|
/> |
|
|
|
)} |
|
|
|
)} |
|
|
|
|
|
|
|
{imgIndex === images.length && ( |
|
|
|
<div |
|
|
|
<div |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
|
margin: "0 auto", |
|
|
|
margin: "0 auto", |
|
|
|
@ -81,9 +83,8 @@ export const Galleria = () => { |
|
|
|
textAlign: "center", |
|
|
|
textAlign: "center", |
|
|
|
}} |
|
|
|
}} |
|
|
|
> |
|
|
|
> |
|
|
|
{imgIndex === images.length && ( |
|
|
|
<VideoComponent /> |
|
|
|
<ContenitoreMessaggio messaggi={messages} /> |
|
|
|
<ContenitoreMessaggio messaggi={messages} /> |
|
|
|
)} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<img |
|
|
|
<img |
|
|
|
src={logoSrc} |
|
|
|
src={logoSrc} |
|
|
|
@ -96,6 +97,7 @@ export const Galleria = () => { |
|
|
|
}} |
|
|
|
}} |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
); |
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
|
@ -105,7 +107,7 @@ const ContenitoreMessaggio = ({ messaggi }) => { |
|
|
|
const messaggioDaMostrare = messaggi[indiceCorrente]; |
|
|
|
const messaggioDaMostrare = messaggi[indiceCorrente]; |
|
|
|
console.log(indiceCorrente); |
|
|
|
console.log(indiceCorrente); |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<Stack> |
|
|
|
<Stack sx={{ zIndex: 1 }}> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
{messaggioDaMostrare && ( |
|
|
|
{messaggioDaMostrare && ( |
|
|
|
<ImagePlaceholder |
|
|
|
<ImagePlaceholder |
|
|
|
@ -183,7 +185,7 @@ function ImagePlaceholder({ messaggioDaMostrare }) { |
|
|
|
src={messaggioDaMostrare.immagineURL} |
|
|
|
src={messaggioDaMostrare.immagineURL} |
|
|
|
style={{ |
|
|
|
style={{ |
|
|
|
maxWidth: "100%", |
|
|
|
maxWidth: "100%", |
|
|
|
maxHeight: "80vh", |
|
|
|
maxHeight: "65vh", |
|
|
|
}} |
|
|
|
}} |
|
|
|
/> |
|
|
|
/> |
|
|
|
)} |
|
|
|
)} |
|
|
|
@ -221,7 +223,10 @@ const Messaggio = ({ messaggioDaMostrare }) => { |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
)} |
|
|
|
)} |
|
|
|
<p style={{ fontFamily: "sans-serif", fontSize: ".8rem", color: "#333" }}> |
|
|
|
<p style={{ fontFamily: "sans-serif", fontSize: ".8rem", color: "#333" }}> |
|
|
|
{date.toLocaleString("it-IT")} |
|
|
|
{date.toLocaleString("it-IT", { |
|
|
|
|
|
|
|
timeStyle: "short", |
|
|
|
|
|
|
|
dateStyle: "short", |
|
|
|
|
|
|
|
})} |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</> |
|
|
|
</> |
|
|
|
); |
|
|
|
); |
|
|
|
|