This repository has been archived by the owner on Nov 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
105 lines (96 loc) · 3.41 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Jira Timer</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
user-select: none;
}
body {
color: rgba(0, 0, 0, 0.87);
font-size: 13px;
font-weight: 400;
font-family: system,-apple-system,".SFNSDisplay-Regular","Helvetica Neue",Helvetica,"Segoe UI",sans-serif;
overflow: hidden;
}
html,body {
background: rgba(0, 0, 0, 0);
}
body, #root {
height: 100%;
background: rgba(0, 0, 0, 0);
}
.init-loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.app-base {
padding: 12px 15px 15px 15px;
}
#root {
min-height: 190px;
background: #fff;
border-radius: 6px;
box-shadow: 0 0 8px rgba(0,0,0,.4);
position: relative;
top: 2px;
left: 0;
right: 0;
z-index: 2;
}
.tray-triangle {
width: 29px;
height: 15px;
position: absolute;
overflow: hidden;
box-shadow: 0 16px 10px -17px rgba(0, 0, 0, 0.5);
left: 50%;
transform: translateX(-50%);
top: -1px;
z-index: 11;
}
.tray-triangle:after {
content: "";
position: absolute;
width: 20px;
height: 20px;
background: #FFF;
transform: rotate(45deg);
top: 9px;
left: 5px;
box-shadow: -1px -1px 10px -2px rgba(0, 0, 0, 0.5);
}
</style>
</head>
<body>
<div class="app-base">
<div class="tray-triangle"></div>
<div id="root">
<svg class="init-loading" width="80px" height="80px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"><g transform="rotate(150 50 50)"><path d="M80 50 A30 30 0 0 1 59.270509831248425 78.53169548885461" fill="none" stroke="#ffffcb" stroke-width="10"></path><path d="M59.270509831248425 78.53169548885461 A30 30 0 0 1 25.72949016875158 67.6335575687742" fill="none" stroke="#fac090" stroke-width="10"></path><path d="M25.72949016875158 67.6335575687742 A30 30 0 0 1 25.729490168751575 32.366442431225806" fill="none" stroke="#ff7c81" stroke-width="10"></path><path d="M25.729490168751575 32.366442431225806 A30 30 0 0 1 59.27050983124842 21.46830451114539" fill="none" stroke="#c0f6d2" stroke-width="10"></path><path d="M59.27050983124842 21.46830451114539 A30 30 0 0 1 80 49.99999999999999" fill="none" stroke="#dae4bf" stroke-width="10"></path><animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" times="0;1" dur="1" repeatCount="indefinite"></animateTransform></g></svg>
</div>
</div>
<script>
{
const scripts = [];
// Dynamically insert the bundled app script in the renderer process
const port = process.env.PORT || 9000;
scripts.push(
(process.env.NODE_ENV === 'development')
? 'http://localhost:' + port + '/dist/bundle.js'
: './dist/bundle.js'
);
document.write(
scripts
.map(script => '<script defer src="' + script + '"><\/script>')
.join('')
);
}
</script>
</body>
</html>