Skip to content

Commit

Permalink
Add Start Screen
Browse files Browse the repository at this point in the history
  • Loading branch information
hatton committed Jun 26, 2020
1 parent cf28f49 commit 07329e8
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/Open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions build/Search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions build/wordmark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 66 additions & 0 deletions src/renderer/StartScreen.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import { css, jsx } from "@emotion/core";
/** @jsx jsx */
import React, { useEffect, useState } from "react";
import { showOpenFile } from ".";
import { shell } from "electron";
import wordmark from "../../build/wordmark.svg";
import logo from "../../build/icon.svg";
import search from "../../build/search.svg";
import open from "../../build/open.svg";

export const StartScreen: React.FunctionComponent<{}> = (props) => {
return (
<div
css={css`
display: flex;
`}
>
<div
css={css`
margin-left: auto;
margin-right: auto;
margin-top: 60px;
`}
>
<img
src={wordmark}
css={css`
width: 455px;
`}
/>

<div
className={"choices"}
css={css`
margin-top: 20px;
a {
display: flex;
color: #d65649;
font-size: 24px;
//text-decoration: underline;
cursor: pointer;
img {
width: 30px;
margin-right: 15px;
}
}
`}
>
<a onClick={() => showOpenFile()}>
<img src={open} css={css``} />
Choose BloomPUB book on this computer
</a>
<br />
<a
onClick={() => {
shell.openExternal("https://bloomlibrary.org/browse");
}}
>
<img src={search} css={css``} />
Get BloomPUB books on BloomLibrary.org
</a>
</div>
</div>
</div>
);
};

0 comments on commit 07329e8

Please sign in to comment.