Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #862: Improve reconnect error page. #1292

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions app/renderer/css/network.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,26 @@ body {
user-select: none;
}

img {
max-width: 100%;
width: 380px;
height: auto;
vertical-align: middle;
resize: both;
}

#content {
display: flex;
flex-direction: column;
display: grid;
justify-content: center;
font-family: "Trebuchet MS", Helvetica, sans-serif;
margin: 100px 200px;
margin: 100px 50px;
text-align: center;
}

#network-error-texts {
color: rgb(32 45 58 / 100%);
}

#title {
text-align: left;
font-size: 24px;
Expand All @@ -33,14 +45,20 @@ body {
text-align: left;
font-size: 16px;
list-style-position: inside;
padding: 20px;
}

#buttons {
display: flex;
justify-content: start;
}

#reconnect {
float: left;
}

#settings {
margin-left: 116px;
margin-left: 16px;
}

.button {
Expand Down
18 changes: 10 additions & 8 deletions app/renderer/network.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@
<body>
<div id="content">
<div id="picture"><img src="img/zulip_network.png" /></div>
<div id="title">We can't connect to this organization</div>
<div id="subtitle">This could be because</div>
<ul id="description">
<li>You're not online or your proxy is misconfigured.</li>
<li>There is no Zulip organization hosted at this URL.</li>
<li>This Zulip organization is temporarily unavailable.</li>
<li>This Zulip organization has been moved or deleted.</li>
</ul>
<div id="network-error-texts">
<div id="title">We can't connect to this organization</div>
<div id="subtitle">This could be because</div>
<ul id="description">
<li>You're not online or your proxy is misconfigured.</li>
<li>There is no Zulip organization hosted at this URL.</li>
<li>This Zulip organization is temporarily unavailable.</li>
<li>This Zulip organization has been moved or deleted.</li>
</ul>
</div>
<div id="buttons">
<div id="reconnect" class="button">Reconnect</div>
<div id="settings" class="button">Settings</div>
Expand Down