diff options
Diffstat (limited to '')
| -rw-r--r-- | frontend/Cargo.toml (renamed from client/Cargo.toml) | 7 | ||||
| -rw-r--r-- | frontend/index.html | 5 | ||||
| -rw-r--r-- | frontend/src/main.rs | 12 |
3 files changed, 19 insertions, 5 deletions
diff --git a/client/Cargo.toml b/frontend/Cargo.toml index 1cd3c2a..2f2715c 100644 --- a/client/Cargo.toml +++ b/frontend/Cargo.toml @@ -1,12 +1,9 @@ [package] -name = "client" +name = "frontend" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] - -[[bin]] -name = "client" -path = "src/main.rs" +yew = "0.19" diff --git a/frontend/index.html b/frontend/index.html new file mode 100644 index 0000000..79497a0 --- /dev/null +++ b/frontend/index.html @@ -0,0 +1,5 @@ +<!DOCTYPE html> +<html lang="en"> + <head> </head> + <body></body> +</html> diff --git a/frontend/src/main.rs b/frontend/src/main.rs new file mode 100644 index 0000000..22b1599 --- /dev/null +++ b/frontend/src/main.rs @@ -0,0 +1,12 @@ +use yew::prelude::*; + +#[function_component(App)] +fn app() -> Html { + html! { + <h1>{ "Hello World" }</h1> + } +} + +fn main() { + yew::start_app::<App>(); +} |