-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/* /404.html 404 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: "Oops! Page not found" | ||
permalink: "/404.html" | ||
layout: "layout/404.html" | ||
--- | ||
|
||
<p class="lead">It seems that this URL doesn’t exist. Maybe you misspelled it, or it is removed.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{% extends "layout/base.html" %} | ||
|
||
{% block content %} | ||
<div class="l-404"> | ||
<div class="container"> | ||
<div class="l-404__inner"> | ||
<img src="/img/not-found.svg" class="l-404__image" alt=""> | ||
<div class="l-404__caption"> | ||
<h1 class="l-404__title">{{ title }}</h1> | ||
<div class="post-content"> | ||
{{ content | safe }} | ||
</div> | ||
<a href="/" class="btn btn--rounded btn--lg btn--primary">Go home</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% set gettingStartedSettings = { | ||
"classes": "l-getting-started--border-block-start" | ||
} %} | ||
{% include "../partial/getting-started.html" %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@use 'sprucecss/scss/spruce' as *; | ||
|
||
.l-404 { | ||
border-block-end: 1px solid color('border'); | ||
padding-block: get-css-variable(--section-gap); | ||
|
||
&__inner { | ||
display: flex; | ||
flex-direction: column; | ||
gap: spacer('m'); | ||
text-align: center; | ||
} | ||
|
||
&__image { | ||
margin-inline: auto; | ||
max-inline-size: 12rem; | ||
} | ||
|
||
&__caption { | ||
@include layout-stack('m'); | ||
margin-inline: auto; | ||
max-inline-size: 40rem; | ||
text-align: center; | ||
text-wrap: balance; | ||
} | ||
|
||
&__title { | ||
font-size: responsive-font-size(3.5rem, 35, '5vw + 1rem'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
@forward 'template'; | ||
@forward 'color'; | ||
@forward 'templates'; | ||
@forward '404'; |