Skip to content

Commit

Permalink
fix 404 styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Jul 19, 2021
1 parent 875d3f8 commit d197e19
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions assets/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,8 @@ a[href^="/"] {
border: var(--outlinegray) 1px solid;
border-radius: 5px
}
}

.centered {
margin-top: 30vh;
}
14 changes: 9 additions & 5 deletions layouts/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@
{{ partial "head.html" . }}

<body>
<div>
<div class="singlePage">
{{partial "darkmode.html" .}}
<div>
<div class="centered">
<h1>404.</h1>
<h3>Hey! You look a little lost.</h3>
<ul id="sub-nav">
<li><a href="/">↳ Let's get you home.</a></li>
</ul>
<a href="/">↳ Let's get you home.</a>
</div>
</div>

{{- with resources.Get "darkmode.js" | minify -}}
<script>
{{.Content | safeJS }}
</script>
{{- end -}}
</body>

</html>

0 comments on commit d197e19

Please sign in to comment.