Style a basic 404 pasge

This commit is contained in:
Dominic Ferrando
2025-04-24 22:02:33 -04:00
parent e616fafc64
commit ceec56791f
3 changed files with 35 additions and 5 deletions
+22
View File
@@ -450,3 +450,25 @@ footer {
font-size: 10px;
text-align: center;
}
/* 404 NOT FOUND */
.not-found-container {
min-height: 90vh;
display: flex;
align-items: center;
}
.not-found-container .box {
text-align: center;
}
.not-found-container .box div {
padding: 20px;
}
#notFoundImg {
max-width: 80%;
display: block;
margin: auto;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

+13 -5
View File
@@ -1,9 +1,17 @@
package views
import "github.com/dominicf2001/comfychan/web/views/shared"
templ NotFound() {
<div class="container not-found">
<h1>404</h1>
<p>Comfychan couldnt find that page.</p>
<img src="/static/media/comfy-404.png" alt="404 mascot"/>
</div>
@shared.Layout() {
<div class="container not-found-container">
<div class="box">
<h2>404 not found.</h2>
<div>
<img id="notFoundImg" src="/static/media/404/1.jpg" alt="404 mascot"/>
</div>
<p><a class="link-button" href="javascript:history.back()">[Go back]</a></p>
</div>
</div>
}
}