cards/client/src/pages/home.rs

44 lines
1.2 KiB
Rust
Raw Normal View History

2024-07-23 22:48:39 -04:00
use crate::components::auth::*;
2024-07-23 22:45:45 -04:00
use crate::components::chat::*;
2024-07-23 22:48:39 -04:00
use crate::components::websocket::*;
2024-07-18 04:00:56 -04:00
use leptos::*;
/// Default Home Page
#[component]
pub fn Home() -> impl IntoView {
view! {
<ErrorBoundary fallback=|errors| {
view! {
<h1>"Uh oh! Something went wrong!"</h1>
<p>"Errors: "</p>
// Render a list of errors as strings - good for development purposes
<ul>
{move || {
errors
.get()
.into_iter()
.map(|(_, e)| view! { <li>{e.to_string()}</li> })
.collect_view()
}}
</ul>
}
}>
2024-07-19 03:11:14 -04:00
<div class="container m-auto">
<h1 class="text-6xl text-slate-300">"Cards For Humanity"</h1>
2024-07-23 22:45:45 -04:00
<div class="bg-slate-500">
<Websocket/>
<hr/>
<Auth/>
<hr/>
<Chat/>
<hr/>
<a href="https://git.doordesk.net/adam/cards/">git</a>
</div>
2024-07-18 04:00:56 -04:00
</div>
</ErrorBoundary>
}
}