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