Files
chess-endgame-trainer/lib/chesstrainer_web/controllers/page_html/home.html.heex
T
owenrees fa1fef7b62 Launch amendments: one login, crawler policy, and asset caching (#180)
* lesson library shown as com,ing soon. re-enable learngin strip

* replace learning strip text with a lasker quote

* remove admin login endpoint

* fix crawler directives and prelaunch login

- noindex the authenticated scope and the 404 catch-all, and cover the
  mailing-list confirmation redirect
- emit noindex, nofollow from the robots meta and /health, and assert
  public pages stay indexable and followable
- stop inventing lastmod values in the sitemap
- log in through /users/log-in during prelaunch now that the admin login
  endpoint is gone; drop create_admin/2 and its orphaned tests

* update caching length to 1 year - name change will invalidate cache

* remove logger

* fix tablebase path breaking tests

* test: check cache headers without requiring built assets

CI's test job does not run mix assets.build, so /assets/css/app.css is a
404 there. Committed piece art is already content-hashed and takes the same
Plug.Static cache option, so the test no longer needs a build step and
passes on a fresh checkout.
2026-11-17 12:55:47 +01:00

96 lines
2.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<Layouts.flash_group flash={@flash} />
<main id="main-content" tabindex="-1">
<section class="hero">
<div class="hero-copy">
<div class="eyebrow">
<.icon_spark /> Endgames, simplified
</div>
<h1>
Master the <em>endgame.</em>
</h1>
<p>
Train your intuition to find the winning moves under pressure. Puzzle sessions focused purely on technical execution.
</p>
<div class="hero-actions">
<%= if @active_endgame do %>
<.pill_button variant={:primary} navigate={play_path(@active_endgame)}>
Try today's puzzle <.icon_arrow />
</.pill_button>
<% else %>
<.pill_button variant={:primary} navigate={play_path(nil)}>
Start training <.icon_arrow />
</.pill_button>
<% end %>
<div class="rating-note">
<span class="avatar-stack">
<i>♟</i>
<i>♙</i>
<i>♜</i>
</span>
<span>
<strong>{count_label(@logged_in_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">
<figure class="learning-quote">
<blockquote>“The hardest game to win is a won game.”</blockquote>
<figcaption>— Emmanuel Lasker</figcaption>
</figure>
<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 lesson</span>
<h2>
One position. <br /> One idea.
</h2>
</div>
<p>
Each exercise teaches a pattern
that you’ll recognise over the board.
</p>
</div>
<div class="puzzle-coming-soon">
<div class="eyebrow">
<.icon_spark /> Coming soon
</div>
<strong>The lesson library is on its way.</strong>
<p>
A growing set of positions, each teaching one idea. Today’s puzzle is already live.
</p>
</div>
</section>
<.mailing_list_signup :if={@mailing_list_enabled} />
<%!-- <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>