diff --git a/assets/css/app.css b/assets/css/app.css index 511093a..4c51028 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -102,6 +102,10 @@ .footnotes hr { display: none; } .footnote:before { content: '{'; } .footnote:after { content: '}'; } + + body > header nav a { + @apply text-theme-base px-3 py-2.5 border border-theme-background1 hover:bg-theme-background1 rounded transition font-semibold; + } } @layer utilities { diff --git a/lib/chiya_web/components/core_components.ex b/lib/chiya_web/components/core_components.ex index 5520d24..6df1a54 100644 --- a/lib/chiya_web/components/core_components.ex +++ b/lib/chiya_web/components/core_components.ex @@ -33,8 +33,8 @@ defmodule ChiyaWeb.CoreComponents do def darkmode_toggle(assigns) do ~H""" <.link href="#" id="dark-mode-toggle" class="text-sm leading-6"> - 🌙 - ☀️ + 🌙 + ☀️ """ end diff --git a/lib/chiya_web/components/layouts/root_public.html.heex b/lib/chiya_web/components/layouts/root_public.html.heex index 4030e2e..a60b564 100644 --- a/lib/chiya_web/components/layouts/root_public.html.heex +++ b/lib/chiya_web/components/layouts/root_public.html.heex @@ -39,13 +39,19 @@ @@ -68,8 +74,6 @@ <%= identity.name %> <.dot /> <% end %> - About - <.dot /> Admin
diff --git a/lib/chiya_web/controllers/page_controller.ex b/lib/chiya_web/controllers/page_controller.ex index 322bca5..a2febf9 100644 --- a/lib/chiya_web/controllers/page_controller.ex +++ b/lib/chiya_web/controllers/page_controller.ex @@ -54,4 +54,11 @@ defmodule ChiyaWeb.PageController do ) end end + + ### ========= REDIRECTS + + def about(conn, _params) do + redirect(conn, to: ~p"/note/about") + end + end diff --git a/lib/chiya_web/controllers/page_html/tag.html.heex b/lib/chiya_web/controllers/page_html/tag.html.heex index 14e5abd..6261ed1 100644 --- a/lib/chiya_web/controllers/page_html/tag.html.heex +++ b/lib/chiya_web/controllers/page_html/tag.html.heex @@ -1,5 +1,5 @@ -@@ -7,14 +7,6 @@