Skip to content

Commit 5c62ce7

Browse files
committed
Fixed styling issues on 404 and 500 pages
1 parent c0aa9c7 commit 5c62ce7

File tree

4 files changed

+47
-67
lines changed

4 files changed

+47
-67
lines changed

static_global/css/style.css

Lines changed: 7 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -512,53 +512,10 @@ footer .border-top {
512512

513513

514514
/* 404 - 500 */
515-
.notfound .notfound-404 h1 {
516-
color: black;
517-
font-weight: 900;
518-
font-size: 276px;
519-
margin: 0;
520-
}
521-
.notfound h2 {
522-
font-size: 46px;
523-
color: #000;
524-
font-weight: 900;
525-
text-transform: uppercase;
526-
margin: 0
527-
}
528-
.notfound p {
529-
font-size: 16px;
530-
color: #000;
531-
font-weight: 400;
532-
text-transform: uppercase;
533-
margin-top: 15px
534-
}
535-
.notfound a {
536-
font-size: 14px;
537-
text-decoration: none;
538-
text-transform: uppercase;
539-
background: #189cf0;
540-
display: inline-block;
541-
padding: 16px 38px;
542-
border: 2px solid transparent;
543-
border-radius: 40px;
544-
color: #fff;
545-
font-weight: 400;
546-
-webkit-transition: .2s all;
547-
transition: .2s all
548-
}
549-
.notfound a:hover {
550-
background-color: #fff;
551-
border-color: #189cf0;
552-
color: #189cf0
553-
}
554-
515+
/* Removed custom error page styles in favor of using Bootstrap */
516+
555517
@media only screen and (max-width:480px) {
556-
.notfound .notfound-404 h1{
557-
font-size:162px !important;
558-
}
559-
.notfound h2{
560-
font-size:26px !important;
561-
}
518+
/* Error page responsive styles */
562519
}
563520

564521
/*
@@ -630,13 +587,15 @@ footer .border-top {
630587
}
631588

632589
.border-bottom-radius-only{
633-
border-radius: 0 0 20px 20px;!important;
590+
border-radius: 0 0 20px 20px !important;
634591
}
635592
.border-top-radius-only{
636-
border-radius: 20px 20px 0 0;!important;
593+
border-radius: 20px 20px 0 0 !important;
637594
}
638595
@media(min-width: 2800px) {
639596
.container-extended{
640597
max-width:1650px;
641598
}
642599
}
600+
601+

templates/404.html

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,28 @@
22

33
{% block content %}
44

5-
<div id="notfound" class="min-vh-100 d-flex align-items-center justify-content-center">
6-
<div class="notfound text-center">
7-
<div class="notfound-404">
8-
<h1>404</h1>
5+
<div class="min-vh-100 d-flex align-items-center justify-content-center">
6+
<div class="text-center" style="max-width: 767px;">
7+
<div class="mb-4">
8+
<h1 style="font-size: 6rem; font-weight: 900;">404</h1>
99
</div>
10-
<h2>We are sorry, Page not found!</h2>
11-
<br>
10+
<h2 class="text-uppercase fw-bold mb-3">We are sorry, Page not found!</h2>
1211
<p>The page you are looking for might have been removed,<br>
1312
had its name changed, or is temporarily unavailable.</p>
14-
<a href="/" class="btn btn-primary">Back To Homepage</a>
13+
14+
<div class="d-flex justify-content-center mt-4">
15+
<a href="/" class="btn btn-primary">Back To Homepage</a>
16+
</div>
17+
18+
<div class="bg-light rounded p-4 mt-5">
19+
<h3 class="fs-5 fw-bold mb-3">What you can try:</h3>
20+
<ul class="text-start list-unstyled">
21+
<li class="py-1"><i class="text-primary me-2"></i> Check the URL for errors</li>
22+
<li class="py-1"><i class="text-primary me-2"></i> Return to the homepage</li>
23+
<li class="py-1"><i class="text-primary me-2"></i> Use the navigation menu</li>
24+
</ul>
25+
</div>
1526
</div>
1627
</div>
1728

18-
1929
{% endblock %}

templates/500.html

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,29 @@
22

33
{% block content %}
44

5-
<div id="notfound" class="min-vh-100 d-flex align-items-center justify-content-center">
6-
<div class="notfound text-center">
7-
<div class="notfound-404">
8-
<h1>500</h1>
5+
<div class="min-vh-100 d-flex align-items-center justify-content-center">
6+
<div class="text-center" style="max-width: 767px;">
7+
<div class="mb-4">
8+
<h1 style="font-size: 6rem; font-weight: 900;">500</h1>
9+
</div>
10+
<h2 class="text-uppercase fw-bold mb-3">Server Error</h2>
11+
<p class="mb-1">We've encountered an unexpected issue on our servers and our team has been notified.</p>
12+
<p>Please try again in a few moments or contact support if the problem persists.</p>
13+
14+
<div class="d-flex gap-3 justify-content-center mt-4">
15+
<a href="/" class="btn btn-primary">Back To Homepage</a>
16+
<a href="javascript:location.reload()" class="btn btn-outline-primary">Try Again</a>
17+
</div>
18+
19+
<div class="bg-light rounded p-4 mt-5">
20+
<h3 class="fs-5 fw-bold mb-3">What you can try:</h3>
21+
<ul class="text-start list-unstyled">
22+
<li class="py-1"><i class="text-primary me-2"></i> Refresh the page</li>
23+
<li class="py-1"><i class="text-primary me-2"></i> Clear your browser cache</li>
24+
<li class="py-1"><i class="text-primary me-2"></i> Try again later</li>
25+
</ul>
926
</div>
10-
<h2>Something is definitely broken</h2>
11-
<br>
12-
<p>We have encountered an issue on our side and are currently working on it.
13-
Please do come back later!</p>
14-
<a href="/">Back To Homepage</a>
1527
</div>
1628
</div>
1729

18-
1930
{% endblock %}

templates/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</li>
4444
<li><a class="dropdown-item" href="/infra-testing/email-test">E-Mail
4545
Test</a></li>
46-
<li><a class="dropdown-item" href="/infra-testing/infra-test">Infrastructure
46+
<li><a class="dropdown-item" href="/infra-testing/service-test">Infrastructure
4747
Test</a></li>
4848
<!--<li><a class="dropdown-item" href="/infra-testing/whois-lookup">WHOIS Lookup</a></li>-->
4949
<li class="dropdown-divider"></li>

0 commit comments

Comments
 (0)