electron-vite-app/src/renderer/setup.html

41 lines
1.1 KiB
HTML

<!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>