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
Today KU
Commits
95f33c32
Commit
95f33c32
authored
Oct 28, 2021
by
Kim, Subin
Browse files
Footer에 EditBtn 묶어서 모듈화 및 적용
parent
1365a485
Changes
7
Show whitespace changes
Inline
Side-by-side
client/src/components/Buttons/EditBtn.js
View file @
95f33c32
...
@@ -3,7 +3,7 @@ import styles from "./buttons.module.scss";
...
@@ -3,7 +3,7 @@ import styles from "./buttons.module.scss";
const
EditBtn
=
({
pathname
})
=>
{
const
EditBtn
=
({
pathname
})
=>
{
return
(
return
(
<
Link
className
=
{
`
position-absolute
${
styles
.
editBtn
}
`
}
to
=
{{
<
Link
className
=
{
`
me-2 mb-1
${
styles
.
editBtn
}
`
}
to
=
{{
pathname
:
"
/
"
+
pathname
,
pathname
:
"
/
"
+
pathname
,
state
:
{}
state
:
{}
}}
>
}}
>
...
...
client/src/components/Buttons/buttons.module.scss
View file @
95f33c32
...
@@ -12,12 +12,9 @@
...
@@ -12,12 +12,9 @@
}
}
.editBtn
{
.editBtn
{
bottom
:
10px
;
right
:
10px
;
&
.icon
{
&
.icon
{
color
:
crimson
;
color
:
crimson
;
font-size
:
2
.
5
em
;
font-size
:
2
.
7
em
;
}
}
}
}
...
...
client/src/components/Footer.js
0 → 100644
View file @
95f33c32
import
EditBtn
from
"
./Buttons/EditBtn.js
"
;
const
Footer
=
({
pathname
})
=>
{
return
(
<
div
className
=
"
position-absolute bottom-0 start-0 justify-content-end d-flex justify-content-end w-100 bg-white
"
style
=
{{
zIndex
:
"
50
"
}}
>
<
EditBtn
pathname
=
{
pathname
}
/
>
<
/div
>
)
}
export
default
Footer
\ No newline at end of file
client/src/components/Menu/menu.module.scss
View file @
95f33c32
.content
{
.content
{
background-color
:
#fff
;
background-color
:
#fff
;
z-index
:
1
;
z-index
:
1
00
;
overflow
:
hidden
;
overflow
:
hidden
;
width
:
inherit
;
&
.close
{
&
.close
{
top
:
10px
;
top
:
10px
;
...
...
client/src/pages/HomePage.js
View file @
95f33c32
import
Menu
from
"
../components/Menu/Menu.js
"
;
import
Menu
from
"
../components/Menu/Menu.js
"
;
import
EditBtn
from
"
../components/
Buttons/EditBtn
.js
"
;
import
Footer
from
"
../components/
Footer
.js
"
;
const
HomePage
=
()
=>
{
const
HomePage
=
()
=>
{
return
(
return
(
<>
<>
<
Menu
/>
<
Menu
/>
<
EditBtn
pathname
=
"
schedule/edit
"
/>
<
Footer
pathname
=
"
schedule/edit
"
/>
<
/
>
<
/
>
)
)
}
}
...
...
client/src/pages/SchedulePage.js
View file @
95f33c32
import
Menu
from
"
../components/Menu/Menu.js
"
;
import
Menu
from
"
../components/Menu/Menu.js
"
;
import
HomeBtn
from
"
../components/Buttons/HomeBtn.js
"
;
import
HomeBtn
from
"
../components/Buttons/HomeBtn.js
"
;
import
EditBtn
from
"
../components/Buttons/EditBtn.js
"
;
import
ScheduleModal
from
"
../components/Modal/ScheduleModal.js
"
;
import
ScheduleModal
from
"
../components/Modal/ScheduleModal.js
"
;
import
KUSchedule
from
"
../components/Schedule/KUSchedule.js
"
;
import
KUSchedule
from
"
../components/Schedule/KUSchedule.js
"
;
import
ScheduleList
from
"
../components//Schedule/ScheduleList.js
"
;
import
ScheduleList
from
"
../components//Schedule/ScheduleList.js
"
;
import
Footer
from
"
../components/Footer.js
"
;
const
SchedulePage
=
()
=>
{
const
SchedulePage
=
()
=>
{
return
(
return
(
...
@@ -15,7 +15,7 @@ const SchedulePage = () => {
...
@@ -15,7 +15,7 @@ const SchedulePage = () => {
<
/button
>
<
/button
>
<
KUSchedule
/>
<
KUSchedule
/>
<
ScheduleList
/>
<
ScheduleList
/>
<
EditBtn
pathname
=
"
schedule/edit
"
/>
<
Footer
pathname
=
"
schedule/edit
"
/>
<
/
>
<
/
>
)
)
}
}
...
...
client/src/pages/StudyPlanPage.js
View file @
95f33c32
import
Menu
from
"
../components/Menu/Menu.js
"
;
import
Menu
from
"
../components/Menu/Menu.js
"
;
import
BackBtn
from
"
../components/Buttons/BackBtn.js
"
;
import
BackBtn
from
"
../components/Buttons/BackBtn.js
"
;
import
EditBtn
from
"
../components/
Buttons/EditBtn
.js
"
;
import
Footer
from
"
../components/
Footer
.js
"
;
const
StudyPlanPage
=
()
=>
{
const
StudyPlanPage
=
()
=>
{
return
(
return
(
<>
<>
<
Menu
/>
<
Menu
/>
<
BackBtn
/>
<
BackBtn
/>
<
EditBtn
pathname
=
"
studyplan/edit
"
/>
<
Footer
pathname
=
"
studyplan/edit
"
/>
<
/
>
<
/
>
)
)
}
}
...
...
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