TicketingPage.js 1.69 KB
Newer Older
Jiwon Yoon's avatar
Jiwon Yoon committed
1
import { useState } from 'react'
Jiwon Yoon's avatar
Jiwon Yoon committed
2
import TicketingMovie from "../components/TicketingMovie/TicketingMovie"
Jiwon Yoon's avatar
Jiwon Yoon committed
3
import TicketingTheater from "../components/TicketingTheater/TicketingTheater"
Jiwon Yoon's avatar
Jiwon Yoon committed
4
5
import TicketingTimeTable from "../components/TicketingTimeTable"

Jiwon Yoon's avatar
Jiwon Yoon committed
6
7
8
9
10
11
12
13
14
15
const TicketingPage = (location) => {
    // const [movieInfo, setMovieInfo] = useState(location)
    const [movieInfo, setMovieInfo] = useState({ movieId: "497698" })
    const [theaterInfo, setTheaterInfo] = useState({
        theater: "Butter 조치원",
        cinemaNum: [1, 2, 3, 4],
        selectedCinemaNum:0
    })


Jiwon Yoon's avatar
Jiwon Yoon committed
16
    return (
Jiwon Yoon's avatar
Jiwon Yoon committed
17
        <div className="container" style={{ backgroundColor: "black" }}>
Jiwon Yoon's avatar
Jiwon Yoon committed
18
19
            <div className="row justify-content-center my-5">
                <div className="col-sm-4">
Jiwon Yoon's avatar
Jiwon Yoon committed
20
21
                    <h2 className="py-2 text-white text-center" style={{ border: "3px solid #FEDC00", borderBottom: "3px solid #FEDC00" }}>영화</h2>
                    <TicketingMovie movieInfo={movieInfo} setMovieInfo={setMovieInfo} />
Jiwon Yoon's avatar
Jiwon Yoon committed
22
23
                </div>
                <div className="col-sm-4">
Jiwon Yoon's avatar
Jiwon Yoon committed
24
25
                    <h2 className="py-2 text-white text-center" style={{ border: "3px solid #FEDC00", borderBottom: "3px solid #FEDC00" }}>극장</h2>
                    <TicketingTheater theaterInfo={theaterInfo} setTheaterInfo={setTheaterInfo} />
Jiwon Yoon's avatar
Jiwon Yoon committed
26
27
                </div>
                <div className="col-sm-4">
Jiwon Yoon's avatar
Jiwon Yoon committed
28
29
                    <h2 className="py-2 text-white text-center" style={{ border: "3px solid #FEDC00", borderBottom: "3px solid #FEDC00" }}>시간표</h2>
                    <TicketingTimeTable movieInfo={movieInfo} theaterInfo={theaterInfo} />
Jiwon Yoon's avatar
Jiwon Yoon committed
30
31
32
33
34
35
36
37
                </div>
            </div>

        </div>
    )
}

export default TicketingPage