Skip to content

Commit

Permalink
fix: dark theme on landing
Browse files Browse the repository at this point in the history
  • Loading branch information
ruioliveira02 committed Jan 9, 2025
1 parent 9221f06 commit bc1cec9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion lib/safira_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ defmodule SafiraWeb do

def landing_view do
quote do
use Phoenix.LiveView
use Phoenix.LiveView,
layout: {SafiraWeb.Layouts, :landing}

unquote(html_helpers())
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/safira_web/components/core_components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ defmodule SafiraWeb.CoreComponents do

def label(assigns) do
~H"""
<label for={@for} class="block text-sm font-semibold leading-6">
<label for={@for} class="block text-sm font-semibold leading-6 dark:text-white">
<%= render_slot(@inner_block) %>
</label>
"""
Expand Down
2 changes: 1 addition & 1 deletion lib/safira_web/live/auth/user_registration_live.ex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule SafiraWeb.UserRegistrationLive do
use SafiraWeb, :live_view
use SafiraWeb, :landing_view

alias Safira.Accounts
alias Safira.Accounts.User
Expand Down
2 changes: 1 addition & 1 deletion lib/safira_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule SafiraWeb.Router do
scope "/", SafiraWeb.Landing do
pipe_through :browser

live_session :default, root_layout: {SafiraWeb.Layouts, :landing} do
live_session :default do
live "/", HomeLive.Index, :index
live "/faqs", FAQLive.Index, :index
end
Expand Down

0 comments on commit bc1cec9

Please sign in to comment.