readd btns

🐛 fixed some blog stuff
This commit is contained in:
lia
2025-08-21 02:19:36 +00:00
parent bfd8c187c6
commit f1c471839f
14 changed files with 297 additions and 745 deletions

View File

@@ -7,24 +7,24 @@ use crate::pages::blog::authorcard::AuthorCard;
}*/
pub struct Authors {
seeds: Vec<u8>,
ids: Vec<u8>,
}
impl Component for Authors {
type Message = (); //Msg;
type Properties = ();
fn create(_ctx: &Context<Self>) -> Self {
Self { seeds: vec![0], }
Self { ids: vec![0], }
}
/*fn update(&mut self, _ctx: &Context<Self>, msg: Self::Message) -> bool {
match msg { Msg::NextAuthors => { self.seeds = vec![0]; true } }
match msg { Msg::NextAuthors => { self.ids = vec![0]; true } }
}*/
fn view(&self, _: &Context<Self>) -> Html {
html! {
{ for self.seeds.iter().map(|&seed| { html! {
<AuthorCard {seed} />
{ for self.ids.iter().map(|&id| { html! {
<AuthorCard {id} />
} }) }
}
}