diff --git a/client/index.html b/client/index.html index 03ef865..c7e6c61 100644 --- a/client/index.html +++ b/client/index.html @@ -1,8 +1,12 @@ - - Trunk Template + + + Personal Tracker + - + + + diff --git a/client/index.scss b/client/index.scss new file mode 100644 index 0000000..ddbf4bb --- /dev/null +++ b/client/index.scss @@ -0,0 +1,27 @@ +html, body { + margin: 0; + height: 100%; +} + +#container { + height: 100%; + + display: flex; + flex-direction: column; +} + +header { + text-align: center; +} + +header > h1 { + margin: 0; +} + +main { + flex: 1; +} + +footer { + text-align: center; +} \ No newline at end of file diff --git a/client/src/main.rs b/client/src/main.rs index d6821ad..465b95a 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -2,23 +2,19 @@ use yew::prelude::*; #[function_component] fn App() -> Html { - let counter = use_state(|| 0); - let onclick = { - let counter = counter.clone(); - move |_| { - let value = *counter + 2; - counter.set(value); - } - }; - html! { -
- -

{ *counter }

+
+
+

{ "Personal Tracker" }

+
+
+

{ "Main" }

+
+
{ "Personal Tracker v1" }
} } fn main() { yew::Renderer::::new().render(); -} \ No newline at end of file +}