AddRoom.js 3.4 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
우지원 committed
14
15
16
17
18
19
20
21
          style={{
            display: "flex",
            flexDirection: "column",
            borderStyle: "solid",
            borderRadius: "5px",
            backgroundColor: "#E0CEE8",
            borderColor: "#E0CEE8",
          }}
Kim, Chaerin's avatar
Kim, Chaerin committed
22
        >
우지원's avatar
우지원 committed
23
          추가
Kim, Chaerin's avatar
Kim, Chaerin committed
24
25
        </button>
      </div>
우지원's avatar
0628    
우지원 committed
26

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

export default AddRoom;