Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
butter-studio
Commits
a917ee65
Commit
a917ee65
authored
Jul 05, 2021
by
Jiwon Yoon
Browse files
Merge remote-tracking branch 'origin/kimpen'
parents
aa3619c4
60de43c4
Changes
5
Hide whitespace changes
Inline
Side-by-side
client/src/components/Admin/Admin.js
View file @
a917ee65
import
{
Link
,
Route
,
Switch
,
useRouteMatch
}
from
"
react-router-dom
"
;
import
styles
from
"
./admin.module.scss
"
import
MovieEdit
from
"
./MovieEdit
"
;
import
TheaterEdit
from
"
./TheaterEdit
"
;
import
CinemaEdit
from
"
./CinemaEdit
"
;
import
styles
from
"
./admin.module.scss
"
;
const
Admin
=
()
=>
{
const
match
=
useRouteMatch
()
...
...
@@ -8,21 +11,21 @@ const Admin = () => {
<
div
className
=
{
`d-md-flex align-items-md-start
${
styles
.
box
}
`
}
>
<
nav
className
=
{
`col-md-3 col-lg-2 nav flex-md-column flex-row
${
styles
.
navbar
}
`
}
id
=
"
v-pills-tab
"
role
=
"
tablist
"
aria
-
orientation
=
"
vertical
"
>
<
li
className
=
"
nav-item
"
>
<
Link
to
=
{
`
${
match
.
url
}
/movie`
}
className
=
"
nav-link text-
center text-dark
active
"
>
영화
관리
<
/Link
>
<
Link
to
=
{
`
${
match
.
url
}
/movie`
}
className
=
"
nav-link text-
dark text-center
active
"
>
영화
관리
<
/Link
>
<
/li
>
<
li
className
=
"
nav-item
"
>
<
Link
to
=
{
`
${
match
.
url
}
/theater`
}
className
=
"
nav-link text-
center text-dark
"
>
상영관
관리
<
/Link
>
<
Link
to
=
{
`
${
match
.
url
}
/theater`
}
className
=
"
nav-link text-
dark text-center
"
>
상영관
관리
<
/Link
>
<
/li
>
<
li
className
=
"
nav-item
"
>
<
Link
to
=
{
`
${
match
.
url
}
/cinema`
}
className
=
"
nav-link text-
center text-dark
"
>
영화관
관리
<
/Link
>
<
Link
to
=
{
`
${
match
.
url
}
/cinema`
}
className
=
"
nav-link text-
dark text-center
"
>
영화관
관리
<
/Link
>
<
/li
>
<
/nav
>
<
div
className
=
"
col-md-9 col-lg-10
tab-content
"
id
=
"
v-pills-tabContent
"
>
<
div
className
=
"
tab-content container
col-md-9 col-lg-10
mt-3
"
id
=
"
v-pills-tabContent
"
>
<
Switch
>
<
Route
path
=
{
`
${
match
.
path
}
/movie`
}
><
/Route
>
<
Route
path
=
{
`
${
match
.
path
}
/theater`
}
><
/Route
>
<
Route
path
=
{
`
${
match
.
path
}
/cinema`
}
><
/Route
>
<
Route
path
=
{
`
${
match
.
path
}
`
}
><
/Route
>
<
Route
path
=
{
`
${
match
.
path
}
/movie`
}
><
MovieEdit
/><
/Route
>
<
Route
path
=
{
`
${
match
.
path
}
/theater`
}
><
TheaterEdit
/><
/Route
>
<
Route
path
=
{
`
${
match
.
path
}
/cinema`
}
><
CinemaEdit
/><
/Route
>
<
Route
path
=
{
`
${
match
.
path
}
`
}
><
MovieEdit
/><
/Route
>
<
/Switch
>
<
/div
>
<
/div
>
...
...
client/src/components/Admin/CinemaEdit.js
0 → 100644
View file @
a917ee65
const
CinemaEdit
=
()
=>
{
function
handleChange
(
e
)
{
const
{
name
,
value
}
=
e
.
target
console
.
log
(
"
name=
"
,
name
,
"
value=
"
,
value
)
}
return
(
<>
<
h2
className
=
"
border-bottom border-2 text-center pb-2 me-2
"
>
현재
영화관
정보
<
/h2
>
<
input
type
=
"
text
"
className
=
"
form-control
"
id
=
"
cinema
"
name
=
"
cinema
"
onChange
=
{
handleChange
}
/
>
<
p
>
총
상영관
수
:
8
개관
|
총
좌석
수
:
1
,
282
석
<
/p
>
<
div
className
=
"
mb-3
"
>
<
label
for
=
"
transportation
"
className
=
"
form-label
"
>
대중교통
안내
<
/label
>
<
textarea
className
=
"
form-control
"
id
=
"
transportation
"
name
=
"
transportation
"
onChange
=
{
handleChange
}
><
/textarea
>
<
/div
>
<
div
className
=
"
mb-3
"
>
<
label
for
=
"
parking
"
className
=
"
form-label
"
>
자가용
/
주차안내
<
/label
>
<
textarea
className
=
"
form-control
"
id
=
"
parking
"
name
=
"
parking
"
onChange
=
{
handleChange
}
><
/textarea
>
<
/div
>
<
label
>
지도보기
<
/label
>
<
/
>
)
}
export
default
CinemaEdit
\ No newline at end of file
client/src/components/Admin/MovieEdit.js
0 → 100644
View file @
a917ee65
import
Search
from
"
../Search
"
;
const
MovieEdit
=
()
=>
{
return
(
<
div
className
=
"
d-flex justify-content-around
"
>
<
button
type
=
"
button
"
className
=
"
btn btn-dark
"
style
=
{{
width
:
"
5em
"
}}
>
등록
<
/button
>
<
Search
type
=
"
admin
"
/>
<
/div
>
)
}
export
default
MovieEdit
\ No newline at end of file
client/src/components/Admin/TheaterEdit.js
0 → 100644
View file @
a917ee65
const
TheaterEdit
=
()
=>
{
return
(
<
div
>
<
/div
>
)
}
export
default
TheaterEdit
\ No newline at end of file
client/src/components/Admin/admin.module.scss
View file @
a917ee65
@media
screen
and
(
max-width
:
768px
)
{
.box
{
margin-bottom
:
1
1
0px
;
margin-bottom
:
1
0
0px
;
&
.navbar
{
position
:
fixed
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment