App: add display canvas

This commit is contained in:
Aaron Fenyes 2024-09-13 14:53:12 -07:00
parent 0c2869d3f3
commit 49170671b4
5 changed files with 46 additions and 3 deletions

View file

@ -55,7 +55,9 @@ pub fn App() -> View {
View::from(div().children(u_coord))
}).collect::<Vec<_>>();
view! {
li {
/* [TO DO] switch to integer-valued parameters whenever
that becomes possible again */
li(tabindex="0") {
div(class="elt-label") { (label) }
div(class="elt-rep") { (rep_components) }
}

View file

@ -0,0 +1,10 @@
use sycamore::prelude::*;
#[component]
pub fn Display() -> View {
view! {
/* [TO DO] switch back to integer-valued parameters when that becomes
possible again */
canvas(width="750", height="750", tabindex="0")
}
}

View file

@ -1,14 +1,17 @@
mod app;
mod assembly;
mod display;
use sycamore::prelude::*;
use app::App;
use display::Display;
fn main() {
sycamore::render(|| {
view! {
App {}
Display {}
}
});
}