Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
layout: 404
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does the docs dir already go to top level? do we need to add a permalink so that it's in the right place to be a 404 page for CG pages?

Suggested change
layout: 404
layout: 404
permalink: /404.html

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine without? It seems to be available at /404.html already without specifying permalink.

---
113 changes: 113 additions & 0 deletions docs/_layouts/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<title>This page is no longer available | Login.gov</title>
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/styles.css">
<style>
html,
body {
height: 100%;
}

body {
color: #fff;
text-align: center;
}

main {
background-color: #112e51;
}

a,
a:focus,
a:hover {
color: #fff;
}

.site-wrapper {
display: table;
height: 100%;
min-height: 100%;
width: 100%;
}

.site-wrapper-inner {
display: table-cell;
vertical-align: middle;
}

.cover-container {
margin: auto;
max-width: 600px;
}

.inner {
padding: 0 30px;
}

.cover {
padding: 0 20px;
}

.masthead-brand {
margin-top: 10px;
}

ul {
padding: 0;
}

li {
display: inline;
margin: 20px;
}

h1 {
margin-top: 32px;
margin-bottom: 24px;
}

@media (min-width: 768px) {
.cover-container {
width: 100%;
}
}

@media (min-width: 992px) {
.cover-container {
width: 720px;
}
}
</style>
</head>
<body>
<main class="site-wrapper">
<div class="site-wrapper-inner">
<div class="cover-container">
<div class="masthead clearfix">
<div class="inner">
<a href="https://www.login.gov/">
<img src="{{ site.baseurl }}/assets/img/login-gov-logo-rev.svg" width="150" alt="login.gov logo" class="masthead-brand" />
</a>
</div>
</div>
<div class="inner cover">
<h1>
This page is no longer available.
</h1>
<p>
Here are some links that might be helpful:
</p>
</div>
<ul>
<li><a href="https://www.login.gov/">Home</a></li>
<li><a href="https://www.login.gov/partners/">Partners</a></li>
<li><a href="https://www.login.gov/help/">Help center</a></li>
</ul>
</div>
</div>
</main>
</body>
</html>
2 changes: 1 addition & 1 deletion src/img/login-gov-logo-rev.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.