Skip to content

Commit 3f6368b

Browse files
committed
Improve UX of the cert install firefox page
It's now clearer about what's happening, and the message is at the bottom of the page, so its actually visible behind the certificate popup.
1 parent 9cce354 commit 3f6368b

File tree

1 file changed

+38
-9
lines changed

1 file changed

+38
-9
lines changed

src/cert-check-server.ts

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,22 @@ export class CertCheckServer {
3333
<link href="http://fonts.googleapis.com/css?family=Lato" rel="stylesheet" />
3434
<style>
3535
body {
36-
margin: 20px;
36+
margin: 0;
37+
padding: 20px;
3738
background-color: #d8e2e6;
3839
font-family: Lato, Arial;
40+
41+
position: absolute;
42+
bottom: 0;
43+
width: 100%;
44+
box-sizing: border-box;
45+
text-align: center;
3946
}
4047
4148
body:not(.show-content) > * {
4249
display: none;
4350
}
4451
45-
h1 {
46-
font-size: 36pt;
47-
}
48-
4952
p {
5053
font-size: 16pt;
5154
}
@@ -88,14 +91,40 @@ export class CertCheckServer {
8891
ensureCertificateIsInstalled();
8992
</script>
9093
<body>
91-
<h1>
92-
Configuring Firefox to use HTTP Toolkit
93-
</h1>
94+
<svg
95+
version="1.1"
96+
xmlns="http://www.w3.org/2000/svg"
97+
xmlns:xlink="http://www.w3.org/1999/xlink"
98+
x="0px"
99+
y="0px"
100+
width="400px"
101+
height="400px"
102+
viewBox="0 0 50 50"
103+
style="enable-background:new 0 0 50 50;"
104+
>
105+
<path fill="#b6c2ca" d="M25.251,6.461c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615V6.461z">
106+
<animateTransform
107+
attributeType="xml"
108+
attributeName="transform"
109+
type="rotate"
110+
from="0 25 25"
111+
to="360 25 25"
112+
dur="6s"
113+
repeatCount="indefinite"
114+
/>
115+
</path>
116+
</svg>
117+
94118
<p>
95119
To intercept HTTPS traffic, you need to trust the HTTP Toolkit certificate.
120+
<br/>
121+
This will only apply to this standalone Firefox profile, not your normal browser.
96122
</p>
97-
<p>
123+
<p><strong>
98124
Select 'Trust this CA to identify web sites' and press 'OK' to continue.
125+
</strong></p>
126+
<p>
127+
Made a mistake? Quit Firefox and start it again from HTTP Toolkit to retry.
99128
</p>
100129
</div>
101130
</body>

0 commit comments

Comments
 (0)