add footer to host setup screen for checking build

This commit is contained in:
emilis 2025-12-09 21:06:05 +00:00
parent f6cf92bc40
commit 390a757928
No known key found for this signature in database
3 changed files with 12 additions and 5 deletions

View File

@ -29,8 +29,8 @@ use yew::prelude::*;
use crate::{ use crate::{
clients::client::connection::{Connection2, ConnectionError}, clients::client::connection::{Connection2, ConnectionError},
components::{ components::{
Button, CoverOfDarkness, Identity, Story, Button, CoverOfDarkness, Footer, Identity, Story,
client::{ClientFooter, ClientNav, Signin}, client::{ClientNav, Signin},
}, },
storage::StorageKey, storage::StorageKey,
}; };
@ -253,7 +253,7 @@ pub fn Client2(ClientProps { auto_join }: &ClientProps) -> Html {
<> <>
{nav} {nav}
{content} {content}
<ClientFooter /> <Footer />
</> </>
} }
} }

View File

@ -42,7 +42,7 @@ use yew::{html::Scope, prelude::*};
use crate::{ use crate::{
callback, callback,
components::{ components::{
Button, Lobby, LobbyPlayerAction, RoleReveal, Settings, Story, Victory, Button, Footer, Lobby, LobbyPlayerAction, RoleReveal, Settings, Story, Victory,
action::{ActionResultView, Prompt}, action::{ActionResultView, Prompt},
host::{CharacterStatesReadOnly, DaytimePlayerList, Setup}, host::{CharacterStatesReadOnly, DaytimePlayerList, Setup},
}, },
@ -559,12 +559,19 @@ impl Component for Host {
</nav> </nav>
} }
}); });
let footer =
(self.big_screen.not() && matches!(self.state, HostState::Lobby { .. })).then(|| {
html! {
<Footer />
}
});
html! { html! {
<> <>
{nav} {nav}
<div class="content"> <div class="content">
{content} {content}
</div> </div>
{footer}
</> </>
} }
} }

View File

@ -19,7 +19,7 @@ use crate::components::{Dialog, WithConfirmation};
const SOURCE_CODE_URL: &str = "https://sectorinf.com/emilis/werewolves"; const SOURCE_CODE_URL: &str = "https://sectorinf.com/emilis/werewolves";
#[function_component] #[function_component]
pub fn ClientFooter() -> Html { pub fn Footer() -> Html {
let about_dialog_state = use_state(|| false); let about_dialog_state = use_state(|| false);
let about_dialog = about_dialog_state.then(|| { let about_dialog = about_dialog_state.then(|| {
let cancel_signout = { let cancel_signout = {