diff --git a/client/src/components/footer.rs b/client/src/components/footer.rs
new file mode 100644
index 0000000..348421a
--- /dev/null
+++ b/client/src/components/footer.rs
@@ -0,0 +1,22 @@
+use leptos::prelude::*;
+use thaw::*;
+
+#[component]
+pub fn Footer() -> impl IntoView {
+ view! {
+
+
+
+
+ "About"
+
+
+ "Contact"
+
+
+
+ }
+}
diff --git a/client/src/components/header.rs b/client/src/components/header.rs
new file mode 100644
index 0000000..964ac3c
--- /dev/null
+++ b/client/src/components/header.rs
@@ -0,0 +1,50 @@
+use crate::components::auth::*;
+use crate::components::theme_button::*;
+use leptos::prelude::*;
+use thaw::*;
+
+#[component]
+pub fn Header() -> impl IntoView {
+ let selected_value = expect_context::>();
+
+ view! {
+
+
+ "Cards For Humanity"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }
+}
diff --git a/client/src/components/mod.rs b/client/src/components/mod.rs
index cf3252c..409e2c2 100644
--- a/client/src/components/mod.rs
+++ b/client/src/components/mod.rs
@@ -2,6 +2,8 @@ pub mod auth;
pub mod browser;
pub mod chat;
pub mod debug;
+pub mod footer;
pub mod game;
+pub mod header;
pub mod theme_button;
pub mod websocket;
diff --git a/client/src/pages/home.rs b/client/src/pages/home.rs
index 83884c1..3efff6d 100644
--- a/client/src/pages/home.rs
+++ b/client/src/pages/home.rs
@@ -1,9 +1,9 @@
-use crate::components::auth::*;
use crate::components::browser::*;
use crate::components::chat::*;
use crate::components::debug::*;
+use crate::components::footer::*;
use crate::components::game::*;
-use crate::components::theme_button::*;
+use crate::components::header::*;
use crate::components::websocket::*;
use leptos::prelude::*;
use thaw::*;
@@ -12,15 +12,14 @@ use thaw::*;
#[component]
pub fn Home() -> impl IntoView {
let modal = RwSignal::new(false);
+ let selected_value = RwSignal::new("home".to_string());
+ provide_context(selected_value);
// Suppress modal during development
if !cfg!(debug_assertions) {
modal.set(true);
};
- let selected_value = RwSignal::new("home".to_string());
- provide_context(selected_value);
-
view! {
impl IntoView {
class="p-1 sm:p-5 sm:rounded-2xl sm:shadow-black sm:shadow-lg min-h-screen sm:min-h-0"
style="background-color: var(--colorNeutralBackground4);"
>
- // Header
-
-
- "Cards For Humanity"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
"Hey!"
@@ -121,21 +75,7 @@ pub fn Home() -> impl IntoView {
- // Footer
-
-
-
-
- "About"
-
-
- "Contact"
-
-
-
+