mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 11:42:07 +00:00
update navbar and footer links
- point Puzzle Search at the endgames list - list the signed-in username after Settings and Log out - replace the footer's landing anchors with privacy and terms links - align the landing-page test with the new footer
This commit is contained in:
@@ -110,7 +110,7 @@ defmodule ChesstrainerWeb.Layouts do
|
||||
|
||||
defp nav_links(scope) do
|
||||
marketing = [
|
||||
%{label: "Puzzle Search", href: "/#puzzles"}
|
||||
%{label: "Puzzle Search", href: "/endgames"}
|
||||
]
|
||||
|
||||
admin =
|
||||
@@ -124,9 +124,9 @@ defmodule ChesstrainerWeb.Layouts do
|
||||
case scope do
|
||||
%{user: %{username: username}} ->
|
||||
[
|
||||
%{label: username, kind: :text},
|
||||
%{label: "Settings", href: ~p"/users/settings"},
|
||||
%{label: "Log out", href: ~p"/users/log-out", method: "delete"}
|
||||
%{label: "Log out", href: ~p"/users/log-out", method: "delete"},
|
||||
%{label: username, kind: :text}
|
||||
]
|
||||
|
||||
_ ->
|
||||
@@ -167,10 +167,8 @@ defmodule ChesstrainerWeb.Layouts do
|
||||
</div>
|
||||
|
||||
<nav class="footer-links" aria-label="Footer">
|
||||
<a href="/#method">Method</a>
|
||||
<a href="/#puzzles">Puzzles</a>
|
||||
<a href="/#progress">Progress</a>
|
||||
<a href={~p"/endgames"}>Endgames</a>
|
||||
<a href="/#privacy">Privacy Policy</a>
|
||||
<a href="/#terms-conditions">Terms & Conditions</a>
|
||||
</nav>
|
||||
|
||||
<small>© {@year} Lucid Chess</small>
|
||||
|
||||
Reference in New Issue
Block a user