Privacy and terms pages with config-driven branding (#91)

* comment out begin with basics until lessons are on the way

* route to footer link dead views

* proposed >7 piece engame processing

* basic privacy and terms pages with default text

* add branding to config and reference across the site

* disclose guest puzzle limit in privacy policy (#87)
This commit is contained in:
2026-11-06 13:56:20 +01:00
committed by GitHub
parent 6a4288bb6c
commit bd8be4d10d
15 changed files with 548 additions and 23 deletions
+7 -7
View File
@@ -70,9 +70,9 @@ defmodule ChesstrainerWeb.Layouts do
~H"""
<header>
<nav class="nav-wrap" aria-label="Main navigation">
<a class="brand" href="/" aria-label="Lucid Chess home">
<a class="brand" href="/" aria-label={"#{Branding.name()} home"}>
<span class="brand-mark">♞</span>
<span>LUCID</span>
<span>{Branding.wordmark()}</span>
</a>
<div class="nav-right">
@@ -166,19 +166,19 @@ defmodule ChesstrainerWeb.Layouts do
~H"""
<footer class="site-footer">
<div class="footer-brand">
<a class="brand" href="/" aria-label="Lucid Chess home">
<a class="brand" href="/" aria-label={"#{Branding.name()} home"}>
<span class="brand-mark">♞</span>
<span>LUCID</span>
<span>{Branding.wordmark()}</span>
</a>
<p>Short, focused endgame training.</p>
</div>
<nav class="footer-links" aria-label="Footer">
<a href="/#privacy">Privacy Policy</a>
<a href="/#terms-conditions">Terms & Conditions</a>
<a href="/privacy">Privacy Policy</a>
<a href="/terms-conditions">Terms & Conditions</a>
</nav>
<small>© {@year} Lucid Chess</small>
<small>© {@year} {Branding.name()}</small>
</footer>
"""
end