Skip to content

Commit 5922f8c

Browse files
committed
Mainframe: Fix up old 404 page
1 parent b180269 commit 5922f8c

File tree

2 files changed

+51
-19
lines changed

2 files changed

+51
-19
lines changed

assets/css/v2/style.css

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,3 +1981,40 @@ hr {
19811981
visibility: hidden;
19821982
}
19831983
}
1984+
1985+
.sample-graphic {
1986+
width: 200px;
1987+
height: 200px;
1988+
color: white;
1989+
display: flex;
1990+
justify-content: center;
1991+
align-items: center;
1992+
background: black;
1993+
}
1994+
1995+
.not-found-container {
1996+
display: flex;
1997+
margin-top: 10vh;
1998+
flex-wrap: wrap;
1999+
justify-content: center;
2000+
align-items: center;
2001+
gap: var(--space-m);
2002+
2003+
.info-wrapper {
2004+
display: flex;
2005+
flex-direction: column;
2006+
}
2007+
2008+
.info-header {
2009+
font-size: var(--font-step-2);
2010+
display: flex;
2011+
align-items: center;
2012+
}
2013+
2014+
.info-desc {
2015+
display: flex;
2016+
flex-direction: column;
2017+
gap: var(--space-2xs);
2018+
font-size: var(--font-step-0);
2019+
}
2020+
}

layouts/404.html

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
{{ define "main"}}
22

3-
<div class="container hero">
4-
<h1><i class="far fa-frown"></i></h1>
5-
<h1>Page not found</h1>
6-
7-
<div class="row no-gutters">
8-
<div class="card list-card col-md-4">
9-
<div class="col-md-4">
10-
</div>
11-
<div class="card-body">
12-
13-
<div class="card-text">
14-
<p>Uh oh! We couldn't find the page you were looking for.</p>
15-
<p><a class="button button-solid" href="{{ "/" | absURL }}">Return to the NGINX Docs Home page.</a></p>
16-
</div>
3+
<div class="content">
4+
<div class="not-found-container">
5+
<div class="sample-graphic">
6+
i am a sample graphic
7+
</div>
8+
<div class="info-wrapper">
9+
<h1 class="info-header">
10+
Page not found
11+
</h1>
12+
<div class="info-desc">
13+
<p>Uh oh! We couldn't find the page/path you were looking for.</p>
14+
<a href="{{ .Site.BaseURL | relLangURL }}" aria-label="Return home">Return to the {{ .Site.Title }} homepage.</a>
15+
</div>
16+
</div>
1717
</div>
18-
</div>
19-
</div>
2018
</div>
2119

22-
23-
24-
2520
{{ end }}

0 commit comments

Comments
 (0)