Skip to content

Commit 0b9a67d

Browse files
authored
Merge pull request #1051 from swiftlang/fb/exception-page
Add 404 page
2 parents e4f490c + 6200ac0 commit 0b9a67d

File tree

4 files changed

+32
-3
lines changed

4 files changed

+32
-3
lines changed

404.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ title: Internal Server Error
44
permalink: /404.html
55
---
66

7-
<section class="section">
8-
<h1>Not Found</h1>
9-
The page you're looking for can’t be found.
7+
<section id="exception">
8+
<div class="content">
9+
<h1>Not Found</h1>
10+
<p>The page you're looking for can’t be found.</p>
11+
</div>
1012
</section>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
@use 'pages/index';
2+
@use 'pages/exception';
23
@use 'pages/install';
34
@use 'pages/get-started';

assets/stylesheets/new-stylesheets/_themes.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
--page-bg: #fff;
2424

25+
--exception-page-bg: #fac685;
26+
2527
--install-page-bg: linear-gradient(0deg, #f6b391 0%, #f8ce6e 92%);
2628
--install-site-code-box-bg: #ffffff;
2729
--install-site-code-box-pre-bg: #f2f2f2;
@@ -124,6 +126,8 @@
124126

125127
--page-bg: #fff;
126128

129+
--exception-page-bg: #23344a;
130+
127131
--install-page-bg: linear-gradient(0deg, #ff8115 0%, #b7451b 92%);
128132
--install-site-code-box-bg: #23344a;
129133
--install-site-code-box-pre-bg: #111727;
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#exception {
2+
display: flex;
3+
flex-direction: column;
4+
background-color: var(--exception-page-bg);
5+
color: var(--site-text-color);
6+
7+
.content {
8+
flex-grow: 1;
9+
display: flex;
10+
flex-direction: column;
11+
text-align: center;
12+
padding: 18vw 0;
13+
14+
h1 {
15+
font-size: 48px;
16+
}
17+
18+
@media only screen and (max-width: 1024px) {
19+
margin: 90px 0;
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)