2022-01-01 06:08:31 +00:00
|
|
|
use dioxus::prelude::*;
|
|
|
|
|
|
|
|
fn main() {
|
2022-07-09 19:15:20 +00:00
|
|
|
dioxus_tui::launch(app);
|
2022-01-01 06:08:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn app(cx: Scope) -> Element {
|
|
|
|
cx.render(rsx! {
|
|
|
|
div {
|
|
|
|
width: "100%",
|
|
|
|
height: "100%",
|
|
|
|
flex_direction: "column",
|
|
|
|
background_color: "black",
|
2022-12-06 23:38:04 +00:00
|
|
|
margin_right: "10px",
|
2022-01-01 06:08:31 +00:00
|
|
|
|
|
|
|
div {
|
|
|
|
width: "70%",
|
|
|
|
height: "70%",
|
|
|
|
background_color: "green",
|
2022-12-06 23:38:04 +00:00
|
|
|
margin_left: "4px",
|
2022-01-01 06:08:31 +00:00
|
|
|
|
|
|
|
div {
|
|
|
|
width: "100%",
|
|
|
|
height: "100%",
|
|
|
|
|
|
|
|
margin_top: "2px",
|
|
|
|
margin_bottom: "2px",
|
|
|
|
margin_left: "2px",
|
|
|
|
margin_right: "2px",
|
2022-01-12 14:40:36 +00:00
|
|
|
flex_shrink: "0",
|
2022-01-01 06:08:31 +00:00
|
|
|
|
|
|
|
background_color: "red",
|
|
|
|
justify_content: "center",
|
|
|
|
align_items: "center",
|
|
|
|
flex_direction: "column",
|
|
|
|
|
2022-12-06 23:38:04 +00:00
|
|
|
padding_top: "2px",
|
|
|
|
padding_bottom: "2px",
|
|
|
|
padding_left: "4px",
|
|
|
|
padding_right: "4px",
|
2022-01-01 06:08:31 +00:00
|
|
|
|
|
|
|
"[A]"
|
|
|
|
"[A]"
|
|
|
|
"[A]"
|
|
|
|
"[A]"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|