AddRoom.js 3.38 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
48
49
50
51
52
                    data-bs-toggle="modal"
                    data-bs-target="#joinModal"
                    style={{
                      display: "flex",
                      flexDirection: "column",
                      borderStyle: "solid",
                      borderRadius: "5px",
우지원's avatar
우지원 committed
53
54
                      backgroundColor: "#E0CEE8",
                      borderColor: "#E0CEE8",
Kim, Chaerin's avatar
Kim, Chaerin committed
55
                    }}
우지원's avatar
e    
우지원 committed
56
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
76
77
78
79
80
                    data-bs-toggle="modal"
                    data-bs-target="#makeModal"
                    style={{
                      display: "flex",
                      flexDirection: "column",
                      borderStyle: "solid",
                      borderRadius: "5px",
우지원's avatar
우지원 committed
81
82
                      backgroundColor: "#f5cfe3",
                      borderColor: "#f5cfe3",
Kim, Chaerin's avatar
Kim, Chaerin committed
83
                    }}
우지원's avatar
e    
우지원 committed
84
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;