1 Commits

Author SHA1 Message Date
511e62b58c sticky pagination
All checks were successful
Build and Push Image / build-and-push (push) Successful in 4m6s
2025-12-28 15:20:21 -05:00
3 changed files with 9 additions and 4 deletions

View File

@@ -21,6 +21,8 @@
top: 0; top: 0;
position: sticky; position: sticky;
z-index: 100; z-index: 100;
backdrop-filter: blur(20px);
box-shadow: 0 3px 10px $mainBGColor;
} }
body { body {
@@ -201,7 +203,7 @@ form {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
gap: 5; gap: 5;
padding: 2px; padding: 10px;
a { a {
transition: all 0.25s ease-out; transition: all 0.25s ease-out;

View File

@@ -3,7 +3,7 @@ use dioxus::prelude::*;
#[component] #[component]
pub fn Search(query: Signal<String>, page: Signal<i32>) -> Element { pub fn Search(query: Signal<String>, page: Signal<i32>) -> Element {
rsx! { rsx! {
div { class: "searchBar stickyTop", div { class: "searchBar",
input { input {
r#type: "search", r#type: "search",
placeholder: "Search Files", placeholder: "Search Files",

View File

@@ -8,8 +8,11 @@ pub fn Home() -> Element {
let max_page = use_signal(|| 1 as i32); let max_page = use_signal(|| 1 as i32);
let item_count = use_signal(|| 0 as i32); let item_count = use_signal(|| 0 as i32);
rsx! { rsx! {
div {
class: "stickyTop",
Search { query, page }, Search { query, page },
Pagination { page, max_page, item_count }, Pagination { page, max_page, item_count },
}
MediaGrid { query: query.cloned(), page: page.cloned(), max_page, total_items: item_count } MediaGrid { query: query.cloned(), page: page.cloned(), max_page, total_items: item_count }
} }
} }