add:not found page

This commit is contained in:
kokopi-dev
2026-03-09 01:19:27 +09:00
parent cd593219f7
commit c5c49f07e9
4 changed files with 33 additions and 0 deletions

14
pages/error.templ Normal file
View File

@@ -0,0 +1,14 @@
package pages
import "personal-site/components"
import "personal-site/constants"
templ ErrorPage() {
{{ params := constants.NewLayoutParams("Not Found") }}
@components.MainLayout(params) {
<div class="mx-auto flex flex-col gap-4 text-center">
<h2>page not found</h2>
<a href="/">Go Home</a>
</div>
}
}