add padding + margin

This commit is contained in:
JMARyA 2025-01-15 19:20:46 +01:00
parent e9a9dad037
commit b1c6ab8b7d
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
7 changed files with 230 additions and 22 deletions

View file

@ -15,7 +15,7 @@ pub async fn index_page(ctx: RequestContext) -> StringResponse {
h1 { "Hello World!" };
(Hover(
Padding(Text("").color(Gray::_400)).x(10),
Padding(Text("").color(&Gray::_400)).x(ScreenValue::_10),
Link("/test", Text("Hello")).hx_get("/test").hx_get("/test").hx_trigger(
Event::on_load().delay("2s")
.and(Event::on_revealed())