Skip to content

Commit 3f5ec5c

Browse files
✨ Reintroduce theme toggle in navigation bar and enhance styling for improved visibility
1 parent afd3f02 commit 3f5ec5c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

resources/views/components/navigation-bar.blade.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ class="hidden rounded-full bg-gray-200/60 px-2 py-1 text-xs text-gray-600 lg:blo
4444
class="flex items-center gap-3.5 text-sm"
4545
aria-label="Primary navigation"
4646
>
47-
{{-- Theme toggle --}}
48-
<x-theme-toggle />
49-
5047
{{-- Link --}}
5148
<a
5249
href="/"
@@ -62,7 +59,7 @@ class="flex items-center gap-3.5 text-sm"
6259

6360
{{-- Decorative circle --}}
6461
<div
65-
class="hidden size-[3px] rotate-45 rounded-sm bg-gray-400 lg:block"
62+
class="hidden size-[3px] rotate-45 rounded-sm bg-gray-400 transition duration-200 lg:block dark:opacity-60"
6663
aria-hidden="true"
6764
></div>
6865

@@ -80,7 +77,7 @@ class="hidden size-[3px] rotate-45 rounded-sm bg-gray-400 lg:block"
8077
</a>
8178
{{-- Decorative circle --}}
8279
<div
83-
class="hidden size-[3px] rotate-45 rounded-sm bg-gray-400 lg:block"
80+
class="hidden size-[3px] rotate-45 rounded-sm bg-gray-400 transition duration-200 lg:block dark:opacity-60"
8481
aria-hidden="true"
8582
></div>
8683
@if ($hasMenu)
@@ -129,6 +126,9 @@ class="h-6 w-6 text-gray-600"
129126
Docs
130127
</a>
131128
@endif
129+
130+
{{-- Theme toggle --}}
131+
<x-theme-toggle />
132132
</div>
133133
</div>
134134
</div>

resources/views/components/theme-toggle.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div
2-
class="theme-selector relative h-10 w-10 cursor-pointer select-none hover:text-slate-600 dark:text-[#ABB0DD] dark:hover:text-[#bcc1ef]"
2+
class="theme-selector relative -ml-1.5 h-10 w-10 cursor-pointer select-none hover:text-slate-600 dark:opacity-70 dark:hover:text-[#bcc1ef]"
33
x-on:click="darkMode = !darkMode"
44
x-data="{
55
nightToDay: [

0 commit comments

Comments
 (0)