Commit 3e0a0e4b authored by Ha YeaJin's avatar Ha YeaJin
Browse files

RBS 화이팅

parent fd2237cd
...@@ -53,7 +53,9 @@ function Notice({ card_index, title, date, content }) { ...@@ -53,7 +53,9 @@ function Notice({ card_index, title, date, content }) {
<Col md={2} xs={4} className="p-0" >{dateForm(date)}</Col> <Col md={2} xs={4} className="p-0" >{dateForm(date)}</Col>
</Card.Header> </Card.Header>
<Accordion.Collapse eventKey={card_index + 1}> <Accordion.Collapse eventKey={card_index + 1}>
<Text><pre className="text-overflow-ellipsis w-100 whiteSpace-initial">{content}</pre></Text> <Text>{content.split("\n").map((i, key) => {
return <div key={key}>{i}</div>;
})}</Text>
</Accordion.Collapse> </Accordion.Collapse>
</Card > </Card >
) )
......
...@@ -190,25 +190,26 @@ function Apply(props) { ...@@ -190,25 +190,26 @@ function Apply(props) {
{({ insert, remove, push }) => ( {({ insert, remove, push }) => (
<div> <div>
<div className={touched.date && errors.date ? "text-danger" : ""}>이용자</div> <div className={touched.date && errors.date ? "text-danger" : ""}>이용자</div>
{values.students.map((student, index) => ( {values.students.map((student, index) => (
<Row key={index}> <div key={index}>
<Field <Field
name={`students.${index}.member`} name={`students.${index}.member`}
placeholder="이용자 성함을 입력하세요." placeholder="이용자 성함을 입력하세요."
type="text" type="text"
/> />
<ErrorMessage <ErrorMessage
name={`friends.${index}.name`} name={`friends.${index}.name`}
component="div" component="div"
className="field-error" className="field-error"
/> />
<button <button
type="button" type="button"
className="secondary" className="secondary"
onClick={() => remove(index)} onClick={() => remove(index)}
>X</button> >X</button>
</Row> </div>
))} ))}
<button <button
type="button" type="button"
className="btn btn-primary" className="btn btn-primary"
......
...@@ -14,33 +14,31 @@ function Home() { ...@@ -14,33 +14,31 @@ function Home() {
<h2>대관 현황</h2> <h2>대관 현황</h2>
<p> <p>
<strong>대관 가능 시간</strong> <strong>대관 가능 시간</strong>
<ul> <ul className="pl-4">
<li>평일: 9 - 22/ 예약가능 시간 이후 폐쇄</li> <li>평일: 9 - 22/ 예약가능 시간 이후 폐쇄</li>
<li>주말: 이용 불가</li> <li>주말: 이용 불가</li>
</ul> </ul>
</p> </p>
<Tabs defaultActiveKey="9-116" id="uncontrolled-tab-example" onSelect={(k) => setKey(k)}> <Tabs defaultActiveKey="9-116" id="uncontrolled-tab-example" onSelect={(k) => setKey(k)}>
<Tab eventKey="9-116" title="9-116"> <Tab eventKey="9-116" title="9-116">
<Schedule room={key}/> <Schedule room={key} />
</Tab> </Tab>
<Tab eventKey="7-234" title="7-234"> <Tab eventKey="7-234" title="7-234">
<Schedule room={key}/> <Schedule room={key} />
</Tab> </Tab>
<Tab eventKey="25-101" title="25-101"> <Tab eventKey="25-101" title="25-101">
<Schedule room={key}/> <Schedule room={key} />
</Tab> </Tab>
</Tabs> </Tabs>
<h3>유의사항</h3>
<p> <p>
<ul> <strong>유의사항</strong>
<ul className="pl-4">
<li>강의실을 대관하는 대표자를 기준으로 최대 6시간까지 대관이 가능합니다.</li> <li>강의실을 대관하는 대표자를 기준으로 최대 6시간까지 대관이 가능합니다.</li>
<li>1 대관시 최대 3시간까지 이용이 가능합니다. (1시간 단위로 대관 가능)</li> <li>1 대관시 최대 3시간까지 이용이 가능합니다. (1시간 단위로 대관 가능)</li>
<li><strong style={{ color: "red" }}>대관 시간 이외 강의실을 이용하다 적발될 경우 한달 강의실 이용이 불가합니다.</strong></li> <li><strong style={{ color: "red" }}>대관 시간 이외 강의실을 이용하다 적발될 경우 한달 강의실 이용이 불가합니다.</strong></li>
</ul> </ul>
</p> </p>
<div className="bg-white">
<h6>고려대학교 대관시스템</h6>
</div>
</div> </div>
</div> </div>
) )
......
...@@ -5,7 +5,7 @@ module.exports = () => { ...@@ -5,7 +5,7 @@ module.exports = () => {
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
mongoose.set('debug', true); mongoose.set('debug', true);
} }
mongoose.connect('mongodb://cherry:1q2w3e4r@localhost:27017/admin', { mongoose.connect('mongodb://hyj:hyj3657@localhost:27017/admin', {
dbName: 'ku_rental', useNewUrlParser: true, useUnifiedTopology: true, dbName: 'ku_rental', useNewUrlParser: true, useUnifiedTopology: true,
}, (error) => { }, (error) => {
if (error) { if (error) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment