11import ExpandMoreIcon from "@mui/icons-material/ExpandMore" ;
2- import { Typography , Box , Button , IconButton } from "@mui/material" ;
2+ import { Typography , Box , Button , IconButton , Dialog } from "@mui/material" ;
33import { Colors } from "design/theme" ;
44import React from "react" ;
5+ import { useState } from "react" ;
56
67interface Section3Props {
78 scrollToNext : ( ) => void ;
89}
910
1011const Section3 : React . FC < Section3Props > = ( { scrollToNext } ) => {
12+ const [ open , setOpen ] = useState ( false ) ;
13+
14+ const handleOpen = ( ) => setOpen ( true ) ;
15+ const handleClose = ( ) => setOpen ( false ) ;
16+
1117 return (
1218 < Box
1319 sx = { {
@@ -89,7 +95,9 @@ const Section3: React.FC<Section3Props> = ({ scrollToNext }) => {
8995 alignItems : "center" ,
9096 mt : { xs : 4 , md : 2 } ,
9197 mb : { xs : 8 , md : 0 } ,
98+ cursor : "pointer" ,
9299 } }
100+ onClick = { handleOpen }
93101 >
94102 < img
95103 src = { `${ process . env . PUBLIC_URL } /img/3cards_vertical.png` }
@@ -100,6 +108,34 @@ const Section3: React.FC<Section3Props> = ({ scrollToNext }) => {
100108 } }
101109 > </ img >
102110 </ Box >
111+
112+ { /* video dialog */ }
113+ < Dialog open = { open } onClose = { handleClose } maxWidth = "md" fullWidth >
114+ < Box sx = { { p : 2 } } >
115+ { /* <Box sx={{ position: "relative", paddingTop: "56.25%", height: 0 }}>
116+ <iframe
117+ src="https://www.youtube.com/watch?v=ZI-HntdeVas" // Replace with actual video URL
118+ title="Demo Video"
119+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
120+ allowFullScreen
121+ style={{
122+ position: "absolute",
123+ top: 0,
124+ left: 0,
125+ width: "100%",
126+ height: "100%",
127+ border: "none",
128+ }}
129+ ></iframe> */ }
130+ < video controls style = { { width : "100%" , borderRadius : "8px" } } >
131+ < source
132+ src = { `${ process . env . PUBLIC_URL } /video/tiger.mp4` }
133+ type = "video/mp4"
134+ />
135+ Your browser does not support the video tag.
136+ </ video >
137+ </ Box >
138+ </ Dialog >
103139 { /* </Box> */ }
104140
105141 { /* Scroll Arrow to Section4 */ }
0 commit comments