diff --git a/assets/css/app.css b/assets/css/app.css index 84caef2..3533280 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -58,10 +58,7 @@ a[rel] svg { width: 1em; fill: rgb(var(--color-foreground)); - } - svg { - width: 1.5em; - } + } .alert { @apply p-3 mt-3 rounded; diff --git a/lib/chiya_web/components/admin_components.ex b/lib/chiya_web/components/admin_components.ex index 1d71c48..94b1757 100644 --- a/lib/chiya_web/components/admin_components.ex +++ b/lib/chiya_web/components/admin_components.ex @@ -119,10 +119,7 @@ defmodule ChiyaWeb.AdminComponents do <% end %>
  • - <.link href="#" id="dark-mode-toggle" class="text-sm leading-6"> - 🌙 - - + <.darkmode_toggle />
  • """ diff --git a/lib/chiya_web/components/core_components.ex b/lib/chiya_web/components/core_components.ex index a90874e..605d369 100644 --- a/lib/chiya_web/components/core_components.ex +++ b/lib/chiya_web/components/core_components.ex @@ -30,6 +30,15 @@ defmodule ChiyaWeb.CoreComponents do """ end + def darkmode_toggle(assigns) do + ~H""" + <.link href="#" id="dark-mode-toggle" class="text-sm leading-6"> + + ☀️ + + """ + end + @doc """ Renders a modal. diff --git a/lib/chiya_web/components/layouts/public.html.heex b/lib/chiya_web/components/layouts/public.html.heex index e879404..3d8af17 100644 --- a/lib/chiya_web/components/layouts/public.html.heex +++ b/lib/chiya_web/components/layouts/public.html.heex @@ -1,19 +1,2 @@ -
    -
    -
    - <%= for channel <- @channels do %> - <.link - href={~p"/c/#{channel.slug}"} - class="font-semibold text-theme-base hover:text-theme-base/75 text-sm" - > - <%= channel.name %> - - <% end %> -
    -
    -
    - -
    - <.flash_group flash={@flash} /> - <%= @inner_content %> -
    +<.flash_group flash={@flash} /> +<%= @inner_content %> diff --git a/lib/chiya_web/components/layouts/root_public.html.heex b/lib/chiya_web/components/layouts/root_public.html.heex index e749694..8b0f15e 100644 --- a/lib/chiya_web/components/layouts/root_public.html.heex +++ b/lib/chiya_web/components/layouts/root_public.html.heex @@ -26,24 +26,33 @@ <%= @settings.custom_css %> - - <.admin_bar current_user={@current_user} settings={@settings} /> + +
    + +
    -
    +
    <%= @inner_content %>
    -