parent
acd2b4b0ed
commit
df6de5a32b
5 changed files with 60 additions and 2 deletions
@ -0,0 +1,26 @@ |
|||||||
|
.no-file { |
||||||
|
width: 100vw; |
||||||
|
height: 100vh; |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
justify-content: center; |
||||||
|
|
||||||
|
.inner { |
||||||
|
width: 60%; |
||||||
|
height: auto; |
||||||
|
opacity: 0.4; |
||||||
|
background: color(sidebarBackground); |
||||||
|
border-radius: 1rem; |
||||||
|
border: dashed 6px color(scrollbar); |
||||||
|
padding: 2rem 4rem; |
||||||
|
text-align: center; |
||||||
|
max-width: 500px; |
||||||
|
max-height: 300px; |
||||||
|
|
||||||
|
svg { |
||||||
|
&.big { |
||||||
|
font-size: 4rem; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,21 @@ |
|||||||
|
import React from "react"; |
||||||
|
|
||||||
|
import {Easel, Folder2Open} from "react-bootstrap-icons"; |
||||||
|
|
||||||
|
const NoFile = ({openFile}) => { |
||||||
|
return ( |
||||||
|
<section className="no-file"> |
||||||
|
<section className="inner"> |
||||||
|
<p> |
||||||
|
<Easel className="big" /> |
||||||
|
</p> |
||||||
|
<i>No presentation loaded</i><br /> |
||||||
|
<p> |
||||||
|
<button onClick={openFile}><Folder2Open /> open</button> |
||||||
|
</p> |
||||||
|
</section> |
||||||
|
</section> |
||||||
|
); |
||||||
|
}; |
||||||
|
|
||||||
|
export default NoFile; |
Loading…
Reference in new issue