parent
715290696c
commit
802d8d8c08
4 changed files with 38 additions and 1 deletions
After Width: | Height: | Size: 4.9 KiB |
@ -0,0 +1,35 @@ |
|||||||
|
import styled from 'styled-components' |
||||||
|
// lib
|
||||||
|
import * as styles from 'lib/styles/styles' |
||||||
|
import palette from 'lib/styles/palette' |
||||||
|
|
||||||
|
const Logo = () => { |
||||||
|
return ( |
||||||
|
<Wrapper href="https://github.com/altmshfkgudtjr/react-epub-viewer" target="__blank__"> |
||||||
|
<Img src="react-epub-viewer/images/reactEpubIcon.png" alt="Logo" /> |
||||||
|
</Wrapper> |
||||||
|
); |
||||||
|
}
|
||||||
|
|
||||||
|
const Wrapper = styled.a` |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
justify-content: center; |
||||||
|
outline: none; |
||||||
|
margin-left: 16px; |
||||||
|
background-color: rgba(0,0,0,0); |
||||||
|
transition: .3s ${styles.transition}; |
||||||
|
border-radius: 8px; |
||||||
|
padding: 4px 8px; |
||||||
|
cursor: pointer; |
||||||
|
|
||||||
|
&:focus, &:hover { |
||||||
|
background-color: ${palette.blue1}; |
||||||
|
} |
||||||
|
`;
|
||||||
|
|
||||||
|
const Img = styled.img` |
||||||
|
height: 32px; |
||||||
|
`;
|
||||||
|
|
||||||
|
export default Logo |
@ -1,6 +1,6 @@ |
|||||||
import ReactDOM from 'react-dom'; |
import ReactDOM from 'react-dom'; |
||||||
import Reader from 'containers/Reader' |
import Reader from 'containers/Reader' |
||||||
|
|
||||||
const EPUB_URL = "files/Alices Adventures in Wonderland.epub"; |
const EPUB_URL = "react-epub-viewer/files/Alices Adventures in Wonderland.epub"; |
||||||
|
|
||||||
ReactDOM.render(<Reader url={EPUB_URL} />, document.getElementById('root')); |
ReactDOM.render(<Reader url={EPUB_URL} />, document.getElementById('root')); |
Loading…
Reference in new issue