@@ -603,23 +603,35 @@ export default function IDE({ docId, modal, toggleModal, python, setpython, inpu
603603
604604function RightVideoPanel ( { muteCam, muteMic } ) {
605605
606+ const [ isMuteCam , setIsMuteCam ] = useState ( false )
607+ const [ isMuteMic , setIsMuteMic ] = useState ( false )
608+
606609 return (
607- < div style = { { height : "calc(100vh - 47px)" } } className = "flex flex-col items-center relative p-2 bg-purple-dark shadow-lg" >
608- { /* <button><img className="h-4 my-2" src={upArrow} alt="scroll up arrow" /></button> */ }
609- < div className = "flex flex-col items-center overflow-y-auto justify-center pb-10" id = "video-grid" > </ div >
610- { /* <button><img className="h-4 my-2 transform rotate-180" src={upArrow} alt="scroll down arrow" /></button> */ }
611- < div className = "flex items-center backdrop-filter backdrop-blur absolute left-0 bottom-0 pt-2 rounded-lg pb-4 w-full justify-around mt-2" >
612- < button className = "bg-orange-standard border border-r rounded-full h-8 w-8 p-1.5" >
613- < img src = { muteIcon } alt = "mute icon" />
614- </ button >
615- < button className = "bg-orange-standard border border-r rounded-full h-8 w-8 p-1.5" >
616- < img src = { videoIcon } onClick = { muteCam } alt = "video icon" />
617- </ button >
618- < button className = "bg-orange-standard border border-r rounded-full h-8 w-8 p-1.5" >
619- < img src = { phoneIcon } onClick = { ( ) => {
610+ < div style = { { height : "calc(100vh - 47px)" } } className = "overflow-hidden duration-300 flex flex-col items-center justify-center" >
611+ < div style = { { height : "calc(100vh - 47px)" } } className = "flex overflow-hidden justify-between flex-col bg-theme-teal-dark relative py-2 px-2.5 shadow-lg" >
612+ { /* <button><img className="h-4 my-2" src={upArrow} alt="scroll up arrow" /></button> */ }
613+ < div style = { { width : "200px" } } className = "flex flex-col items-center overflow-y-auto justify-center pt-10" id = "video-grid" >
614+ </ div >
615+ { /* <button><img className="h-4 my-2 transform rotate-180" src={upArrow} alt="scroll down arrow" /></button> */ }
616+ < div className = "flex items-center absolute backdrop-filter backdrop-blur left-0 bottom-0 pt-2 rounded-lg pb-4 w-full justify-around mt-2" >
617+ < button onClick = { ( ) => {
618+ setIsMuteMic ( ! isMuteMic )
619+ muteMic ( ) ;
620+ } } className = { ` ${ isMuteMic ? "bg-theme-orange text-white" : " bg-theme-grey" } border transform duration-300 hover:shadow-2xl shadow-lg border-transparent rounded-full h-8 w-8 p-1.5` } >
621+ < img src = { muteIcon } alt = "mute icon" />
622+ </ button >
623+ < button onClick = { ( ) => {
624+ setIsMuteCam ( ! isMuteCam )
625+ muteCam ( ) ;
626+ } } className = { `${ isMuteCam ? "bg-theme-orange text-white" : " bg-theme-grey" } border transform duration-300 hover:shadow-2xl shadow-lg border-transparent rounded-full h-8 w-8 p-1.5` } >
627+ < img src = { videoIcon } onClick = { muteCam } alt = "video icon" />
628+ </ button >
629+ < button onClick = { ( ) => {
620630 window . location . href = "/"
621- } } alt = "phone icon" />
622- </ button >
631+ } } className = " bg-red-600 border border-transparent shadow-2xl rounded-full h-8 w-8 p-1.5" >
632+ < img src = { phoneIcon } alt = "phone icon" />
633+ </ button >
634+ </ div >
623635 </ div >
624636 </ div >
625637 )
0 commit comments