MovieListPage.js 1.46 KB
Newer Older
Jiwon Yoon's avatar
Jiwon Yoon committed
1
2
3
import React, { useState, useEffect } from 'react'
import MovieChart from '../components/MovieChart'
import MovieComming from '../components/MovieComming'
4
5
const MovieListPage = () => {
    return (
Jiwon Yoon's avatar
Jiwon Yoon committed
6
7
        <div className="container">
            <ul className="nav nav-tabs row justify-content-center my-3 border-0" id="myTab" role="tablist">
Jiwon Yoon's avatar
Jiwon Yoon committed
8
                <li className={`nav-item col-5`} role="presentation">
Jiwon Yoon's avatar
Jiwon Yoon committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
                    <button className="nav-link active mx-auto" id="moviechart-tab" data-bs-toggle="tab" data-bs-target="#moviechart" type="button" role="tab" aria-controls="moviechart" aria-selected="true">무비차트</button>
                </li>
                <li className="nav-item col-5" role="presentation">
                    <button className="nav-link mx-auto" id="moviecomming-tab" data-bs-toggle="tab" data-bs-target="#moviecomming" type="button" role="tab" aria-controls="moviecomming" aria-selected="false">상영예정작</button>
                </li>
            </ul>
            <div className="tab-content" id="myTabContent">
                <div className="tab-pane fade show active" id="moviechart" role="tabpanel" aria-labelledby="moviechart-tab">
                    <MovieChart />
                </div>
                <div className="tab-pane fade" id="moviecomming" role="tabpanel" aria-labelledby="moviecomming-tab">
                    <MovieComming />
                </div>
            </div>
23
24
25
26
27
        </div>
    )
}

export default MovieListPage