/
index.html
114 lines (100 loc) · 2.22 KB
/
index.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
background: linear-gradient( to bottom, rgb(245,245,245), rgb(225,225,225) ) fixed;
}
.icon {
position: relative;
top: 5px;
left: 8px;
width: 33px;
padding-right: 20px;
cursor: pointer;
}
.info {
font-size: 16px;
font-family: Helvetica;
max-width: 135px;
display: inline-block;
font-weight: 100;
}
.buttons {
max-width: 40px;
display: inline-block;
left: -5px;
}
.container {
max-width:400px;
position: absolute;
padding-top: 5px;
padding-bottom: 10px;
cursor: default;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select:none;
user-select:none;
-o-user-select:none;
}
.host {
line-height: 1.5em;
font-weight: 800;
}
.btn {
border-radius: 10px;
position: relative;
font-size: 12px;
font-weight: 100;
right: 0px;
top: -6px;
cursor: pointer;
margin-top: 5px;
margin-left: 2px;
}
.btn.quit {
background-color: transparent;
color: rgb(239,105,131);
border: 2px solid rgb(239,105,131);
}
.btn.quit:hover {
background-color: rgb(239,105,131);
color: white;
}
.btn.browser {
background-color: transparent;
color: rgb(112,204,118);
border: 2px solid rgb(112,204,118);
}
.btn.browser:hover {
background-color: rgb(112,204,118);
color: white;
}
.btn:focus {
outline:0;
}
</style>
</head>
<body>
<div class='container'>
<img class='icon' onclick='homepage()' src='Menu.svg' width='48px'></img>
<span class='info'>Lightning server running at <span class='host'>localhost:3000</span></span>
<span class='buttons'>
<button class='btn browser' onclick='browser()'>OPEN</button>
<button class='btn quit' onclick='quit()'>QUIT</button>
</span>
</div>
</body>
</html>
<script>
var ipc = require('ipc')
function quit() {
ipc.send('terminate')
}
function browser() {
ipc.send('browser')
}
function homepage() {
ipc.send('homepage')
}
</script>