|
|
|
@ -7,6 +7,7 @@ import styled from "styled-components"; |
|
|
|
|
import ProgressBar from "../components/footer/progressBar"; |
|
|
|
|
import onePage from "../components/image/Document.svg"; |
|
|
|
|
import twoPage from "../components/image/Pages.svg"; |
|
|
|
|
import { BookCloseIcon, BookOpenIcon, ScrollVerticalIcon } from "lib/svg"; |
|
|
|
|
|
|
|
|
|
const Footer = ({ |
|
|
|
|
// title,
|
|
|
|
@ -35,14 +36,14 @@ const Footer = ({ |
|
|
|
|
<Item text={`${nowPage} / ${totalPage}`} /> |
|
|
|
|
</nav> |
|
|
|
|
<ProgressBar CountPage={CountPage} /> |
|
|
|
|
<nav |
|
|
|
|
// style={{pointer='cruser'}}
|
|
|
|
|
onClick={() => changeIcone()} |
|
|
|
|
className="nav-icon " |
|
|
|
|
> |
|
|
|
|
<nav onClick={() => changeIcone()} className="nav-icon "> |
|
|
|
|
{window.innerWidth > 768 ? ( |
|
|
|
|
<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> |
|
|
|
|
) : null} |
|
|
|
|
</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` |
|
|
|
|
width: 100%; |
|
|
|
|
justify-content: center; |
|
|
|
|