static text

This commit is contained in:
2024-12-17 11:40:46 +01:00
parent e1ad3a58b0
commit 8182e70ca4
3 changed files with 22 additions and 14 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
use crate::prelude::*;
pub fn todo_app() -> Element {
let todo = vec!["Foo", "Bar"];
let todo = vec!["Todo", "Hovering", "Completed", "Foo", "Bar"];
rsx! {
text { class: "title", "Todo list app made with OSUI" }
text { class: "title", static "Todo list app made with OSUI" }
text { class: "title", "{}", "-".repeat(crossterm::terminal::size().unwrap().0 as usize) }
for (t in todo) {
ersx!( button{ class: "todo", on_click: fn(btn: &mut Button, _, _) {
@@ -26,7 +26,7 @@ pub fn todo_styling() -> Css {
color: Red,
}
"todo": "hover" {
color: Blue
color: Blue,
}
"complete" {
x: 0 px,