new frame and writing system

This commit is contained in:
2024-12-10 11:54:28 +01:00
parent 1876f4d640
commit 250528950a
6 changed files with 64 additions and 141 deletions
+14 -10
View File
@@ -26,26 +26,30 @@ pub fn todo_app() -> Element {
div {
class: "tab",
text { class: "title", "not started" }
text { class: "todo", "TODO: Something" }
}
div {
class: "tab",
text { class: "title", "completed" }
}
// div {
// class: "tab",
// text { class: "title", "completed" }
// }
}
}
pub fn styling() -> Css {
css! {
"tab" {
// x: 0 px,
// y: Auto,
// height: 50%,
x: Auto,
width: 50%,
outline: true,
}
"title" {
// x: Center,
// color: Red,
// width: 15 px,
width: Auto,
color: Red,
}
"todo" {
x: 0 px,
y: Auto,
color: Green,
}
}
}