Skip to content

Commit 2e99027

Browse files
authored
custom 404 page #383
1 parent 324119c commit 2e99027

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

404.html

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
layout: default
3+
title: Page Not Found
4+
canonical_url: /404.html
5+
---
6+
{% include nav.html %}
7+
<main class="front-section">
8+
<div class="container">
9+
<div class="masthead" style="max-width: 600px; margin: 0 auto; background-color: transparent;">
10+
<div class="lead">404</div>
11+
<h1>Page Not Found</h1>
12+
<p class="light">The page you're looking for doesn't exist. It might have been moved, deleted, or you entered the wrong URL.</p>
13+
14+
<div class="flex">
15+
<a href="/" class="btn">Go Home</a>
16+
<a href="/doc/" class="btn">Documentation</a>
17+
</div>
18+
</div>
19+
</div>
20+
</div>
21+
</main>
22+
23+
<style>
24+
.masthead .lead {
25+
font-size: 8rem;
26+
font-weight: 700;
27+
color:#22C55E;
28+
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
29+
line-height: 1;
30+
margin-bottom: 0.5rem;
31+
}
32+
33+
.masthead h1 {
34+
font-size: 2.5rem;
35+
margin-bottom: 1rem;
36+
}
37+
38+
.masthead p {
39+
font-size: 1.25rem;
40+
margin-bottom: 3rem;
41+
}
42+
43+
.masthead .flex {
44+
justify-content: center;
45+
flex-wrap: wrap;
46+
}
47+
48+
@media (max-width: 525px) {
49+
.masthead .lead {
50+
font-size: 6rem;
51+
}
52+
53+
.masthead h1 {
54+
font-size: 2rem;
55+
}
56+
57+
.masthead p {
58+
font-size: 1.1rem;
59+
}
60+
61+
.masthead .flex {
62+
flex-direction: column;
63+
align-items: center;
64+
}
65+
66+
.masthead .btn {
67+
width: 100%;
68+
max-width: 280px;
69+
}
70+
}
71+
</style>
72+

0 commit comments

Comments
 (0)