aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-01-24 09:14:02 +0100
committermetamuffin <metamuffin@disroot.org>2024-01-24 09:14:02 +0100
commite72873f49969ccd73fbd9408321a598079cbd049 (patch)
tree411543dbc6afd16e26ffce6d24e03bec88b6c3fc
parentdaba95cad0d58cf9fbf460d582729857f46b5390 (diff)
downloadjellything-e72873f49969ccd73fbd9408321a598079cbd049.tar
jellything-e72873f49969ccd73fbd9408321a598079cbd049.tar.bz2
jellything-e72873f49969ccd73fbd9408321a598079cbd049.tar.zst
style the search
-rw-r--r--server/src/routes/ui/search.rs6
-rw-r--r--web/style/layout.css10
2 files changed, 13 insertions, 3 deletions
diff --git a/server/src/routes/ui/search.rs b/server/src/routes/ui/search.rs
index dc90df1..eb222c9 100644
--- a/server/src/routes/ui/search.rs
+++ b/server/src/routes/ui/search.rs
@@ -56,12 +56,12 @@ pub async fn r_search<'a>(
Ok(LayoutPage {
title: "Search".to_string(),
- class: None,
+ class: Some("search"),
content: markup::new! {
h1 { "Search" }
form[action="", method="GET"] {
- input[type="text", name="query"];
- input[type="submit"];
+ input[type="text", name="query", placeholder="Search Term"];
+ input[type="submit", value="Search"];
}
@if let Some(results) = &results {
h2 { "Results" }
diff --git a/web/style/layout.css b/web/style/layout.css
index b261781..0dc5aed 100644
--- a/web/style/layout.css
+++ b/web/style/layout.css
@@ -144,3 +144,13 @@ summary h3 {
margin: 0;
}
}
+
+.search h1 {
+ text-align: center;
+}
+.search form {
+ text-align: center;
+}
+.search form input[type="text"] {
+ width: max(10em, 40%);
+}