diff --git a/assets/css/app.css b/assets/css/app.css index 4d06503..933fef4 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -140,7 +140,7 @@ .footnote:before { content: '{'; } .footnote:after { content: '}'; } - body > header nav a { + a.button { @apply inline-block text-theme-base px-3 py-2.5 border border-theme-background1 hover:bg-theme-background1 rounded transition font-semibold; } } \ No newline at end of file diff --git a/lib/chiya_web/components/core_components.ex b/lib/chiya_web/components/core_components.ex index 0f97b11..50465db 100644 --- a/lib/chiya_web/components/core_components.ex +++ b/lib/chiya_web/components/core_components.ex @@ -30,9 +30,10 @@ defmodule ChiyaWeb.CoreComponents do """ end + attr :class, :string, default: nil def darkmode_toggle(assigns) do ~H""" - <.link href="#" id="dark-mode-toggle" class="text-sm leading-6"> + <.link href="#" id="dark-mode-toggle" class={["text-sm leading-6", @class]}> ☀️ diff --git a/lib/chiya_web/components/layouts/root_public.html.heex b/lib/chiya_web/components/layouts/root_public.html.heex index 89da245..517df70 100644 --- a/lib/chiya_web/components/layouts/root_public.html.heex +++ b/lib/chiya_web/components/layouts/root_public.html.heex @@ -42,30 +42,30 @@ diff --git a/lib/chiya_web/controllers/page_html/home.html.heex b/lib/chiya_web/controllers/page_html/home.html.heex index b83ccc8..0f57a06 100644 --- a/lib/chiya_web/controllers/page_html/home.html.heex +++ b/lib/chiya_web/controllers/page_html/home.html.heex @@ -7,19 +7,13 @@