AddRoom.js 8.86 KB
Newer Older
우지원's avatar
0628    
우지원 committed
1
2
import React, { useState } from 'react'

Kim, Chaerin's avatar
Kim, Chaerin committed
3
const AddRoom = () => {
우지원's avatar
0628    
우지원 committed
4

Kim, Chaerin's avatar
Kim, Chaerin committed
5
    return (
우지원's avatar
0628    
우지원 committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
        <form className="m-3">
            <div className="row justify-content-around">
                <div className="col">
                    <h4>참여중인 방목록</h4>
                </div>
                <button type="button" className="col-2" data-bs-toggle="modal" data-bs-target="#myModal" style={{ backgroundColor: "#FCF4FF", borderColor: "#FCF4FF" }} >
                    + </button>
            </div>

            <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>
                        </div>
                        <div className="modal-body">
                            <div className="row justify-content-around mt-4 mb-4">
                                <div className="col-5">
                                    <button type="button" className="p-4" data-bs-toggle="modal" data-bs-target="#joinModal" style={{ display: "flex", flexDirection: "column", borderStyle: "solid", borderRadius: "5px", borderColor: "#C4C4C4", backgroundColor: "#C4C4C4", padding: '10px' }}>
                                        방참여하기</button>
                                </div>
                                <div className="col-5">
                                    <button type="button" className="p-4" data-bs-toggle="modal" data-bs-target="#makeModal" style={{ display: "flex", flexDirection: "column", borderStyle: "solid", borderRadius: "5px", borderColor: "#C4C4C4", backgroundColor: "#C4C4C4", padding: '10px' }}>
                                        방생성하기</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            {/* 방참여하기 모달 */}
            <div className="modal" id="joinModal" tabindex="-1" aria-hidden="true">
                <div className="modal-dialog">
                    <div className="modal-content">
                        <div className="modal-header">
                            <div>방참여하기</div>
                            <button type="button" className="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                        </div>
                        <div className="modal-body">
                            <div className="input-group mb-3">
                                <input type="text" className="form-control" placeholder="참여코드를 입력하세요" aria-label="참여코드를 입력하세요" aria-describedby="basic-addon1" />
                            </div>
                            <div className="modal-footer">
                                <button type="button" className="btn-primary" style={{ borderStyle: "solid", borderRadius: "5px", padding: '15px' }} >확인</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            {/* 방생성하기 모달 */}
            <div className="modal" id="makeModal" tabindex="-1" aria-hidden="true">
                <div className="modal-dialog">
                    <div className="modal-content">
                        <div className="modal-header">
                            <div>방생성하기</div>
                            <button type="button" className="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                        </div>
                        <div className="modal-body">
                            <h5>방프로필사진</h5>
                            <div class="filebox mb-4">
                                <input type="file" id="ex_filename" class="upload-hidden" />
                            </div>
                            <h5>방이름</h5>
                            <div className="input-group">
                                <input type="text" className="form-control" placeholder="방이름을 입력해주세요" aria-label="방이름 입력해주세요" aria-describedby="basic-addon1" />
                            </div>
                            <div className="modal-footer">
                                <button type="button" className="btn-primary" style={{ borderStyle: "solid", borderRadius: "5px", padding: '15px' }} >생성</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            {/* 방리스트 */}
            <div className="mb-5">
                <div className="row justify-content-start m-2 p-2" style={{ backgroundColor: "#C4C4C4" }}>
                    <div className="col-2" style={{ width: "37px", height: "37px" }}><img src="/BORA_LOGO.png" className="rounded-circle" style={{ width: "37px", height: "37px" }} /></div>
                    <div className="col-8 m-2"> 데계 재미있는 수학과 </div>
                    <div className="col-2 mt-2"> 15/34 </div>
                </div>

                <div className="row justify-content-start m-2 p-2" style={{ backgroundColor: "#C4C4C4" }}>
                    <div className="col-2" style={{ width: "37px", height: "37px" }}><img src="/BORA.png" className="rounded-circle" style={{ width: "37px", height: "37px" }} /></div>
                    <div className="col-8 m-2"> 데계 재미있는 수학과 </div>
                    <div className="col-2 mt-2"> 15/34 </div>
                </div>

                <div className="row justify-content-start m-2 p-2" style={{ backgroundColor: "#C4C4C4" }}>
                    <div className="col-2" style={{ width: "37px", height: "37px" }}><img src="/image2.jpg" className="rounded-circle" style={{ width: "37px", height: "37px" }} /></div>
                    <div className="col-8 m-2"> 데계 재미있는 수학과 </div>
                    <div className="col-2 mt-2"> 15/34 </div>
                </div>

                <div className="row justify-content-start m-2 p-2" style={{ backgroundColor: "#C4C4C4" }}>
                    <div className="col-2" style={{ width: "37px", height: "37px" }}><img src="/BORA_LOGO.png" className="rounded-circle" style={{ width: "37px", height: "37px" }} /></div>
                    <div className="col-8 m-2"> 데계 재미있는 수학과 </div>
                    <div className="col-2 mt-2"> 15/34 </div>
                </div>

                <div className="row justify-content-start m-2 p-2" style={{ backgroundColor: "#C4C4C4" }}>
                    <div className="col-2" style={{ width: "37px", height: "37px" }}><img src="/BORA.png" className="rounded-circle" style={{ width: "37px", height: "37px" }} /></div>
                    <div className="col-8 m-2"> 데계 재미있는 수학과 </div>
                    <div className="col-2 mt-2"> 15/34 </div>
                </div>

                <div className="row justify-content-start m-2 p-2" style={{ backgroundColor: "#C4C4C4" }}>
                    <div className="col-2" style={{ width: "37px", height: "37px" }}><img src="/image2.jpg" className="rounded-circle" style={{ width: "37px", height: "37px" }} /></div>
                    <div className="col-8 m-2"> 데계 재미있는 수학과 </div>
                    <div className="col-2 mt-2"> 15/34 </div>
                </div>

                <div className="row justify-content-start m-2 p-2" style={{ backgroundColor: "#C4C4C4" }}>
                    <div className="col-2" style={{ width: "37px", height: "37px" }}><img src="/BORA_LOGO.png" className="rounded-circle" style={{ width: "37px", height: "37px" }} /></div>
                    <div className="col-8 m-2"> 데계 재미있는 수학과 </div>
                    <div className="col-2 mt-2"> 15/34 </div>
                </div>

                <div className="row justify-content-start m-2 p-2" style={{ backgroundColor: "#C4C4C4" }}>
                    <div className="col-2" style={{ width: "37px", height: "37px" }}><img src="/BORA.png" className="rounded-circle" style={{ width: "37px", height: "37px" }} /></div>
                    <div className="col-8 m-2"> 데계 재미있는 수학과 </div>
                    <div className="col-2 mt-2"> 15/34 </div>
                </div>

                <div className="row justify-content-start m-2 p-2" style={{ backgroundColor: "#C4C4C4" }}>
                    <div className="col-2" style={{ width: "37px", height: "37px" }}><img src="/image2.jpg" className="rounded-circle" style={{ width: "37px", height: "37px" }} /></div>
                    <div className="col-8 m-2"> 데계 재미있는 수학과 </div>
                    <div className="col-2 mt-2"> 15/34 </div>
                </div>
            </div>
        </form >
    );
}
Kim, Chaerin's avatar
Kim, Chaerin committed
141
142

export default AddRoom;