milestone project thingy

This commit is contained in:
2025-07-03 13:48:10 -05:00
parent dc7d897916
commit 36a00c1682
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -27,6 +27,9 @@ fn main() {
}
fn milestones(app: &mut Screen) {
app.draw(format!("My Project"))
.component(Transform::center().top(20));
for i in 0..4 {
let mut milestone = Div {
style: DivStyle {
+5
View File
@@ -53,6 +53,11 @@ impl Transform {
}
}
pub fn top(mut self, m: usize) -> Self {
self.y = Position::Const(m);
self
}
pub fn bottom(mut self) -> Self {
self.y = Position::End;
self