AddRoom.js 3.48 KB
Newer Older
우지원's avatar
e    
우지원 committed
1
2
import CreateRoom from "./CreateRoom";
import JoinRoom from "./JoinRoom";
우지원's avatar
0716    
우지원 committed
3

Kim, Chaerin's avatar
Kim, Chaerin committed
4
const AddRoom = () => {
Kim, Chaerin's avatar
Kim, Chaerin committed
5
  return (
우지원's avatar
우지원 committed
6
7
    <div>
      <div className="mx-4 my-3 d-flex justify-content-between">
이재연's avatar
x    
이재연 committed
8
        <div className="fs-4">참여중인 방목록</div>
Kim, Chaerin's avatar
Kim, Chaerin committed
9
10
        <button
          type="button"
우지원's avatar
우지원 committed
11
          className="py-1 px-2"
Kim, Chaerin's avatar
Kim, Chaerin committed
12
13
          data-bs-toggle="modal"
          data-bs-target="#myModal"
우지원's avatar
0802    
우지원 committed
14
          // data-bs-dismiss="modal"
우지원's avatar
우지원 committed
15
16
17
18
19
20
21
22
          style={{
            display: "flex",
            flexDirection: "column",
            borderStyle: "solid",
            borderRadius: "5px",
            backgroundColor: "#E0CEE8",
            borderColor: "#E0CEE8",
          }}
Kim, Chaerin's avatar
Kim, Chaerin committed
23
        >
우지원's avatar
우지원 committed
24
          추가
Kim, Chaerin's avatar
Kim, Chaerin committed
25
26
        </button>
      </div>
우지원's avatar
0628    
우지원 committed
27

Kim, Chaerin's avatar
Kim, Chaerin committed
28
29
30
31
32
33
34
35
36
37
      <div className="modal" id="myModal" tabIndex="-1" aria-hidden="true">
        <div className="modal-dialog">
          <div className="modal-content">
            <div className="modal-header">
              <button
                type="button"
                className="btn-close"
                data-bs-dismiss="modal"
                aria-label="Close"
              ></button>
우지원's avatar
0628    
우지원 committed
38
            </div>
Kim, Chaerin's avatar
Kim, Chaerin committed
39
            <div className="modal-body">
우지원's avatar
우지원 committed
40
41
              <div className="row justify-content-evenly mt-4 mb-4 fs-6">
                <div className="col-6 d-flex justify-content-center">
Kim, Chaerin's avatar
Kim, Chaerin committed
42
43
                  <button
                    type="button"
우지원's avatar
우지원 committed
44
                    className="p-3"
Kim, Chaerin's avatar
Kim, Chaerin committed
45
46
47
48
49
50
51
                    data-bs-toggle="modal"
                    data-bs-target="#joinModal"
                    style={{
                      display: "flex",
                      flexDirection: "column",
                      borderStyle: "solid",
                      borderRadius: "5px",
우지원's avatar
우지원 committed
52
53
                      backgroundColor: "#E0CEE8",
                      borderColor: "#E0CEE8",
Kim, Chaerin's avatar
Kim, Chaerin committed
54
                    }}
이재연's avatar
x    
이재연 committed
55
56
                  >
                    방참여하기
우지원's avatar
e    
우지원 committed
57
58
59
60
61
62
63
                  </button>
                  <div
                    className="modal fade"
                    id="joinModal"
                    tabIndex="-1"
                    aria-labelledby="joinModalLabel"
                    aria-hidden="true"
Kim, Chaerin's avatar
Kim, Chaerin committed
64
                  >
우지원's avatar
e    
우지원 committed
65
66
                    <div className="modal-dialog">
                      <JoinRoom />
우지원's avatar
우지원 committed
67
                    </div>
우지원's avatar
e    
우지원 committed
68
                  </div>
Kim, Chaerin's avatar
Kim, Chaerin committed
69
                </div>
우지원's avatar
우지원 committed
70
                <div className="col-6 d-flex justify-content-center">
Kim, Chaerin's avatar
Kim, Chaerin committed
71
72
                  <button
                    type="button"
우지원's avatar
우지원 committed
73
                    className="p-3"
Kim, Chaerin's avatar
Kim, Chaerin committed
74
75
                    data-bs-toggle="modal"
                    data-bs-target="#makeModal"
우지원's avatar
0802    
우지원 committed
76
                    // data-bs-dismiss="modal"
Kim, Chaerin's avatar
Kim, Chaerin committed
77
78
79
80
81
                    style={{
                      display: "flex",
                      flexDirection: "column",
                      borderStyle: "solid",
                      borderRadius: "5px",
우지원's avatar
우지원 committed
82
83
                      backgroundColor: "#f5cfe3",
                      borderColor: "#f5cfe3",
Kim, Chaerin's avatar
Kim, Chaerin committed
84
                    }}
이재연's avatar
x    
이재연 committed
85
86
                  >
                    방생성하기
우지원's avatar
e    
우지원 committed
87
88
89
90
91
92
93
                  </button>
                  <div
                    className="modal fade"
                    id="makeModal"
                    tabIndex="-1"
                    aria-labelledby="makeModalLabel"
                    aria-hidden="true"
Kim, Chaerin's avatar
Kim, Chaerin committed
94
                  >
우지원's avatar
e    
우지원 committed
95
96
                    <div className="modal-dialog">
                      <CreateRoom />
우지원's avatar
우지원 committed
97
                    </div>
우지원's avatar
e    
우지원 committed
98
                  </div>
우지원's avatar
0716    
우지원 committed
99
                </div>
Kim, Chaerin's avatar
Kim, Chaerin committed
100
              </div>
우지원's avatar
0628    
우지원 committed
101
            </div>
Kim, Chaerin's avatar
Kim, Chaerin committed
102
103
104
          </div>
        </div>
      </div>
우지원's avatar
우지원 committed
105
    </div>
Kim, Chaerin's avatar
Kim, Chaerin committed
106
107
  );
};
Kim, Chaerin's avatar
Kim, Chaerin committed
108
109

export default AddRoom;