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
1d1194ff
Commit
1d1194ff
authored
Oct 11, 2021
by
Kim, Subin
Browse files
Buttons import 및 스타일 변경
parent
6119ea8f
Changes
10
Show whitespace changes
Inline
Side-by-side
client/src/components/Buttons/BackBtn.js
0 → 100644
View file @
1d1194ff
import
{
useHistory
}
from
"
react-router-dom
"
;
import
styles
from
"
./buttons.module.scss
"
;
const
BackBtn
=
()
=>
{
const
history
=
useHistory
();
return
(
<
button
className
=
{
`btn btn-outline-crimson position-absolute border-0 shadow-none p-0
${
styles
.
backBtn
}
`
}
onClick
=
{()
=>
history
.
goBack
()}
>
<
i
className
=
{
`bi bi-arrow-left-square
${
styles
.
icon
}
`
}
><
/i
>
<
/button
>
)
}
export
default
BackBtn
\ No newline at end of file
client/src/components/
EditBtn
/EditBtn.js
→
client/src/components/
Buttons
/EditBtn.js
View file @
1d1194ff
import
{
Link
}
from
"
react-router-dom
"
;
import
{
Link
}
from
"
react-router-dom
"
;
import
styles
from
"
./
editBtn
.module.scss
"
;
import
styles
from
"
./
buttons
.module.scss
"
;
const
EditBtn
=
({
pathname
})
=>
{
const
EditBtn
=
({
pathname
})
=>
{
return
(
return
(
<
Link
className
=
{
`
btn btn-crimson
position-absolute
${
styles
.
editBtn
}
`
}
to
=
{
"
/
"
+
pathname
}
>
<
Link
className
=
{
`position-absolute
${
styles
.
editBtn
}
`
}
to
=
{
"
/
"
+
pathname
}
>
<
i
className
=
"
bi bi-plus-circle
"
><
/i
>
<
i
className
=
{
`
bi bi-plus-circle
${
styles
.
icon
}
`
}
><
/i
>
<
/Link
>
<
/Link
>
)
)
}
}
...
...
client/src/components/Buttons/HomeBtn.js
0 → 100644
View file @
1d1194ff
import
{
Link
}
from
"
react-router-dom
"
;
import
styles
from
"
./buttons.module.scss
"
;
const
HomeBtn
=
()
=>
{
return
(
<
Link
className
=
{
`btn btn-outline-crimson position-absolute
${
styles
.
homeBtn
}
`
}
to
=
"
/home
"
>
<
i
className
=
{
`bi bi-house-door-fill fs-4
${
styles
.
icon
}
`
}
><
/i
>
<
/Link
>
)
}
export
default
HomeBtn
\ No newline at end of file
client/src/components/Buttons/buttons.module.scss
0 → 100644
View file @
1d1194ff
.homeBtn
{
top
:
10px
;
right
:
10px
;
&
.icon
{
color
:
crimson
;
&
:hover
,
:active
{
color
:
#fff
;
}
}
}
.editBtn
{
bottom
:
10px
;
right
:
10px
;
&
.icon
{
color
:
crimson
;
font-size
:
2
.5em
;
}
}
.backBtn
{
top
:
4px
;
right
:
10px
;
&
.icon
{
font-size
:
2
.3em
;
}
&
:hover
,
&
:visited
{
background-color
:
#fff
;
&
.icon
{
color
:
crimson
;
}
}
}
\ No newline at end of file
client/src/components/EditBtn/editBtn.module.scss
deleted
100644 → 0
View file @
6119ea8f
.editBtn
{
font-size
:
24px
;
bottom
:
10px
;
right
:
10px
;
border-radius
:
35px
;
}
\ No newline at end of file
client/src/pages/HomePage.js
View file @
1d1194ff
import
Menu
from
"
../components/Menu/Menu.js
"
;
import
Menu
from
"
../components/Menu/Menu.js
"
;
import
EditBtn
from
"
../components/
EditBtn
/EditBtn.js
"
;
import
EditBtn
from
"
../components/
Buttons
/EditBtn.js
"
;
const
HomePage
=
()
=>
{
const
HomePage
=
()
=>
{
return
(
return
(
...
...
client/src/pages/SchedulePage.js
View file @
1d1194ff
import
Menu
from
"
../components/Menu/Menu.js
"
;
import
HomeBtn
from
"
../components/Buttons/HomeBtn.js
"
;
const
SchedulePage
=
()
=>
{
const
SchedulePage
=
()
=>
{
return
(
return
(
<><
/
>
<>
<
Menu
/>
<
HomeBtn
/>
<
/
>
)
)
}
}
...
...
client/src/pages/StudyPlanListPage.js
View file @
1d1194ff
import
Menu
from
"
../components/Menu/Menu.js
"
;
import
HomeBtn
from
"
../components/Buttons/HomeBtn.js
"
;
const
StudyPlanListPage
=
()
=>
{
const
StudyPlanListPage
=
()
=>
{
return
(
return
(
<><
/
>
<>
<
Menu
/>
<
HomeBtn
/>
<
/
>
)
)
}
}
...
...
client/src/pages/StudyPlanPage.js
View file @
1d1194ff
import
Menu
from
"
../components/Menu/Menu.js
"
;
import
BackBtn
from
"
../components/Buttons/BackBtn.js
"
;
import
EditBtn
from
"
../components/Buttons/EditBtn.js
"
;
const
StudyPlanPage
=
()
=>
{
const
StudyPlanPage
=
()
=>
{
return
(
return
(
<><
/
>
<>
<
Menu
/>
<
BackBtn
/>
<
EditBtn
pathname
=
"
studyplan/edit
"
/>
<
/
>
)
)
}
}
...
...
client/src/pages/ToDoPage.js
View file @
1d1194ff
import
Menu
from
"
../components/Menu/Menu.js
"
;
import
HomeBtn
from
"
../components/Buttons/HomeBtn.js
"
;
const
ToDoPage
=
()
=>
{
const
ToDoPage
=
()
=>
{
return
(
return
(
<><
/
>
<>
<
Menu
/>
<
HomeBtn
/>
<
/
>
)
)
}
}
...
...
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