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 node_ref=username_input_ref
disabled=move || !connected() disabled=move || !connected()
/> />
<br/> <br />
<input <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" 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" type="submit"

View file

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

View file

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

View file

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

View file

@ -17,19 +17,19 @@ pub fn App() -> impl IntoView {
provide_meta_context(); provide_meta_context();
view! { 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 // sets the document title
<Title text="Cards for Humanity"/> <Title text="Cards for Humanity" />
// injects metadata in the <head> of the page // injects metadata in the <head> of the page
<Meta charset="UTF-8"/> <Meta charset="UTF-8" />
<Meta name="viewport" content="width=device-width, initial-scale=1.0"/> <Meta name="viewport" content="width=device-width, initial-scale=1.0" />
<Router> <Router>
<Routes> <Routes>
<Route path="/" view=Home/> <Route path="/" view=Home />
<Route path="/*" view=NotFound/> <Route path="/*" view=NotFound />
</Routes> </Routes>
</Router> </Router>
} }

View file

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

View file

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

View file

@ -3,5 +3,5 @@ use leptos::*;
/// 404 Not Found Page /// 404 Not Found Page
#[component] #[component]
pub fn NotFound() -> impl IntoView { 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> }
} }