Commit 95f33c32 authored by Kim, Subin's avatar Kim, Subin
Browse files

Footer에 EditBtn 묶어서 모듈화 및 적용

parent 1365a485
...@@ -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: {}
}}> }}>
......
...@@ -12,12 +12,9 @@ ...@@ -12,12 +12,9 @@
} }
.editBtn { .editBtn {
bottom: 10px;
right: 10px;
& .icon { & .icon {
color: crimson; color: crimson;
font-size: 2.5em; font-size: 2.7em;
} }
} }
......
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
.content { .content {
background-color: #fff; background-color: #fff;
z-index: 1; z-index: 100;
overflow: hidden; overflow: hidden;
width: inherit;
& .close { & .close {
top: 10px; top: 10px;
......
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" />
</> </>
) )
} }
......
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" />
</> </>
) )
} }
......
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" />
</> </>
) )
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment