HomePage.js 3.28 KB
Newer Older
Ha YeaJin's avatar
pages    
Ha YeaJin committed
1
2
import React, { useState, useEffect } from 'react';
import Menu from '../Components/Menu';
Lee Jin Ju's avatar
Lee Jin Ju committed
3
import Calendar from '../Components/Calendar';
Lee Jin Ju's avatar
Lee Jin Ju committed
4
5
import styled from 'styled-components';

Lee Jin Ju's avatar
Lee Jin Ju committed
6
7
8
9
10
11
const Drop = styled.div`
    & button {
        border solid 1px;
    }
`

Lee Jin Ju's avatar
Lee Jin Ju committed
12
13
14
15
16
17
18
19
20
21
22
23
const Schedule = styled.div`
    & ul {
        list-style-type: none;
    }

    & .cd-schedule__events {
        width: 100%;

        > ul {
        display: flex;
        flex-wrap: nowrap;
        }
Lee Jin Ju's avatar
Lee Jin Ju committed
24
25
26
27
28
29

    & .cd-schedule__timeline {

        > ul {
        line-height: 1em;
        }
Lee Jin Ju's avatar
Lee Jin Ju committed
30
31
32
33
34
35
36
37
38
39
40
41
42
43
    }

    & .cd-schedule__group {
        flex-basis: 0;
        flex-grow: 1;
    }

    & .cd-schedule__event {
        position: absolute;
        z-index: 3;
        width: calc(100% + 2px); // top position and height will be set using js
        left: -1px;
    }
`
Ha YeaJin's avatar
pages    
Ha YeaJin committed
44
45

function Home() {
Lee Jin Ju's avatar
Lee Jin Ju committed
46
47
    const [click, setState] = useState();

Ha YeaJin's avatar
pages    
Ha YeaJin committed
48
49
50
    return (
        <div>
            <Menu />
Lee Jin Ju's avatar
Lee Jin Ju committed
51
            <div className="container mt-3">
Lee Jin Ju's avatar
Lee Jin Ju committed
52
53
54
55
56
57
58
59
60
61

                <h2>대관 현황</h2>
                <p>
                    <strong>대관 가능 시간</strong>
                    <ul>
                        <li>평일: 9 - 22/ 예약가능 시간 이후 폐쇄</li>
                        <li>주말: 이용 불가</li>
                    </ul>
                </p>

Lee Jin Ju's avatar
Lee Jin Ju committed
62
63
64
65
66
67
68
69
70
71
72
73
                <Drop className="row dropdown mt-1 mb-2">
                    <button className="btn btn-lg dropdown-toggle mx-auto col-5" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        기간을 선택해주십시오.
                    </button>
                    <div className="dropdown-menu col-5" aria-labelledby="dropdownMenuButton">
                        <a className="dropdown-item" href="#">10 / 5 ~ 10 / 9</a>
                        <a className="dropdown-item" href="#">10 / 12 ~ 10 / 16</a>
                        <a className="dropdown-item" href="#">10 / 19 ~ 10 / 23</a>
                    </div>
                </Drop>

                <ul className="nav nav-tabs nav-justified mt-4" id="myTab" role="tablist">
Lee Jin Ju's avatar
Lee Jin Ju committed
74
                    <li className="nav-item">
Lee Jin Ju's avatar
Lee Jin Ju committed
75
                        <a className="nav-link active" id="7-tab" data-toggle="tab" href="#7" role="tab"> 7-223 </a>
Lee Jin Ju's avatar
Lee Jin Ju committed
76
77
                    </li>
                    <li className="nav-item">
Lee Jin Ju's avatar
Lee Jin Ju committed
78
                        <a className="nav-link" id="9-tab" data-toggle="tab" href="#9" role="tab"> 9-116 </a>
Lee Jin Ju's avatar
Lee Jin Ju committed
79
80
                    </li>
                    <li className="nav-item">
Lee Jin Ju's avatar
Lee Jin Ju committed
81
                        <a className="nav-link" id="25-tab" data-toggle="tab" href="#25" role="tab"> 25-307 </a>
Lee Jin Ju's avatar
Lee Jin Ju committed
82
83
84
85
                    </li>
                </ul>

                <div className="tab-content" id="myTabContent">
Lee Jin Ju's avatar
Lee Jin Ju committed
86
87
88
89
90
91
92
93
94
95
96
97
98
                    <div className="tab-pane fade show active" id="7" role="tabpanel">
                        
                    {/* <Calendar />
                    <div className="container mt-1 mb-2"></div> */}

                    </div>

                    <div className="tab-pane fade" id="9" role="tabpanel" aria-labelledby="9-tab">
                    </div>

                    <div className="tab-pane fade" id="25" role="tabpanel" aria-labelledby="25-tab">
                    </div>

Lee Jin Ju's avatar
Lee Jin Ju committed
99
                </div>
Ha YeaJin's avatar
pages    
Ha YeaJin committed
100
101
102
103
104
            </div>
        </div>
    )
}

Lee Jin Ju's avatar
Lee Jin Ju committed
105
export default Home;