Skip to content

Commit 5bed519

Browse files
committed
Fix 404 page styling responsiveness (#3575)
1 parent 224c6e2 commit 5bed519

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

server/views/404Page.js

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,38 @@ const insertErrorMessage = (htmlFile) => {
1414
<style>
1515
.header {
1616
position: fixed;
17-
height: 200px;
18-
width: 100%;
19-
z-index: 1;
17+
top: 50%;
18+
transform: translate(-50%, -50%);
19+
left: 50%;
20+
width: 600px; /* keeps it neat on larger screens */
2021
background: white;
2122
color: #ed225d;
2223
font-family: Montserrat, sans-serif;
2324
text-align: center;
24-
display: table;
25+
padding: 20px;
26+
box-sizing: border-box;
27+
border-radius: 8px;
28+
max-width: 90%;
2529
}
30+
2631
.message-container {
27-
display: table-cell;
28-
vertical-align: middle;
32+
flex-direction: column;
33+
justify-content: center;
34+
align-items: center;
35+
display: flex;
2936
}
3037
.message {
38+
margin: 10px 0;
3139
color: #6b6b6b;
32-
margin: 10px;
3340
}
3441
.home-link {
35-
color: #b5b5b5;
3642
text-decoration: none;
43+
color: #b5b5b5;
3744
}
3845
canvas {
39-
position: fixed;
4046
width: 100% !important;
4147
height: 100% !important;
48+
position: fixed;
4249
}
4350
</style>
4451
<link href='https://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>

0 commit comments

Comments
 (0)