Skip to content

Commit

Permalink
add 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
bjohansebas committed Nov 21, 2024
1 parent 8aa4cac commit 8738fc4
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
12 changes: 12 additions & 0 deletions 404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: 404
title: Page not found
description: The page you requested could not be found.
lang: en
---

# Not Found

We couldn’t find the page you’re looking for. Check the address or [head back home](/).

If this is a mistake, [let us know](https://github.com/expressjs/expressjs.com/issues/new/), and we will try to fix it!
18 changes: 18 additions & 0 deletions _layouts/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>

<html lang="en">
{% include head.html %}

{% if page.lang == 'en' %}
<body class="en-doc">
{% else %}
<body class="non-en-doc">
{% endif %}
{% include header/header-{{ page.lang }}.html %}
<div id="overlay"></div>
<main class="content-404">
{{ content }}
</main>
{% include footer/footer-{{ page.lang }}.html %}
</body>
</html>
14 changes: 14 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,20 @@ h2 a {
border-color: #333;
}

.content-404 {
height: 70vh;
padding: 153px 32px 7%;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}

.content-404 p {
font-size: 16px;
}

/* search-bar desktop re-sizing */
@media all and (min-width: 950px) {
.algolia-autocomplete {
Expand Down

0 comments on commit 8738fc4

Please sign in to comment.