add screen wrapper
This commit is contained in:
parent
15e70da512
commit
302daacc82
4 changed files with 123 additions and 69 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue