about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-25 09:56:28 +0200
committerAlan Pearce2024-06-25 09:56:54 +0200
commite500a1089797eee1b027d5237b2e4f140004098c (patch)
tree9cfdf1f9ee0a77cd7b19dbbe0354f2d39eaac664
parent8ef4bc9b1f16dd6395d0e0daa85ada9b8db12015 (diff)
downloadsearchix-e500a1089797eee1b027d5237b2e4f140004098c.tar.lz
searchix-e500a1089797eee1b027d5237b2e4f140004098c.tar.zst
searchix-e500a1089797eee1b027d5237b2e4f140004098c.zip
feat: add message for users with javascript disabled
-rw-r--r--frontend/static/style.css4
-rw-r--r--internal/components/search.templ5
2 files changed, 9 insertions, 0 deletions
diff --git a/frontend/static/style.css b/frontend/static/style.css
index 184ded5..60b38c8 100644
--- a/frontend/static/style.css
+++ b/frontend/static/style.css
@@ -181,3 +181,7 @@ li {
   margin-right: 1ex;
   list-style: none;
 }
+
+p:last-child {
+  margin-bottom: unset;
+}
diff --git a/internal/components/search.templ b/internal/components/search.templ
index 2cae754..e5d3446 100644
--- a/internal/components/search.templ
+++ b/internal/components/search.templ
@@ -30,5 +30,10 @@ templ SearchPage(tdata TemplateData, r ResultData) {
 		<dialog id="dialog">
 			<button autofocus>Close</button>
 		</dialog>
+		<noscript>
+			<p class="notice">
+				Everything should work fine without JavaScript. If that is not the case, <a href="https://todo.sr.ht/~alanpearce/searchix">report an issue</a>
+			</p>
+		</noscript>
 	}
 }