2025-05-04 15:58:33 +08:00
|
|
|
<div class="flex h-14 w-full items-center gap-2 px-4">
|
|
|
|
|
<button
|
|
|
|
|
type="button"
|
|
|
|
|
aria-label="Hide sidebar"
|
|
|
|
|
data-tooltip="Hide sidebar"
|
|
|
|
|
:data-tooltip="sidebarOpen ? 'Hide sidebar' : 'Show sidebar'"
|
|
|
|
|
data-side="bottom"
|
|
|
|
|
data-align="start"
|
|
|
|
|
class="btn-sm-icon-ghost mr-auto size-7 -ml-1.5"
|
|
|
|
|
x-init
|
|
|
|
|
x-data="{ sidebarOpen: true }"
|
|
|
|
|
@click="
|
|
|
|
|
sidebarOpen = !sidebarOpen;
|
|
|
|
|
$dispatch('sidebar:toggle');
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
{% lucide "panel-left" %}
|
|
|
|
|
</button>
|
2025-05-06 17:30:23 +08:00
|
|
|
<select
|
|
|
|
|
class="select h-8 leading-none"
|
|
|
|
|
x-init
|
|
|
|
|
@change="$store.themeVariant.setThemeVariant($event.target.value)"
|
|
|
|
|
:value="$store.themeVariant.name"
|
|
|
|
|
>
|
|
|
|
|
<option value="">Default</option>
|
|
|
|
|
<option value="claude">Claude</option>
|
|
|
|
|
<option value="doom-64">Doom 64</option>
|
|
|
|
|
<option value="supabase">Supabase</option>
|
2025-05-04 15:58:33 +08:00
|
|
|
</select>
|
|
|
|
|
<button
|
|
|
|
|
type="button"
|
2025-05-06 17:30:23 +08:00
|
|
|
:aria-label="$store.darkMode.isDark ? 'Switch to light mode' : 'Switch to dark mode'"
|
|
|
|
|
:data-tooltip="$store.darkMode.isDark ? 'Light mode' : 'Dark mode'"
|
2025-05-04 15:58:33 +08:00
|
|
|
data-side="bottom"
|
|
|
|
|
class="btn-icon-outline size-8"
|
|
|
|
|
x-init
|
2025-05-06 17:30:23 +08:00
|
|
|
@click="$store.darkMode.toggle()"
|
2025-05-04 15:58:33 +08:00
|
|
|
>
|
2025-05-06 17:30:23 +08:00
|
|
|
<span x-show="$store.darkMode.isDark">{% lucide "sun" %}</span>
|
|
|
|
|
<span x-show="!$store.darkMode.isDark">{% lucide "moon" %}</span>
|
2025-05-04 15:58:33 +08:00
|
|
|
</button>
|
2025-05-09 09:57:37 +08:00
|
|
|
<a
|
2025-05-09 09:57:54 +08:00
|
|
|
href="https://github.com/hunvreus/basecoat"
|
2025-05-09 09:57:37 +08:00
|
|
|
class="btn-icon size-8"
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
|
data-tooltip="GitHub repository"
|
|
|
|
|
data-side="bottom"
|
|
|
|
|
data-align="end"
|
|
|
|
|
>
|
|
|
|
|
{% lucide "github" %}
|
|
|
|
|
</a>
|
2025-05-04 15:58:33 +08:00
|
|
|
</div>
|