diff --git a/appview/middleware/middleware.go b/appview/middleware/middleware.go --- a/appview/middleware/middleware.go +++ b/appview/middleware/middleware.go @@ -217,7 +217,7 @@ if err != nil { // invalid did or handle log.Println("failed to resolve repo") - mw.pages.Error404(w) + mw.pages.ErrorKnot404(w) return } diff --git a/appview/pages/templates/errors/404.html b/appview/pages/templates/errors/404.html --- a/appview/pages/templates/errors/404.html +++ b/appview/pages/templates/errors/404.html @@ -1,8 +1,28 @@ {{ define "title" }}404 · tangled{{ end }} {{ define "content" }} -

404 — nothing like that here!

-

- It seems we couldn't find what you were looking for. Sorry about that! -

+
+
+
+
+ {{ i "search-x" "w-8 h-8 text-gray-400 dark:text-gray-500" }} +
+
+ +
+

+ 404 — page not found +

+

+ The page you're looking for doesn't exist. It may have been moved, deleted, or you have the wrong URL. +

+ +
+
+
{{ end }} diff --git a/appview/pages/templates/errors/500.html b/appview/pages/templates/errors/500.html --- a/appview/pages/templates/errors/500.html +++ b/appview/pages/templates/errors/500.html @@ -1,6 +1,39 @@ {{ define "title" }}500 · tangled{{ end }} {{ define "content" }} -

500 — something broke!

-

We're working on getting service back up. Hang tight!

-{{ end }} +
+
+
+
+ {{ i "alert-triangle" "w-8 h-8 text-red-500 dark:text-red-400" }} +
+
+ +
+

+ 500 — internal server error +

+

+ Something went wrong on our end. We've been notified and are working to fix the issue. +

+
+
+ {{ i "info" "w-4 h-4" }} + we're on it! +
+

Our team has been automatically notified about this error.

+
+
+ + + {{ i "home" "w-4 h-4" }} + back to home + +
+
+
+
+{{ end }} \ No newline at end of file diff --git a/appview/pages/templates/errors/503.html b/appview/pages/templates/errors/503.html --- a/appview/pages/templates/errors/503.html +++ b/appview/pages/templates/errors/503.html @@ -1,9 +1,32 @@ {{ define "title" }}503 · tangled{{ end }} {{ define "content" }} -

503 — unable to reach knot

-

- We were unable to reach the knot hosting this repository. Try again - later. -

+
+
+
+
+ {{ i "server-off" "w-8 h-8 text-blue-500 dark:text-blue-400" }} +
+
+ +
+

+ 503 — service unavailable +

+

+ We were unable to reach the knot hosting this repository. The service may be temporarily unavailable. +

+
+ + + {{ i "arrow-left" "w-4 h-4" }} + back to timeline + +
+
+
+
{{ end }} diff --git a/appview/pages/templates/errors/knot404.html b/appview/pages/templates/errors/knot404.html --- a/appview/pages/templates/errors/knot404.html +++ b/appview/pages/templates/errors/knot404.html @@ -1,9 +1,28 @@ {{ define "title" }}404 · tangled{{ end }} {{ define "content" }} -

404 — repository not found!

-

- The repository you were looking for could not be found. - The knot serving the repository may be unavailable. -

+
+
+
+
+ {{ i "book-x" "w-8 h-8 text-orange-500 dark:text-orange-400" }} +
+
+ +
+

+ 404 — repository not found +

+

+ The repository you were looking for could not be found. The knot serving the repository may be unavailable. +

+ +
+
+
{{ end }}