forked from tangled.org/core
this repo has no description

appview/pages: fix button styles in error templates

Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>

anirudh.fi 363cc1ed e1b79ac4

verified
Changed files
+8 -8
appview
pages
+1 -1
appview/pages/templates/errors/404.html
···
The page you're looking for doesn't exist. It may have been moved, deleted, or you have the wrong URL.
</p>
<div class="flex flex-col sm:flex-row gap-3 justify-center items-center mt-6">
-
<a href="javascript:history.back()" class="btn px-4 py-2 rounded flex items-center gap-2 no-underline hover:no-underline text-gray-600 dark:text-gray-300 border border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700">
+
<a href="javascript:history.back()" class="btn no-underline hover:no-underline gap-2">
{{ i "arrow-left" "w-4 h-4" }}
go back
</a>
+4 -4
appview/pages/templates/errors/500.html
···
{{ i "alert-triangle" "w-8 h-8 text-red-500 dark:text-red-400" }}
</div>
</div>
-
+
<div class="space-y-4">
<h1 class="text-2xl sm:text-3xl font-bold text-gray-900 dark:text-white">
500 &mdash; internal server error
···
<p class="mt-1">Our team has been automatically notified about this error.</p>
</div>
<div class="flex flex-col sm:flex-row gap-3 justify-center items-center mt-6">
-
<button onclick="location.reload()" class="btn-create px-4 py-2 rounded flex items-center gap-2 no-underline hover:no-underline hover:text-white">
+
<button onclick="location.reload()" class="btn-create gap-2">
{{ i "refresh-cw" "w-4 h-4" }}
try again
</button>
-
<a href="/" class="btn px-4 py-2 rounded flex items-center gap-2 no-underline hover:no-underline text-gray-600 dark:text-gray-300 border border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700">
+
<a href="/" class="btn no-underline hover:no-underline gap-2">
{{ i "home" "w-4 h-4" }}
back to home
</a>
···
</div>
</div>
</div>
-
{{ end }}
+
{{ end }}
+2 -2
appview/pages/templates/errors/503.html
···
We were unable to reach the knot hosting this repository. The service may be temporarily unavailable.
</p>
<div class="flex flex-col sm:flex-row gap-3 justify-center items-center mt-6">
-
<button onclick="location.reload()" class="btn-create px-4 py-2 rounded flex items-center gap-2 no-underline hover:no-underline hover:text-white">
+
<button onclick="location.reload()" class="btn-create gap-2">
{{ i "refresh-cw" "w-4 h-4" }}
try again
</button>
-
<a href="/" class="btn px-4 py-2 rounded flex items-center gap-2 no-underline hover:no-underline text-gray-600 dark:text-gray-300 border border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700">
+
<a href="/" class="btn gap-2 no-underline hover:no-underline">
{{ i "arrow-left" "w-4 h-4" }}
back to timeline
</a>
+1 -1
appview/pages/templates/errors/knot404.html
···
The repository you were looking for could not be found. The knot serving the repository may be unavailable.
</p>
<div class="flex flex-col sm:flex-row gap-3 justify-center items-center mt-6">
-
<a href="/" class="btn px-4 py-2 rounded flex items-center gap-2 no-underline hover:no-underline">
+
<a href="/" class="btn flex items-center gap-2 no-underline hover:no-underline">
{{ i "arrow-left" "w-4 h-4" }}
back to timeline
</a>