wip: add an image

This commit is contained in:
Jonathan Kelley committed 2022-01-01 01:08:31 -05:00
1 parent dc34805ee6
commit 7b29fbbad0
8 files changed
+331 -174

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
use dioxus::prelude::*;
fn main() {
let mut dom = VirtualDom::new(app);
dom.rebuild();
rink::render_vdom(&dom).unwrap();
}
fn app(cx: Scope) -> Element {
cx.render(rsx! {
div {
width: "100%",
height: "10px",
background_color: "red",
justify_content: "center",
align_items: "center",
"Hello world!"
}
})
}