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

View File

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

View File

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