use day::prelude::*;
pub(crate) fn home_page() -> AnyPiece {
let count = Signal::new(0i64);
column((
image(crate::res::images::app_logo).frame(64.0, 64.0),
label(crate::res::str::home_welcome()).font(Font::Title).id("home-title"),
label(crate::res::str::home_blurb()),
row((
button("โ")
.action(move || count.update(|c| *c -= 1))
.id("dec"),
label(move || format!("{}", count.get()))
.font(Font::Headline)
.id("count"),
button("+")
.action(move || count.update(|c| *c += 1))
.id("inc"),
))
.spacing(12.0),
))
.spacing(12.0)
.align(HAlign::Leading)
.padding(16.0)
.any()
}