cards/client/src/pages/home.rs

66 lines
2.3 KiB
Rust
Raw Normal View History

2024-07-23 22:48:39 -04:00
use crate::components::auth::*;
2024-07-28 02:36:04 -04:00
use crate::components::browser::*;
2024-07-23 22:45:45 -04:00
use crate::components::chat::*;
2024-07-24 22:37:18 -04:00
use crate::components::debug::*;
2024-08-09 01:21:04 -04:00
use crate::components::game::*;
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">
2024-08-27 01:32:22 -04:00
<h1 class="mx-4 text-6xl inter-med text-neutral-200">"Cards For Humanity"</h1>
<div class="p-5 bg-neutral-950 rounded-3xl shadow-black shadow-xl">
2024-08-27 01:21:30 -04:00
<h1 class="text-4xl">Hey!</h1>
<br />
<p>
2024-08-27 18:37:04 -04:00
{"Welcome! Thank you for helping me test this. Please let me know about any issues you may come across. Chances are you already know how to contact me but in case you don't you can email me at "}
2024-08-27 01:21:30 -04:00
<a href="mailto:adam@doordesk.net">adam@doordesk.net</a>
2024-08-27 18:37:04 -04:00
{". The server may go down from time to time as bugs are found and as I add updates. If you manage to crash the server or notice it down for a long time please tell me about it."}
2024-08-27 01:21:30 -04:00
</p>
<br />
<p>Have fun!</p>
<br />
2024-08-14 20:39:26 -04:00
<Websocket />
<hr />
<Auth />
<hr />
<Browser />
<hr />
<Game />
<hr />
2024-08-27 22:12:48 -04:00
<Chat />
<hr />
2024-08-14 20:39:26 -04:00
<Debug />
<hr />
2024-07-23 22:45:45 -04:00
<a href="https://git.doordesk.net/adam/cards/">git</a>
</div>
2024-07-18 04:00:56 -04:00
</div>
2024-08-27 02:27:49 -04:00
<br />
<br />
<br />
2024-07-18 04:00:56 -04:00
</ErrorBoundary>
}
}