Current section
Files
Jump to
Current section
Files
lib/exshome_web/templates/layout/_header.html.heex
<header class="p-4 flex flex-row-reverse justify-between items-center">
<div class="whitespace-nowrap px-2">
<span class="mx-2">Theme:</span>
<select
id="themeSelector"
class="rounded-lg bg-transparent hover:bg-gray-200 dark:hover:bg-gray-800"
onchange="Theme.useTheme(this.options[this.selectedIndex].value)"
phx-hook="ThemeSwitch"
phx-update="ignore"
>
<option value="light">Light 🌞</option>
<option value="dark">Dark 🌛</option>
<option value="system">System 💻</option>
</select>
</div>
<div class="hidden md:block whitespace-nowrap overflow-x-auto">
<%= render("_navigation.html", socket: @socket, live_action: @live_action) %>
</div>
</header>