Create temporary first setup page
This commit is contained in:
parent
28a5604a91
commit
4f58961cef
40
src/renderer/setup.html
Normal file
40
src/renderer/setup.html
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Splash</title>
|
||||
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
|
||||
<meta
|
||||
http-equiv="Content-Security-Policy"
|
||||
content="default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:"
|
||||
/>
|
||||
</head>
|
||||
|
||||
<body id="root">
|
||||
<h2>First Launch</h2>
|
||||
<img alt="logo" class="logo" src='./src/assets/electron.svg' height="256px" width="256px" />
|
||||
<button type="button" id="button">Finish setup</button>
|
||||
|
||||
<style>
|
||||
#root {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
margin: 0;
|
||||
height: 350px;
|
||||
width: 350px;
|
||||
}
|
||||
.logo {
|
||||
-webkit-user-drag: none;
|
||||
filter: drop-shadow(0 0 1.6em #6988e6aa);
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
document.getElementById("button").addEventListener("click", () => {
|
||||
window.electron.ipcRenderer.send('finish-setup')
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in a new issue