ChannelList.js 3.63 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'
이재연's avatar
a    
이재연 committed
4
import { useState } from 'react'
Kim, Chaerin's avatar
Kim, Chaerin committed
5
6

const ChannelList = () => {
이재연's avatar
a    
이재연 committed
7

Kim, Chaerin's avatar
Kim, Chaerin committed
8
9
  return (
    <div>
우지원's avatar
우지원 committed
10
11
      <nav className="navbar navbar-light d-flex justify-content-between">
        <div>
우지원's avatar
우지원 committed
12
13
14
          <Link to="/user">
            <button
              type="button"
seoyeon's avatar
seoyeon committed
15
              className="btn"
우지원's avatar
우지원 committed
16
            >
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
45
      <div
        className="offcanvas offcanvas-start"
우지원's avatar
우지원 committed
46
47
        style={{ width: "330px" }}
        tabIndex="-1"
seoyeon's avatar
seoyeon committed
48
49
50
        id="hamburger"
        aria-labelledby="hamburgerLabel"
      >
우지원's avatar
우지원 committed
51
        <div className="offcanvas-header">
우지원's avatar
우지원 committed
52
          <h5 className="col-6 offcanvas-title" id="offcanvasExampleLabel">
seoyeon's avatar
seoyeon committed
53
54
            음성 채널 목록
          </h5>
이재연's avatar
aa    
이재연 committed
55
          <button className="mt-2" > #ASV2AE985 </button>
seoyeon's avatar
seoyeon committed
56
57
58
59
60
61
          <button
            type="button"
            className="btn-close text-reset"
            data-bs-dismiss="offcanvas"
            aria-label="Close"
          ></button>
우지원's avatar
우지원 committed
62
63
        </div>

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

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

seoyeon's avatar
seoyeon committed
127
export default ChannelList