This commit is contained in:
Adam 2024-08-14 20:39:26 -04:00
parent 991cf00acb
commit ebf5cba531
8 changed files with 29 additions and 29 deletions

View file

@ -55,7 +55,7 @@ pub fn Auth() -> impl IntoView {
node_ref=username_input_ref
disabled=move || !connected()
/>
<br/>
<br />
<input
class="py-2 px-4 pl-4 font-bold text-white rounded border-b-4 bg-neutral-600 border-neutral-800 hover:bg-neutral-700 hover:border-neutral-500"
type="submit"

View file

@ -101,7 +101,7 @@ pub fn Browser() -> impl IntoView {
</table>
</div>
<hr/>
<hr />
<div class="flex p-1">
<form onsubmit="return false" on:submit=new_game>
@ -115,11 +115,11 @@ pub fn Browser() -> impl IntoView {
<h2 class="text-2xl">Packs</h2>
<div class="p-2">
<button type="button" class="bg-neutral-600">
<input type="checkbox" id="all"/>
<input type="checkbox" id="all" />
<label for="all">All</label>
</button>
<button type="button" class="bg-neutral-600">
<input type="checkbox" id="official" checked/>
<input type="checkbox" id="official" checked />
<label for="official">Official</label>
</button>
<button type="button" class="bg-neutral-600" on:click=show_packs_button>
@ -160,7 +160,7 @@ pub fn Browser() -> impl IntoView {
/>
<label for=n.pack>{n.name}</label>
<br/>
<br />
// hax
{set_selected_packs
@ -204,7 +204,7 @@ pub fn Browser() -> impl IntoView {
/>
<label for=n.pack>{n.name}</label>
<br/>
<br />
// hax
{set_selected_packs

View file

@ -115,7 +115,7 @@ pub fn Chat() -> impl IntoView {
</ul>
</span>
<br/>
<br />
<span>
<form onsubmit="return false" on:submit=send_message>
<input
@ -131,7 +131,7 @@ pub fn Chat() -> impl IntoView {
/>
</form>
</span>
<br/>
<br />
</div>
}
}

View file

@ -37,7 +37,7 @@ pub fn Debug() -> impl IntoView {
view! {
<div class="w-auto">
<hr/>
<hr />
<h2 class="p-1 text-2xl">Debug:</h2>
<p class="p-1">"Connection Status: " {status}</p>
<p class="p-1">"Users Online: " {online_users}</p>

View file

@ -17,19 +17,19 @@ pub fn App() -> impl IntoView {
provide_meta_context();
view! {
<Html class="bg-neutral-900" lang="en" dir="ltr" attr:data-theme="dark"/>
<Html class="bg-neutral-900" lang="en" dir="ltr" attr:data-theme="dark" />
// sets the document title
<Title text="Cards for Humanity"/>
<Title text="Cards for Humanity" />
// injects metadata in the <head> of the page
<Meta charset="UTF-8"/>
<Meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<Meta charset="UTF-8" />
<Meta name="viewport" content="width=device-width, initial-scale=1.0" />
<Router>
<Routes>
<Route path="/" view=Home/>
<Route path="/*" view=NotFound/>
<Route path="/" view=Home />
<Route path="/*" view=NotFound />
</Routes>
</Router>
}

View file

@ -7,6 +7,6 @@ fn main() {
console_error_panic_hook::set_once();
mount_to_body(|| {
view! { <App/> }
view! { <App /> }
})
}

View file

@ -32,18 +32,18 @@ pub fn Home() -> impl IntoView {
<div class="container m-auto">
<h1 class="text-6xl inter-med text-neutral-200">"Cards For Humanity"</h1>
<div class="bg-neutral-950">
<Websocket/>
<hr/>
<Auth/>
<hr/>
<Browser/>
<hr/>
<Game/>
<hr/>
<Chat/>
<hr/>
<Debug/>
<hr/>
<Websocket />
<hr />
<Auth />
<hr />
<Browser />
<hr />
<Game />
<hr />
<Chat />
<hr />
<Debug />
<hr />
<a href="https://git.doordesk.net/adam/cards/">git</a>
</div>
</div>

View file

@ -3,5 +3,5 @@ use leptos::*;
/// 404 Not Found Page
#[component]
pub fn NotFound() -> impl IntoView {
view! { <h1>"Uh oh!" <br/> "We couldn't find that page!"</h1> }
view! { <h1>"Uh oh!" <br /> "We couldn't find that page!"</h1> }
}