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

Kim, Chaerin's avatar
Kim, Chaerin committed
29
30
31
32
33
34
35
36
37
38
      <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
39
            </div>
Kim, Chaerin's avatar
Kim, Chaerin committed
40
            <div className="modal-body">
우지원's avatar
우지원 committed
41
42
              <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
43
44
                  <button
                    type="button"
우지원's avatar
우지원 committed
45
                    className="p-3"
Kim, Chaerin's avatar
Kim, Chaerin committed
46
47
                    data-bs-toggle="modal"
                    data-bs-target="#joinModal"
Kim, Chaerin's avatar
merge19    
Kim, Chaerin committed
48
                    // data-bs-dismiss="modal"
Kim, Chaerin's avatar
Kim, Chaerin committed
49
50
51
52
53
                    style={{
                      display: "flex",
                      flexDirection: "column",
                      borderStyle: "solid",
                      borderRadius: "5px",
우지원's avatar
우지원 committed
54
55
                      backgroundColor: "#E0CEE8",
                      borderColor: "#E0CEE8",
Kim, Chaerin's avatar
Kim, Chaerin committed
56
                    }}
우지원's avatar
e    
우지원 committed
57
58
59
60
61
62
63
64
                  >방참여하기
                  </button>
                  <div
                    className="modal fade"
                    id="joinModal"
                    tabIndex="-1"
                    aria-labelledby="joinModalLabel"
                    aria-hidden="true"
Kim, Chaerin's avatar
Kim, Chaerin committed
65
                  >
우지원's avatar
e    
우지원 committed
66
67
                    <div className="modal-dialog">
                      <JoinRoom />
우지원's avatar
우지원 committed
68
                    </div>
우지원's avatar
e    
우지원 committed
69
                  </div>
Kim, Chaerin's avatar
Kim, Chaerin committed
70
                </div>
우지원's avatar
우지원 committed
71
                <div className="col-6 d-flex justify-content-center">
Kim, Chaerin's avatar
Kim, Chaerin committed
72
73
                  <button
                    type="button"
우지원's avatar
우지원 committed
74
                    className="p-3"
Kim, Chaerin's avatar
Kim, Chaerin committed
75
76
                    data-bs-toggle="modal"
                    data-bs-target="#makeModal"
Kim, Chaerin's avatar
merge19    
Kim, Chaerin committed
77
                    // data-bs-dismiss="modal"
Kim, Chaerin's avatar
Kim, Chaerin committed
78
79
80
81
82
                    style={{
                      display: "flex",
                      flexDirection: "column",
                      borderStyle: "solid",
                      borderRadius: "5px",
우지원's avatar
우지원 committed
83
84
                      backgroundColor: "#f5cfe3",
                      borderColor: "#f5cfe3",
Kim, Chaerin's avatar
Kim, Chaerin committed
85
                    }}
우지원's avatar
e    
우지원 committed
86
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;