|
|
@ -7,6 +7,7 @@ import styled from "styled-components"; |
|
|
|
import ProgressBar from "../components/footer/progressBar"; |
|
|
|
import ProgressBar from "../components/footer/progressBar"; |
|
|
|
import onePage from "../components/image/Document.svg"; |
|
|
|
import onePage from "../components/image/Document.svg"; |
|
|
|
import twoPage from "../components/image/Pages.svg"; |
|
|
|
import twoPage from "../components/image/Pages.svg"; |
|
|
|
|
|
|
|
import { BookCloseIcon, BookOpenIcon, ScrollVerticalIcon } from "lib/svg"; |
|
|
|
|
|
|
|
|
|
|
|
const Footer = ({ |
|
|
|
const Footer = ({ |
|
|
|
// title,
|
|
|
|
// title,
|
|
|
@ -35,14 +36,14 @@ const Footer = ({ |
|
|
|
<Item text={`${nowPage} / ${totalPage}`} /> |
|
|
|
<Item text={`${nowPage} / ${totalPage}`} /> |
|
|
|
</nav> |
|
|
|
</nav> |
|
|
|
<ProgressBar CountPage={CountPage} /> |
|
|
|
<ProgressBar CountPage={CountPage} /> |
|
|
|
<nav |
|
|
|
<nav onClick={() => changeIcone()} className="nav-icon "> |
|
|
|
// style={{pointer='cruser'}}
|
|
|
|
|
|
|
|
onClick={() => changeIcone()} |
|
|
|
|
|
|
|
className="nav-icon " |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{window.innerWidth > 768 ? ( |
|
|
|
{window.innerWidth > 768 ? ( |
|
|
|
<div className="display-icon" style={{ cursor: "pointer" }}> |
|
|
|
<div className="display-icon" style={{ cursor: "pointer" }}> |
|
|
|
{Icon ? <img src={onePage} alt='singlepage' /> : <img src={twoPage} alt='twopages' />} |
|
|
|
<nav style={{ width: "65px" , display: 'flex' }}> |
|
|
|
|
|
|
|
<BookOpenIcon /> |
|
|
|
|
|
|
|
<BookCloseIcon /> |
|
|
|
|
|
|
|
<ScrollVerticalIcon /> |
|
|
|
|
|
|
|
</nav> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
</nav> |
|
|
|
</nav> |
|
|
@ -53,6 +54,17 @@ const Footer = ({ |
|
|
|
); |
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Icon = styled.div` |
|
|
|
|
|
|
|
width: 16px; |
|
|
|
|
|
|
|
height: 16px; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
& > div, |
|
|
|
|
|
|
|
& > svg { |
|
|
|
|
|
|
|
width: 16px; |
|
|
|
|
|
|
|
height: 16px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
|
|
const Button = styled.button` |
|
|
|
const Button = styled.button` |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
justify-content: center; |
|
|
|
justify-content: center; |
|
|
|