diff --git a/client/src/components/game/header.rs b/client/src/components/game/header.rs index 664d31b..1ecf98a 100644 --- a/client/src/components/game/header.rs +++ b/client/src/components/game/header.rs @@ -6,12 +6,12 @@ fn Meta() -> impl IntoView { let game_meta = expect_context::>>(); view! { - -

Name: {move || game_meta().unwrap().name}

-

White Deck: {move || game_meta().unwrap().white_count}

-

White Discard: {move || game_meta().unwrap().white_discard_count}

-

Black Deck: {move || game_meta().unwrap().black_count}

-
+
+

{move || game_meta().unwrap().name}

+

"⬜ " {move || game_meta().unwrap().white_count}

+

"⬛ " {move || game_meta().unwrap().black_count}

+

"♻ " {move || game_meta().unwrap().white_discard_count}

+
} } @@ -21,45 +21,43 @@ fn Scoreboard() -> impl IntoView { view! { - - - - - - - - - - {game_meta() - .unwrap() - .players - .into_iter() - .map(|player| { - view! { - - - - - - } - }) - .collect_view()} -
"Score"
- {if game_meta().unwrap().czar == player.name { - "👑" - } else if player.submitted { - "🟢" - } else { - "⚫" - }} - - {if game_meta().unwrap().host == player.name { - "⚜ " - } else { - "" - }} {player.name} - {player.score}
-
+ + + + + + + + + {game_meta() + .unwrap() + .players + .into_iter() + .map(|player| { + view! { + + + + + + } + }) + .collect_view()} +
"Score"
+ {if game_meta().unwrap().czar == player.name { + "👑" + } else if player.submitted { + "🟢" + } else { + "⚫" + }} + + {if game_meta().unwrap().host == player.name { + "⚜ " + } else { + "" + }} {player.name} + {player.score}
} } @@ -67,7 +65,7 @@ fn Scoreboard() -> impl IntoView { #[component] pub fn Header() -> impl IntoView { view! { -
+