mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 03:32:06 +00:00
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:
@@ -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
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
|
||||
<meta name="csrf-token" content={get_csrf_token()} />
|
||||
<.live_title
|
||||
default="Lucid Chess — Endgame Trainer"
|
||||
suffix={assigns[:title_suffix] || " · Lucid Chess"}
|
||||
default={Branding.home_title()}
|
||||
suffix={assigns[:title_suffix] || " · #{Branding.name()}"}
|
||||
phx-no-format
|
||||
>{assigns[:page_title]}</.live_title>
|
||||
<meta
|
||||
@@ -17,11 +17,11 @@
|
||||
/>
|
||||
<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="Lucid Chess" />
|
||||
<meta :if={assigns[:meta_description]} property="og:site_name" content={Branding.name()} />
|
||||
<meta
|
||||
:if={assigns[:meta_description]}
|
||||
property="og:title"
|
||||
content={assigns[:page_title] || "Lucid Chess — Endgame Trainer"}
|
||||
content={assigns[:page_title] || Branding.home_title()}
|
||||
/>
|
||||
<meta
|
||||
:if={assigns[:meta_description]}
|
||||
@@ -33,7 +33,7 @@
|
||||
<meta
|
||||
:if={assigns[:meta_description]}
|
||||
name="twitter:title"
|
||||
content={assigns[:page_title] || "Lucid Chess — Endgame Trainer"}
|
||||
content={assigns[:page_title] || Branding.home_title()}
|
||||
/>
|
||||
<meta
|
||||
:if={assigns[:meta_description]}
|
||||
|
||||
Reference in New Issue
Block a user