ChannelList.js 5 KB
Newer Older
seoyeon's avatar
seoyeon committed
1
2
3
import ChannelSingle from './ChannelSingle'
import { Link } from 'react-router-dom'
import backward from '../../backward.png'
Kim, Chaerin's avatar
Kim, Chaerin committed
4
5

const ChannelList = () => {
seoyeon's avatar
0707 ui    
seoyeon committed
6
7
8
9
10
  // function copytoClipboard() {
  //   const [code, setCode] = useState()
  //   const roomcode = document.getElementById("textarea")
  //   alert("코드를 복사하였습니다.")
  // }
Kim, Chaerin's avatar
Kim, Chaerin committed
11
12
  return (
    <div>
우지원's avatar
우지원 committed
13
14
      <nav className="navbar navbar-light d-flex justify-content-between">
        <div>
우지원's avatar
우지원 committed
15
          <Link to="/user">
seoyeon's avatar
0707 ui    
seoyeon committed
16
            <button type="button" className="btn">
seoyeon's avatar
seoyeon committed
17
              <img src={backward} width="25" height="25" />
우지원's avatar
우지원 committed
18
19
20
21
            </button>
          </Link>
        </div>

우지원's avatar
우지원 committed
22
        <div>
우지원's avatar
우지원 committed
23
          <Link to="/user">
seoyeon's avatar
seoyeon committed
24
            <img src="/BORA.png" style={{ width: '160px' }} />
우지원's avatar
우지원 committed
25
26
27
          </Link>
        </div>

우지원's avatar
우지원 committed
28
        <div>
우지원's avatar
우지원 committed
29
30
31
32
33
34
35
36
          <button
            className="navbar-toggler"
            type="button"
            data-bs-toggle="offcanvas"
            data-bs-target="#hamburger"
            aria-controls="hamburger"
            aria-expanded="false"
            aria-label="Toggle navigation"
seoyeon's avatar
seoyeon committed
37
            style={{ border: '#f4c1f2' }}
우지원's avatar
우지원 committed
38
39
40
41
42
43
          >
            <span className="navbar-toggler-icon"></span>
          </button>
        </div>
      </nav>

seoyeon's avatar
seoyeon committed
44
      <div
seoyeon's avatar
0707 ui    
seoyeon committed
45
46
        className="offcanvas offcanvas-end"
        style={{ width: '330px' }}
우지원's avatar
우지원 committed
47
        tabIndex="-1"
seoyeon's avatar
seoyeon committed
48
49
50
        id="hamburger"
        aria-labelledby="hamburgerLabel"
      >
우지원's avatar
우지원 committed
51
        <div className="offcanvas-header">
seoyeon's avatar
0707 ui    
seoyeon committed
52
53
54
55
56
57
58
59
60
61
62
63
64
65
          <p
            className="col-6 offcanvas-title"
            id="offcanvasExampleLabel"
            style={{
              fontWeight: 'bold',
              fontSize: '15px',
              overflow: 'scroll',
              whiteSpace: 'nowrap',
              width: '150px',
              color: '#000000',
            }}
          >
            데계데계데계데계데계데계데계데계데계데계 재밌는 수학과
          </p>
66
          <h6 className="mt-2"> #ASV2AE985 </h6>
seoyeon's avatar
seoyeon committed
67
68
69
70
71
72
          <button
            type="button"
            className="btn-close text-reset"
            data-bs-dismiss="offcanvas"
            aria-label="Close"
          ></button>
우지원's avatar
우지원 committed
73
74
        </div>

우지원's avatar
우지원 committed
75
        <ChannelSingle />
seoyeon's avatar
0707 ui    
seoyeon committed
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
        <div>
          <div className="d-flex flex-row-reverse">
            <button
              type="button"
              className="m-3 rounded text-white"
              data-bs-toggle="modal"
              data-bs-target="#exitRoom"
              style={{
                height: '30px',
                fontWeight: 'bold',
                backgroundColor: '#D64D61',
                color: 'black',
                border: '1px #D64D61',
              }}
            >
              퇴장
            </button>
seoyeon's avatar
ui0707    
seoyeon committed
93
94
95
96
97
98
99
100
101
102
103
104
105
            {/* {admin ?  <button
              type="button"
              className="m-3 rounded"
              style={{
                height: '30px',
                fontWeight: 'bold',
                backgroundColor: '#E0CEE8',
                color: 'black',
                border: '1px #D64D61',
              }}
            >
              설정
            </button> : null} */}
seoyeon's avatar
0707 ui    
seoyeon committed
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
            <button
              type="button"
              className="m-3 rounded"
              style={{
                height: '30px',
                fontWeight: 'bold',
                backgroundColor: '#E0CEE8',
                color: 'black',
                border: '1px #D64D61',
              }}
            >
              설정
            </button>
            <div
              className="modal fade"
              id="exitRoom"
              tabIndex="-1"
              aria-labelledby="exitRoomLabel"
              aria-hidden="true"
            >
              <div className="modal-dialog">
                <div className="modal-content">
                  <div className="modal-header">
seoyeon's avatar
seoyeon committed
129
                    <button
seoyeon's avatar
0707 ui    
seoyeon committed
130
131
                      type="button"
                      className="btn-close"
seoyeon's avatar
seoyeon committed
132
                      data-bs-dismiss="modal"
seoyeon's avatar
0707 ui    
seoyeon committed
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
                      aria-label="Close"
                    ></button>
                  </div>
                  <div className="modal-body d-flex justify-content-center">
                    이방에서 퇴장하시겠습니까?
                  </div>
                  <div className="row mb-3">
                    <div className="d-flex justify-content-evenly">
                      {/* <Link to="/user"> */}
                      <button
                        type="submit"
                        className="col-2 p-1 btn btn-primary"
                      >
                        
                      </button>
                      {/* </Link> */}
                      <button
                        type="submit"
                        className="col-2 p-1 btn btn-primary"
                        data-bs-dismiss="modal"
                      >
                        아니요
                      </button>
                    </div>
우지원's avatar
우지원 committed
157
158
159
160
161
162
163
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
seoyeon's avatar
seoyeon committed
164
165
166
    </div>
  )
}
우지원's avatar
우지원 committed
167

seoyeon's avatar
seoyeon committed
168
export default ChannelList