mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 11:42:07 +00:00
* commented out lesson and learning strip until lessons are established * reword the hero section * change layout and working on puzzle section - remove top div as it was redundant * amend flash message on replay * switch cancel session for return home * remove system theme toggle since this is the default, leaving only light and dark toggles * add keyboard and screen reader support for play (#72) First draft covering the accessibility work in #72:\n\n- labelled SAN/UCI move input, validated against the tablebase and applied\n by the board hook, plus an accessible promotion picker\n- live-region announcements for moves, checks, checkmates and solve/fail,\n and a hidden text summary of the position\n- accessible labels, focus ring, skip link, keyboard-friendly review table\n and non-colour grade cues\n- WCAG AA text contrast roles and a responsive play surface\n- regression tests for move entry, announcements and link-style CTAs
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
<Layouts.flash_group flash={@flash} />
|
||||
<main>
|
||||
<main id="main-content" tabindex="-1">
|
||||
<section class="hero">
|
||||
<div class="hero-copy">
|
||||
<div class="eyebrow">
|
||||
<.icon_spark /> Endgames, made clear
|
||||
<.icon_spark /> Endgames, simplified
|
||||
</div>
|
||||
<h1>
|
||||
Learn to see the <em>winning move.</em>
|
||||
Master the <em>endgame.</em>
|
||||
</h1>
|
||||
<p>
|
||||
Short, focused endgame sessions that build the instincts you need
|
||||
when every move matters.
|
||||
Train your intuition to find the winning moves under pressure. Puzzle sessions focused purely on technical execution.
|
||||
</p>
|
||||
<div class="hero-actions">
|
||||
<.pill_button variant={:primary} navigate={play_path(@active_endgame)}>
|
||||
@@ -35,7 +34,7 @@
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="learning-strip" id="method">
|
||||
<%!-- <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>
|
||||
@@ -45,19 +44,19 @@
|
||||
<strong>{@user_count}</strong>
|
||||
<span>Players improving their endgame</span>
|
||||
</div>
|
||||
</section>
|
||||
</section> --%>
|
||||
|
||||
<section class="puzzle-section" id="puzzles">
|
||||
<%!-- <section class="puzzle-section" id="puzzles">
|
||||
<div class="section-heading">
|
||||
<div>
|
||||
<span class="section-kicker">Choose your challenge</span>
|
||||
<span class="section-kicker">Choose your lesson</span>
|
||||
<h2>
|
||||
One position. <br /> One clear idea.
|
||||
One position. <br /> One idea.
|
||||
</h2>
|
||||
</div>
|
||||
<p>
|
||||
No noise, no endless variations. Each exercise teaches a pattern
|
||||
you’ll recognize over the board.
|
||||
Each exercise teaches a pattern
|
||||
that you’ll recognise over the board.
|
||||
</p>
|
||||
</div>
|
||||
<div class="puzzle-grid">
|
||||
@@ -69,7 +68,7 @@
|
||||
/>
|
||||
<% end %>
|
||||
</div>
|
||||
</section>
|
||||
</section> --%>
|
||||
|
||||
<.mailing_list_signup />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user