mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 03:32:06 +00:00
86 lines
2.4 KiB
Plaintext
86 lines
2.4 KiB
Plaintext
<Layouts.flash_group flash={@flash} />
|
||
<main>
|
||
<section class="hero">
|
||
<div class="hero-copy">
|
||
<div class="eyebrow">
|
||
<.icon_spark /> Endgames, made clear
|
||
</div>
|
||
<h1>
|
||
Learn to see the <em>winning move.</em>
|
||
</h1>
|
||
<p>
|
||
Short, focused endgame sessions that build the instincts you need
|
||
when every move matters.
|
||
</p>
|
||
<div class="hero-actions">
|
||
<.pill_button variant={:primary} navigate={play_path(@active_endgame)}>
|
||
Try today's puzzle <.icon_arrow />
|
||
</.pill_button>
|
||
<div class="rating-note">
|
||
<span class="avatar-stack">
|
||
<i>♟</i>
|
||
<i>♙</i>
|
||
<i>♜</i>
|
||
</span>
|
||
<span>
|
||
<strong>{count_label(@user_count)}</strong> players training
|
||
</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="board-stage" id="trainer">
|
||
<div class="coral-orbit" />
|
||
<div class="mint-orbit" />
|
||
<.board_preview endgame={@active_endgame} date={@today} />
|
||
</div>
|
||
</section>
|
||
|
||
<section class="learning-strip" id="method">
|
||
<p>Built for the part of chess that decides everything.</p>
|
||
<div class="stat">
|
||
<strong>{count_label(@puzzle_count)}</strong>
|
||
<span>puzzles</span>
|
||
</div>
|
||
<div class="stat">
|
||
<strong>{@user_count}</strong>
|
||
<span>Players improving their endgame</span>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="puzzle-section" id="puzzles">
|
||
<div class="section-heading">
|
||
<div>
|
||
<span class="section-kicker">Choose your challenge</span>
|
||
<h2>
|
||
One position. <br /> One clear idea.
|
||
</h2>
|
||
</div>
|
||
<p>
|
||
No noise, no endless variations. Each exercise teaches a pattern
|
||
you’ll recognize over the board.
|
||
</p>
|
||
</div>
|
||
<div class="puzzle-grid">
|
||
<%= for {endgame, index} <- Enum.with_index(@endgames) do %>
|
||
<.puzzle_card
|
||
endgame={endgame}
|
||
index={index}
|
||
active={@active_endgame && endgame.id == @active_endgame.id}
|
||
/>
|
||
<% end %>
|
||
</div>
|
||
</section>
|
||
|
||
<%!-- <section class="progress-banner" id="progress">
|
||
<div>
|
||
<span class="section-kicker">A calmer way to improve</span>
|
||
<h2>
|
||
Make the endgame <br /> your strongest phase.
|
||
</h2>
|
||
</div>
|
||
<.pill_button variant={:light} navigate={play_path(@active_endgame)}>
|
||
Begin with the basics <.icon_arrow />
|
||
</.pill_button>
|
||
</section> --%>
|
||
</main>
|