-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoffline.html
66 lines (53 loc) · 1.37 KB
/
offline.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Offline</title>
<style>
html,
body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
background-color: #fefefe;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
}
div {
width: 100%;
}
img {
width: 25%;
max-width: 600px;
margin:auto;
}
p {
text-transform: capitalize;
font-size: 20px;
margin: 150px;
}
button {
width: 100px;
height: 50px;
border: none;
margin: auto;
background: #4B4B4D;
color: #fff;
}
</style>
</head>
<body class="main">
<p>Sorry for the inconvenience leto is currently offline.</p>
<img src="img/leto.svg" />
<button>Try Again</button>
<script>
const {ipcRenderer} = require('electron')
document.querySelector("button").addEventListener('click', function() {
ipcRenderer.send('retry', 'ok')
}, false);
</script>
</body>
</html>