about summary refs log tree commit diff
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/Cargo.toml9
-rw-r--r--frontend/index.html5
-rw-r--r--frontend/src/main.rs12
3 files changed, 26 insertions, 0 deletions
diff --git a/frontend/Cargo.toml b/frontend/Cargo.toml
new file mode 100644
index 0000000..2f2715c
--- /dev/null
+++ b/frontend/Cargo.toml
@@ -0,0 +1,9 @@
+[package]
+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]
+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>();
+}