Commit ad0019ea authored by 우지원's avatar 우지원
Browse files

onClick추가

parent 566d7109
...@@ -53,38 +53,45 @@ const ChannelList = () => { ...@@ -53,38 +53,45 @@ const ChannelList = () => {
<div className="overflow-auto" style={{ height: "610px" }}> <div className="overflow-auto" style={{ height: "610px" }}>
<div className="mb-3"> <div className="mb-3">
<div className="m-3 p-2 row" style={{ backgroundColor: "#C4C4C4" }}> <div className="m-3 p-1 row" style={{ backgroundColor: "#ab9aba" }}>
<img className="col-auto" src="/fullSpeaker.png" width="30px" height="30px" /> <img className="col-auto mt-2" src="/fullSpeaker.png" width="25px" height="25px" />
<h5 className="col">회의</h5> <h5 className="col mt-2">회의</h5>
</div> </div>
<div className="mx-5"> <div className="mx-5">
<ChannelSingle /> <ChannelSingle />
</div> </div>
</div> </div>
<div className="mb-3"> <div className="mb-3">
<div className="m-3 p-2" style={{ backgroundColor: "#C4C4C4" }}> <div className="m-3 p-1 row" style={{ backgroundColor: "#ab9aba" }}>
<h5>사담</h5> <img className="col-auto mt-2" src="/emptySpeaker.png" width="25px" height="25px" />
<h5 className="col mt-2">사담</h5>
</div> </div>
<div className="mx-5"> <div className="mx-5">
<ChannelSingle /> <ChannelSingle />
</div> </div>
</div> </div>
<div className="mb-3"> <div className="mb-3">
<div className="m-3 p-2" style={{ backgroundColor: "#C4C4C4" }}> <div className="m-3 p-1 row" style={{ backgroundColor: "#ab9aba" }}>
<h5>공지</h5> <img className="col-auto mt-2" src="/emptySpeaker.png" width="25px" height="25px" />
<h5 className="col mt-2">공지1</h5>
</div> </div>
<div className="mx-5"> <div className="mx-5">
<ChannelSingle /> <ChannelSingle />
</div> </div>
</div> </div>
<div className="mb-3"> <div className="mb-3">
<div className="m-3 p-2" style={{ backgroundColor: "#C4C4C4" }}> <div className="m-3 p-1 row" style={{ backgroundColor: "#ab9aba" }}>
<h5>공지</h5> <img className="col-auto mt-2" src="/emptySpeaker.png" width="25px" height="25px" />
<h5 className="col mt-2">공지2</h5>
</div> </div>
<div className="mx-5"> <div className="mx-5">
<ChannelSingle /> <ChannelSingle />
</div> </div>
</div> </div>
</div> </div>
<div className="d-flex flex-row-reverse"> <div className="d-flex flex-row-reverse">
......
...@@ -5,30 +5,54 @@ import mic_btn from '../../micbtn.png' ...@@ -5,30 +5,54 @@ import mic_btn from '../../micbtn.png'
import videooff_btn from '../../videooffbtn.png' import videooff_btn from '../../videooffbtn.png'
import speakeroff_btn from '../../speakeroffbtn.png' import speakeroff_btn from '../../speakeroffbtn.png'
import micoff_btn from '../../micoffbtn.png' import micoff_btn from '../../micoffbtn.png'
import React, { useState } from 'react';
const Controller = () => { const Controller = () => {
const [mic, setMic] = useState("true")
const [video, setVideo] = useState("true")
const [speaker, setSpeaker] = useState("true")
const micOn = (() => setMic(false));
const micOff = (() => setMic(true));
const speakerOn = (() => setSpeaker(false));
const speakerOff = (() => setSpeaker(true));
const videoOn = (() => setVideo(false));
const videoOff = (() => setVideo(true));
return ( return (
<div className="container"> <div className="container">
<div className="row"> <div className="row">
<div <div
className="col d-flex justify-content-center" className="col d-flex justify-content-center"
style={{ backgroundColor: '#C4C4C4', position:'absolute', bottom:0 }} style={{ backgroundColor: '#C4C4C4', position: 'absolute', bottom: 0 }}
> >
{/* <div className="col d-flex justify-content-center"> {/* <div className="col d-flex justify-content-center">
<button type="button" className="btn"> <button type="button" className="btn">
<img src={mic_btn} width="45" height="40" /> <img src={mic_btn} width="45" height="40" />
</button> </button>
</div> */} </div> */}
<div className="col d-flex justify-content-center"> {mic ? <div className="col d-flex justify-content-center">
<button type="button" className="btn" onClick> <button type="button" className="btn" onClick={micOn}>
<img src={micoff_btn} width="45" height="40" /> <img src={micoff_btn} width="45" height="40" />
</button> </button>
</div> </div>
<div className="col d-flex justify-content-center"> : <div className="col d-flex justify-content-center">
<button type="button" className="btn"> <button type="button" className="btn" onClick={micOff}>
<img src={mic_btn} width="45" height="40" />
</button>
</div>
}
{speaker ? <div className="col d-flex justify-content-center">
<button type="button" className="btn" onClick={speakerOn}>
<img src={speakeroff_btn} width="45" /> <img src={speakeroff_btn} width="45" />
</button> </button>
</div> : <div className="col d-flex justify-content-center">
<button type="button" className="btn" onClick={speakerOff}>
<img src={speaker_btn} width="45" />
</button>
</div> </div>
<div className="col d-flex justify-content-center"> }
{video ? <div className="col d-flex justify-content-center">
<button <button
type="button" type="button"
className="btn" className="btn"
...@@ -36,10 +60,16 @@ const Controller = () => { ...@@ -36,10 +60,16 @@ const Controller = () => {
data-bs-target="#exampleModal" data-bs-target="#exampleModal"
src={video_btn} src={video_btn}
onClick="location.href='ScreenSelect.js'" onClick="location.href='ScreenSelect.js'"
onClick={videoOn}
> >
<img src={videooff_btn} width="45" /> <img src={videooff_btn} width="45" />
</button> </button>
</div> </div> :
<div className="col d-flex justify-content-center">
<button type="button" className="btn" onClick={videoOff}>
<img src={video_btn} width="45" />
</button>
</div>}
</div> </div>
<ScreenSelect /> <ScreenSelect />
</div> </div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment