added titlebar to `NoFile` screen

feature/settings-window
Michael Ochmann 3 years ago
parent 43d1ef1e33
commit 87a7849611
  1. 15
      src/ui/src/assets/css/_noFile.scss
  2. 3
      src/ui/src/components/NoFile.js

@ -9,9 +9,9 @@
width: 60%; width: 60%;
height: auto; height: auto;
opacity: 0.4; opacity: 0.4;
background: color(sidebarBackground); // background: color(sidebarBackground);
border-radius: 1rem; // border-radius: 1rem;
border: dashed 6px color(scrollbar); // border: dashed 6px color(scrollbar);
padding: 2rem 4rem; padding: 2rem 4rem;
text-align: center; text-align: center;
max-width: 500px; max-width: 500px;
@ -23,4 +23,13 @@
} }
} }
} }
.titlebar {
position: absolute;
top: 0;
left: 0;
app-region: drag;
height: 30px;
width: 100%;
}
} }

@ -11,12 +11,13 @@ const NoFile = ({openFile}) => {
<p> <p>
<Easel className="big" /> <Easel className="big" />
</p> </p>
<i>No presentation loaded</i><br /> <i>No presentation loaded. Drag in a <code>.md</code> file or</i><br />
<p> <p>
<button onClick={openFile}><Folder2Open /> open</button> <button onClick={openFile}><Folder2Open /> open</button>
</p> </p>
</section> </section>
<KeyboardControl openFile={openFile} /> <KeyboardControl openFile={openFile} />
<section className="titlebar"></section>
</section> </section>
); );
}; };

Loading…
Cancel
Save