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
+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>
}
}