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
81 lines
2.5 KiB
Plaintext
81 lines
2.5 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta :if={assigns[:noindex]} name="robots" content="noindex" />
|
|
|
|
<meta name="csrf-token" content={get_csrf_token()} />
|
|
<.live_title
|
|
default={Branding.home_title()}
|
|
suffix={assigns[:title_suffix] || " · #{Branding.name()}"}
|
|
phx-no-format
|
|
>{assigns[:page_title]}</.live_title>
|
|
<meta
|
|
:if={assigns[:meta_description]}
|
|
name="description"
|
|
content={assigns[:meta_description]}
|
|
/>
|
|
<link :if={assigns[:canonical_url]} rel="canonical" href={assigns[:canonical_url]} />
|
|
<meta :if={assigns[:meta_description]} property="og:type" content="website" />
|
|
<meta :if={assigns[:meta_description]} property="og:site_name" content={Branding.name()} />
|
|
<meta
|
|
:if={assigns[:meta_description]}
|
|
property="og:title"
|
|
content={assigns[:page_title] || Branding.home_title()}
|
|
/>
|
|
<meta
|
|
:if={assigns[:meta_description]}
|
|
property="og:description"
|
|
content={assigns[:meta_description]}
|
|
/>
|
|
<meta :if={assigns[:canonical_url]} property="og:url" content={assigns[:canonical_url]} />
|
|
<meta :if={assigns[:meta_description]} name="twitter:card" content="summary" />
|
|
<meta
|
|
:if={assigns[:meta_description]}
|
|
name="twitter:title"
|
|
content={assigns[:page_title] || Branding.home_title()}
|
|
/>
|
|
<meta
|
|
:if={assigns[:meta_description]}
|
|
name="twitter:description"
|
|
content={assigns[:meta_description]}
|
|
/>
|
|
<link phx-track-static rel="stylesheet" href={~p"/assets/css/app.css"} />
|
|
<link
|
|
rel="preload"
|
|
href="/fonts/dm-sans-variable.woff2"
|
|
as="font"
|
|
type="font/woff2"
|
|
crossorigin
|
|
/>
|
|
<link
|
|
rel="preload"
|
|
href="/fonts/dm-serif-display.woff2"
|
|
as="font"
|
|
type="font/woff2"
|
|
crossorigin
|
|
/>
|
|
|
|
<script
|
|
defer
|
|
phx-track-static
|
|
type="text/javascript"
|
|
src={assigns[:js_entry] || ~p"/assets/js/app.js"}
|
|
>
|
|
</script>
|
|
<Layouts.theme_script />
|
|
</head>
|
|
<body>
|
|
<a
|
|
href="#main-content"
|
|
class="sr-only focus:not-sr-only focus:fixed focus:left-4 focus:top-4 focus:z-50 focus:rounded-md focus:bg-base-100 focus:px-4 focus:py-2 focus:text-base-content focus:shadow-lg"
|
|
>
|
|
Skip to main content
|
|
</a>
|
|
<Layouts.navbar current_scope={@current_scope} />
|
|
{@inner_content}
|
|
<Layouts.footer />
|
|
</body>
|
|
</html>
|