wip
This commit is contained in:
parent
37f65b6353
commit
4a537cd933
1 changed files with 33 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
use maud::{PreEscaped, html};
|
||||
use maud::{html, PreEscaped, Render};
|
||||
|
||||
pub mod search;
|
||||
|
||||
|
@ -155,3 +155,35 @@ pub fn script(script: &str) -> PreEscaped<String> {
|
|||
};
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
// TODO : More UI primitives like flutter
|
||||
|
||||
// Row -> flex
|
||||
|
||||
pub struct Row(PreEscaped<String>);
|
||||
|
||||
impl Render for Row {
|
||||
fn render(&self) -> maud::Markup {
|
||||
html! {
|
||||
div class="flex" { (self.0) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn test() {
|
||||
html! {
|
||||
(Row(PreEscaped("".to_string())))
|
||||
};
|
||||
}
|
||||
|
||||
// Grids
|
||||
|
||||
// ListViews
|
||||
|
||||
// ListTiles
|
||||
|
||||
// Cards
|
||||
|
||||
// FlowBite?
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue