ChannelList.js 3.58 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
6
7

const ChannelList = () => {
  return (
    <div>
우지원's avatar
우지원 committed
8
9
      <nav className="navbar navbar-light d-flex justify-content-between">
        <div>
우지원's avatar
우지원 committed
10
11
12
          <Link to="/user">
            <button
              type="button"
seoyeon's avatar
seoyeon committed
13
              className="btn"
우지원's avatar
우지원 committed
14
            >
seoyeon's avatar
seoyeon committed
15
              <img src={backward} width="25" height="25" />
우지원's avatar
우지원 committed
16
17
18
19
            </button>
          </Link>
        </div>

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

우지원's avatar
우지원 committed
26
        <div>
우지원's avatar
우지원 committed
27
28
29
30
31
32
33
34
          <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
35
            style={{ border: '#f4c1f2' }}
우지원's avatar
우지원 committed
36
37
38
39
40
41
          >
            <span className="navbar-toggler-icon"></span>
          </button>
        </div>
      </nav>

seoyeon's avatar
seoyeon committed
42
43
      <div
        className="offcanvas offcanvas-start"
우지원's avatar
우지원 committed
44
45
        style={{ width: "330px" }}
        tabIndex="-1"
seoyeon's avatar
seoyeon committed
46
47
48
        id="hamburger"
        aria-labelledby="hamburgerLabel"
      >
우지원's avatar
우지원 committed
49
        <div className="offcanvas-header">
우지원's avatar
우지원 committed
50
          <h5 className="col-6 offcanvas-title" id="offcanvasExampleLabel">
seoyeon's avatar
seoyeon committed
51
52
            음성 채널 목록
          </h5>
53
          <h6 className="mt-2"> #ASV2AE985 </h6>
seoyeon's avatar
seoyeon committed
54
55
56
57
58
59
          <button
            type="button"
            className="btn-close text-reset"
            data-bs-dismiss="offcanvas"
            aria-label="Close"
          ></button>
우지원's avatar
우지원 committed
60
61
        </div>

우지원's avatar
우지원 committed
62
        <ChannelSingle />
우지원's avatar
우지원 committed
63
64
65
66
67
68
69
70

        <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={{
seoyeon's avatar
seoyeon committed
71
72
              height: '30px',
              fontWeight: 'bold',
우지원's avatar
우지원 committed
73
              backgroundColor: '#D64D61',
seoyeon's avatar
seoyeon committed
74
              color: 'black',
우지원's avatar
우지원 committed
75
              border: '1px #D64D61',
우지원's avatar
우지원 committed
76
77
78
79
            }}
          >
            퇴장
          </button>
seoyeon's avatar
seoyeon committed
80
81
82
          <div
            className="modal fade"
            id="exitRoom"
우지원's avatar
0707    
우지원 committed
83
            tabIndex="-1"
seoyeon's avatar
seoyeon committed
84
85
86
            aria-labelledby="exitRoomLabel"
            aria-hidden="true"
          >
우지원's avatar
우지원 committed
87
88
89
            <div className="modal-dialog">
              <div className="modal-content">
                <div className="modal-header">
seoyeon's avatar
seoyeon committed
90
91
92
93
94
95
                  <button
                    type="button"
                    className="btn-close"
                    data-bs-dismiss="modal"
                    aria-label="Close"
                  ></button>
우지원's avatar
우지원 committed
96
97
98
99
100
101
102
                </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"> */}
seoyeon's avatar
seoyeon committed
103
104
105
                    <button type="submit" className="col-2 p-1 btn btn-primary">
                      
                    </button>
우지원's avatar
우지원 committed
106
                    {/* </Link> */}
seoyeon's avatar
seoyeon committed
107
108
109
110
111
112
113
                    <button
                      type="submit"
                      className="col-2 p-1 btn btn-primary"
                      data-bs-dismiss="modal"
                    >
                      아니요
                    </button>
우지원's avatar
우지원 committed
114
115
116
117
118
119
120
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
seoyeon's avatar
seoyeon committed
121
122
123
    </div>
  )
}
우지원's avatar
우지원 committed
124

seoyeon's avatar
seoyeon committed
125
export default ChannelList