add screen wrapper

This commit is contained in:
JMARyA 2025-01-17 16:28:56 +01:00
parent 15e70da512
commit 302daacc82
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
4 changed files with 123 additions and 69 deletions

View file

@ -14,6 +14,12 @@ pub async fn index_page(ctx: RequestContext) -> StringResponse {
let content = html!(
h1 { "Hello World!" };
(
Screen::medium(Hover(Background(Red::_700, Nothing()))).on(
Background(Blue::_700, Text("HELLO!"))
)
)
(Hover(
Cursor::NorthEastResize.on(
Padding(Text("").color(&Gray::_400)).x(ScreenValue::_10)