switch footer and admin bar text
This commit is contained in:
parent
b01b248d15
commit
805eacdf1e
3 changed files with 6 additions and 7 deletions
|
@ -76,6 +76,7 @@ defmodule ChiyaWeb.AdminComponents do
|
|||
"""
|
||||
|
||||
attr :current_user, :map, required: true
|
||||
attr :settings, :map, required: true
|
||||
|
||||
def admin_bar(assigns) do
|
||||
~H"""
|
||||
|
@ -85,10 +86,7 @@ defmodule ChiyaWeb.AdminComponents do
|
|||
href={~p"/"}
|
||||
class="flex gap-3 text-sm leading-6 font-semibold text-gray-900 dark:text-gray-100 dark:hover:text-gray-300 hover:text-gray-700"
|
||||
>
|
||||
<span>Chiya</span>
|
||||
<p class="rounded-full bg-theme-primary/10 px-2 text-[0.8125rem] font-medium leading-6 text-theme-primary">
|
||||
v<%= Application.spec(:chiya, :vsn) %>
|
||||
</p>
|
||||
<%= @settings.title %>
|
||||
</.link>
|
||||
</li>
|
||||
<li class="flex-1"></li>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
</script>
|
||||
</head>
|
||||
<body class="bg-gray-200 dark:bg-gray-900 antialiased">
|
||||
<.admin_bar current_user={@current_user} />
|
||||
<.admin_bar current_user={@current_user} settings={@settings} />
|
||||
<%= @inner_content %>
|
||||
<div id="react-root"></div>
|
||||
</body>
|
||||
|
|
|
@ -25,14 +25,15 @@
|
|||
</style>
|
||||
</head>
|
||||
<body class="bg-theme-background antialiased min-h-screen flex flex-col">
|
||||
<.admin_bar current_user={@current_user} />
|
||||
<.admin_bar current_user={@current_user} settings={@settings} />
|
||||
|
||||
<main class="flex-1">
|
||||
<%= @inner_content %>
|
||||
</main>
|
||||
|
||||
<footer class="px-4 py-1 sm:px-6 lg:px-8 bg-white/30 dark:bg-black/30 text-gray-900 dark:text-gray-100 text-xs leading-6 font-semibold">
|
||||
<span class="text-theme-primary">⌘</span> <span><%= @settings.title %></span>
|
||||
<span class="text-theme-primary">⌘</span> <span>Chiya</span> <span class="rounded-full bg-theme-primary/10 px-2 text-xs font-medium leading-6 text-theme-primary">
|
||||
v<%= Application.spec(:chiya, :vsn) %></span>
|
||||
</footer>
|
||||
|
||||
<%= raw(@settings.custom_html) %>
|
||||
|
|
Loading…
Reference in a new issue