Skip to content

Commit 5e9a1e9

Browse files
committed
Global error pages
1 parent 96ddd75 commit 5e9a1e9

3 files changed

Lines changed: 24 additions & 13 deletions

File tree

src/app/pages/error-404-alt/error-404-alt-page.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ page: error-404-alt
44
{{#extend "auth/auth-layout"}}
55
{{#content "body"}}
66

7-
<div class="error-card center">
7+
<div class="error-card global">
88
<div class="error-title-block">
99
<h1 class="error-title">404</h1>
1010
<h2 class="error-sub-title">

src/app/pages/error-500-alt/error-500-alt-page.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ page: error-500-alt
44
{{#extend "auth/auth-layout"}}
55
{{#content "body"}}
66

7-
<div class="error-card center">
7+
<div class="error-card global">
88
<div class="error-title-block">
99
<h1 class="error-title">500</h1>
1010
<h2 class="error-sub-title">

src/app/pages/error.scss

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,13 @@
33
min-height: 330px;
44
margin: 60px auto;
55

6-
&.center {
7-
position: absolute;
8-
top: 50%;
9-
left: 50%;
10-
transform: translateY(-50%) translateX(-50%);
11-
margin: 0;
12-
}
13-
146
.error-title {
157
font-size: 150px;
168
line-height: 150px;
179
font-weight: 700;
1810
color: #252932;
1911
text-align: center;
20-
text-shadow: rgba(61, 61, 61, 0.3) 1px 1px, rgba(61, 61, 61, 0.2) 2px 2px, rgba(61, 61, 61, 0.3) 3px 3px;
12+
text-shadow: rgba(61, 61, 61, 0.3) .5px .5px, rgba(61, 61, 61, 0.2) 1px 1px, rgba(61, 61, 61, 0.3) 1.5px 1.5px;
2113
}
2214

2315
.error-sub-title {
@@ -33,14 +25,32 @@
3325
visibility: visible;
3426
}
3527
}
28+
29+
&.global {
30+
position: absolute;
31+
top: 50%;
32+
left: 50%;
33+
transform: translateY(-50%) translateX(-50%);
34+
margin: 0;
35+
36+
.error-title {
37+
color: #ffffff;
38+
}
39+
40+
.error-sub-title,
41+
.error-container {
42+
color: #ffffff;
43+
}
44+
}
3645
}
3746

3847
@include media(md) {
3948
.error-card {
4049
width: 50%;
4150

42-
&.center {
51+
&.global {
4352
position: relative;
53+
top: 25%;
4454
left: 0;
4555
transform: inherit;
4656
margin: 40px auto;
@@ -52,8 +62,9 @@
5262
.error-card {
5363
width: 90%;
5464

55-
&.center {
65+
&.global {
5666
position: relative;
67+
top: 25%;
5768
left: 0;
5869
transform: inherit;
5970
margin: 40px auto;

0 commit comments

Comments
 (0)