Skip to content

Commit 5dcff9b

Browse files
committed
UI: Reconnect network page imporoved.
Fixes zulip#862. Center aligned the text and added a table to make points look better.Div tags are changed to button tag and mobile comptaibility added.
1 parent b6e11f6 commit 5dcff9b

File tree

2 files changed

+105
-23
lines changed

2 files changed

+105
-23
lines changed

app/renderer/css/network.css

Lines changed: 83 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,67 @@
1+
12
html,
23
body {
34
margin: 0;
45
cursor: default;
56
font-size: 14px;
6-
color: rgba(51, 51, 51, 1.000);
7-
background: rgba(255, 255, 255, 1.000);
87
user-select: none;
8+
position: relative;
9+
min-height: 100%;
10+
width: 100%;
11+
display: flex;
12+
align-items: center;
13+
justify-content: center;
14+
}
15+
16+
ul {
17+
text-align: center;
18+
list-style: none;
19+
margin: 0;
20+
padding: 0;
21+
}
22+
23+
li {
24+
list-style-type: none;
25+
text-align: center;
26+
background: rgb(255, 255, 255);
27+
height: 40px;
28+
line-height: 40px;
29+
color: rgb(102, 102, 102);
30+
}
31+
32+
li:nth-child(2n) {
33+
background: rgb(247, 247, 247);
34+
}
35+
36+
li:hover span {
37+
width: 40px;
38+
opacity: 1.0;
39+
}
40+
41+
#buttons {
42+
margin: auto;
43+
margin-top: 20px;
944
}
1045

1146
#content {
1247
display: flex;
1348
flex-direction: column;
1449
font-family: "Trebuchet MS", Helvetica, sans-serif;
15-
margin: 100px 200px;
1650
text-align: center;
1751
}
1852

1953
#title {
20-
text-align: left;
54+
text-align: center;
2155
font-size: 24px;
2256
font-weight: bold;
23-
margin: 20px 0;
2457
}
2558

2659
#subtitle {
2760
font-size: 20px;
28-
text-align: left;
61+
text-align: center;
2962
margin: 12px 0;
63+
font-weight: bold;
64+
color: rgb(102, 102, 102);
3065
}
3166

3267
#description {
@@ -49,11 +84,50 @@ body {
4984
color: rgba(255, 255, 255, 1.000);
5085
width: 96px;
5186
height: 32px;
52-
border-radius: 5px;
53-
line-height: 32px;
87+
border-radius: 7px;
5488
cursor: pointer;
5589
}
5690

5791
.button:hover {
5892
opacity: 0.8;
59-
}
93+
}
94+
95+
.container {
96+
text-align: center;
97+
position: relative;
98+
}
99+
100+
.maingraphic {
101+
position: relative;
102+
margin-bottom: 60px;
103+
}
104+
105+
.cog {
106+
margin-top: 50px;
107+
width: 10rem;
108+
height: 10rem;
109+
animation: coganimation 10s infinite;
110+
fill: rgba(0, 150, 136, 1.000);
111+
margin-left: 60px;
112+
}
113+
114+
.spanner {
115+
margin-top: 60px;
116+
position: absolute;
117+
transform: rotate(20deg);
118+
top: 10%;
119+
margin-left: 30px;
120+
left: 25%;
121+
width: 10rem;
122+
height: 10rem;
123+
fill: rgba(0, 150, 136, 1.000);
124+
}
125+
126+
@keyframes coganimation {
127+
0% {
128+
transform: rotate(0deg);
129+
}
130+
100% {
131+
transform: rotate(360deg);
132+
}
133+
}

app/renderer/network.html

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,28 @@
77
<link rel="stylesheet" href="css/network.css" type="text/css" media="screen">
88
</head>
99
<body>
10-
<div id="content">
11-
<div id="picture"><img src="img/zulip_network.png"></div>
12-
<div id="title">We can't connect to this organization</div>
13-
<div id="subtitle">This could be because</div>
14-
<ul id="description">
15-
<li>You're not online or your proxy is misconfigured.</li>
16-
<li>There is no Zulip organization hosted at this URL.</li>
17-
<li>This Zulip organization is temporarily unavailable.</li>
18-
<li>This Zulip organization has been moved or deleted.</li>
19-
</ul>
20-
<div id="buttons">
21-
<div id="reconnect" class="button">Reconnect</div>
22-
<div id="settings" class="button">Settings</div>
10+
<div class="container">
11+
<div class="maingraphic">
12+
<img src="img/zulip_network.png">
13+
</div>
14+
<div id="content">
15+
<div id="title">We can't connect to this organization</div>
16+
<div id="subtitle">
17+
<ul>
18+
<li>This could be because</li>
19+
</ul>
20+
</div>
21+
<ul id="description">
22+
<li>You're not online or your proxy is misconfigured.</li>
23+
<li>There is no Zulip organization hosted at this URL.</li>
24+
<li>This Zulip organization is temporarily unavailable.</li>
25+
<li>This Zulip organization has been moved or deleted.</li>
26+
</ul>
27+
<div id="buttons">
28+
<button id="reconnect" class="button">Reconnect</button>
29+
<button id="settings" class="button">Settings</button>
30+
</div>
2331
</div>
2432
</div>
2533
</body>
26-
</html>
34+
</html>

0 commit comments

Comments
 (0)