mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 11:42:07 +00:00
add visual rating guide (#48)
This commit is contained in:
@@ -16,9 +16,7 @@ defmodule ChesstrainerWeb.EndgameLive.Play do
|
||||
{@endgame.color |> Atom.to_string() |> String.capitalize()} to move · Rating: {round(
|
||||
@endgame.rating
|
||||
)} · Attempts: {@endgame.times_attempted ||
|
||||
0} · Solved: {@endgame.times_solved || 0}<span :if={@user_rating}> · Your rating: {round(
|
||||
@user_rating
|
||||
)}</span>
|
||||
0} · Solved: {@endgame.times_solved || 0}
|
||||
<p class="text-xs text-muted flex items-center mt-1">
|
||||
<span>FEN: {@endgame.fen}</span>
|
||||
<button
|
||||
@@ -42,6 +40,10 @@ defmodule ChesstrainerWeb.EndgameLive.Play do
|
||||
</:actions>
|
||||
</.header>
|
||||
|
||||
<div :if={@user_rating} class="mb-4">
|
||||
<.rating_guide rating={@user_rating} deviation={@user_deviation} />
|
||||
</div>
|
||||
|
||||
<PlayComponents.play_surface
|
||||
endgame={@endgame}
|
||||
status={@status}
|
||||
|
||||
Reference in New Issue
Block a user