Skip to content

Commit d5de20e

Browse files
author
Contre
committed
feat(soulsolid): Style of analyze
1 parent d165be9 commit d5de20e

File tree

6 files changed

+88
-28
lines changed

6 files changed

+88
-28
lines changed

tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = {
1313
"invisible",
1414
"opacity-0",
1515
"backdrop-blur-md",
16+
"backdrop-blur-sm",
1617
"bg-opacity-20",
1718
"border-l-8",
1819
"border-green-500",

views/partials/navbar.html

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,23 @@
124124
hx-push-url="true"
125125
hx-swap="outerHTML"
126126
hx-target="#contenido"
127-
class="sidebtn hover:outline outline-gray-600 dark:outline-none flex items-center px-3 py-1.5 text-base text-gray-500 transition-colors duration-200 transform rounded-md dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-neutral-800 dark:hover:text-gray-300 hover:text-gray-600 dark:focus:bg-neutral-700 dark:focus:text-pink-400 dark:hover:text-pink-400 focus:outline-none cursor-pointer"
127+
class="sidebtn hover:outline outline-gray-600 dark:outline-none flex items-center px-3 py-1.5 text-base text-gray-600 transition-colors duration-200 transform rounded-md dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-neutral-800 dark:hover:text-gray-200 hover:text-gray-700 dark:focus:bg-neutral-700 dark:focus:text-gray-200 dark:hover:text-gray-200 focus:outline-none cursor-pointer"
128128
>
129-
<img src="/svg/mic.svg" class="size-4 dark:invert dark:brightness-200" alt="Lyrics icon">
129+
<svg class="size-4 text-pink-500 dark:text-pink-500" fill="currentColor" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
130+
xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" xml:space="preserve">
131+
<title>Lyrics icon</title>
132+
<g>
133+
<g>
134+
<g>
135+
<path
136+
d="M488.413,118.27c0-31.606-12.309-61.323-34.659-83.671C411.664-7.493,345.498-11.175,299.184,23.53l-7.131-7.131 L268.211,40.24l7.12,7.12c-16.405,21.844-24.698,48.595-23.458,76.141L39.935,351.283l38.815,38.815 c-18.243,21.376-21.458,35.552-24.34,48.289c-2.975,13.143-5.545,24.493-30.822,49.771L47.429,512 c32.17-32.171,36.257-50.232,39.865-66.169c2.247-9.924,4.128-18.212,15.358-31.83l34.416,34.416l227.782-211.94 c1.797,0.081,3.593,0.133,5.382,0.133c25.634,0,50.338-8.262,70.754-23.594l7.124,7.124l23.841-23.841l-7.121-7.121 C480.132,168.825,488.413,144.186,488.413,118.27z M137.911,401.577L86.773,350.44l182.909-196.581l64.81,64.811L137.911,401.577 z M366.302,202.793l-80.745-80.745c-0.818-18.069,4.097-35.659,13.96-50.502l117.286,117.287 C401.963,198.697,384.374,203.609,366.302,202.793z M440.649,164.995L323.369,47.714c32.839-21.755,77.634-18.184,106.543,10.725 c15.982,15.982,24.783,37.231,24.783,59.83C454.695,135.143,449.785,151.259,440.649,164.995z">
137+
</path>
138+
<rect x="191.378" y="260.003" transform="matrix(-0.7071 -0.7071 0.7071 -0.7071 165.2732 622.1811)"
139+
width="40.234" height="33.717"></rect>
140+
</g>
141+
</g>
142+
</g>
143+
</svg>
130144
<span class="mx-2 font-medium">Lyrics</span>
131145
</a>
132146
</button>
@@ -139,10 +153,11 @@
139153
hx-push-url="true"
140154
hx-swap="outerHTML"
141155
hx-target="#contenido"
142-
class="sidebtn hover:outline outline-gray-600 dark:outline-none flex items-center px-3 py-1.5 text-base text-gray-500 transition-colors duration-200 transform rounded-md dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-neutral-800 dark:hover:text-gray-300 hover:text-gray-600 dark:focus:bg-neutral-700 dark:focus:text-green-400 dark:hover:text-green-400 focus:outline-none cursor-pointer"
156+
class="sidebtn hover:outline outline-gray-600 dark:outline-none flex items-center px-3 py-1.5 text-base text-gray-600 transition-colors duration-200 transform rounded-md dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-neutral-800 dark:hover:text-gray-200 hover:text-gray-700 dark:focus:bg-neutral-700 dark:focus:text-gray-200 dark:hover:text-gray-200 focus:outline-none cursor-pointer"
143157
>
144-
<svg class="size-4 text-current" fill="none" stroke="currentColor" viewBox="0 0 24 24">
145-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path>
158+
<svg class="size-4 text-green-500 dark:text-green-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
159+
<title>File Paths icon</title>
160+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path>
146161
</svg>
147162
<span class="mx-2 font-medium">File Paths</span>
148163
</a>
@@ -156,9 +171,14 @@
156171
hx-push-url="true"
157172
hx-swap="outerHTML"
158173
hx-target="#contenido"
159-
class="sidebtn hover:outline outline-gray-600 dark:outline-none flex items-center px-3 py-1.5 text-base text-gray-500 transition-colors duration-200 transform rounded-md dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-neutral-800 dark:hover:text-gray-300 hover:text-gray-600 dark:focus:bg-neutral-700 dark:focus:text-blue-400 dark:hover:text-blue-400 focus:outline-none cursor-pointer"
174+
class="sidebtn hover:outline outline-gray-600 dark:outline-none flex items-center px-3 py-1.5 text-base text-gray-600 transition-colors duration-200 transform rounded-md dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-neutral-800 dark:hover:text-gray-200 hover:text-gray-700 dark:focus:bg-neutral-700 dark:focus:text-gray-200 dark:hover:text-gray-200 focus:outline-none cursor-pointer"
160175
>
161-
<img src="/svg/fingerprint.svg" class="size-4 dark:invert dark:brightness-200" alt="Metadata icon">
176+
<svg class="size-4 text-blue-500 dark:text-blue-500" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
177+
<title>Metadata icon</title>
178+
<path
179+
d="M13.1427 20.9999C10.8077 19.5438 9.25254 16.9522 9.25254 13.9968C9.25254 12.4783 10.4833 11.2476 12.0008 11.2476C13.5184 11.2476 14.7491 12.4783 14.7491 13.9968C14.7491 15.5153 15.9798 16.746 17.4974 16.746C19.0149 16.746 20.2457 15.5153 20.2457 13.9968C20.2457 9.44139 16.5544 5.74922 12.0017 5.74922C7.44907 5.74922 3.75781 9.44139 3.75781 13.9968C3.75781 15.0122 3.87145 16.001 4.08038 16.954M8.49027 20.2989C7.23938 18.5138 6.50351 16.3419 6.50351 13.9968C6.50351 10.9599 8.96405 8.49844 11.9992 8.49844C15.0343 8.49844 17.4948 10.9599 17.4948 13.9968M17.7927 19.4806C17.6937 19.4861 17.5966 19.4953 17.4967 19.4953C14.4616 19.4953 12.0011 17.0338 12.0011 13.9969M19.6734 6.47682C17.7993 4.34802 15.0593 3 12.0004 3C8.94141 3 6.20138 4.34802 4.32734 6.47682"
180+
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
181+
</svg>
162182
<span class="mx-2 font-medium">Metadata</span>
163183
</a>
164184
</button>

views/partials/sidebar.html

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,22 @@
121121
<button type="button" class="w-full">
122122
<a hx-get="/ui/analyze/lyrics" hx-trigger="click" hx-push-url="true" hx-swap="outerHTML"
123123
hx-target="#contenido"
124-
class="sidebtn hover:outline outline-gray-600 dark:outline-none flex items-center px-3 py-1.5 text-base text-gray-500 transition-colors duration-200 transform rounded-md dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-neutral-800 dark:hover:text-gray-300 hover:text-gray-600 dark:focus:bg-neutral-700 dark:focus:text-pink-400 dark:hover:text-pink-400 focus:outline-none cursor-pointer">
125-
<img src="/svg/mic.svg" class="size-4 dark:invert dark:brightness-200" alt="Lyrics icon">
124+
class="sidebtn hover:outline outline-gray-600 dark:outline-none flex items-center px-3 py-1.5 text-base text-gray-600 transition-colors duration-200 transform rounded-md dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-neutral-800 dark:hover:text-gray-200 hover:text-gray-700 dark:focus:bg-neutral-700 dark:focus:text-gray-200 dark:hover:text-gray-200 focus:outline-none cursor-pointer">
125+
<svg class="size-4 text-pink-500 dark:text-pink-500" fill="currentColor" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
126+
xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" xml:space="preserve">
127+
<title>Lyrics icon</title>
128+
<g>
129+
<g>
130+
<g>
131+
<path
132+
d="M488.413,118.27c0-31.606-12.309-61.323-34.659-83.671C411.664-7.493,345.498-11.175,299.184,23.53l-7.131-7.131 L268.211,40.24l7.12,7.12c-16.405,21.844-24.698,48.595-23.458,76.141L39.935,351.283l38.815,38.815 c-18.243,21.376-21.458,35.552-24.34,48.289c-2.975,13.143-5.545,24.493-30.822,49.771L47.429,512 c32.17-32.171,36.257-50.232,39.865-66.169c2.247-9.924,4.128-18.212,15.358-31.83l34.416,34.416l227.782-211.94 c1.797,0.081,3.593,0.133,5.382,0.133c25.634,0,50.338-8.262,70.754-23.594l7.124,7.124l23.841-23.841l-7.121-7.121 C480.132,168.825,488.413,144.186,488.413,118.27z M137.911,401.577L86.773,350.44l182.909-196.581l64.81,64.811L137.911,401.577 z M366.302,202.793l-80.745-80.745c-0.818-18.069,4.097-35.659,13.96-50.502l117.286,117.287 C401.963,198.697,384.374,203.609,366.302,202.793z M440.649,164.995L323.369,47.714c32.839-21.755,77.634-18.184,106.543,10.725 c15.982,15.982,24.783,37.231,24.783,59.83C454.695,135.143,449.785,151.259,440.649,164.995z">
133+
</path>
134+
<rect x="191.378" y="260.003" transform="matrix(-0.7071 -0.7071 0.7071 -0.7071 165.2732 622.1811)"
135+
width="40.234" height="33.717"></rect>
136+
</g>
137+
</g>
138+
</g>
139+
</svg>
126140
<span class="mx-2 font-medium">Lyrics</span>
127141
</a>
128142
</button>
@@ -131,8 +145,9 @@
131145
<button type="button" class="w-full">
132146
<a hx-get="/ui/analyze/files" hx-trigger="click" hx-push-url="true" hx-swap="outerHTML"
133147
hx-target="#contenido"
134-
class="sidebtn hover:outline outline-gray-600 dark:outline-none flex items-center px-3 py-1.5 text-base text-gray-500 transition-colors duration-200 transform rounded-md dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-neutral-800 dark:hover:text-gray-300 hover:text-gray-600 dark:focus:bg-neutral-700 dark:focus:text-green-400 dark:hover:text-green-400 focus:outline-none cursor-pointer">
135-
<svg class="size-4 text-current" fill="none" stroke="currentColor" viewBox="0 0 24 24">
148+
class="sidebtn hover:outline outline-gray-600 dark:outline-none flex items-center px-3 py-1.5 text-base text-gray-600 transition-colors duration-200 transform rounded-md dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-neutral-800 dark:hover:text-gray-200 hover:text-gray-700 dark:focus:bg-neutral-700 dark:focus:text-gray-200 dark:hover:text-gray-200 focus:outline-none cursor-pointer">
149+
<svg class="size-4 text-green-500 dark:text-green-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
150+
<title>File Paths icon</title>
136151
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
137152
d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10">
138153
</path>
@@ -145,8 +160,13 @@
145160
<button type="button" class="w-full">
146161
<a hx-get="/ui/analyze/metadata" hx-trigger="click" hx-push-url="true" hx-swap="outerHTML"
147162
hx-target="#contenido"
148-
class="sidebtn hover:outline outline-gray-600 dark:outline-none flex items-center px-3 py-1.5 text-base text-gray-500 transition-colors duration-200 transform rounded-md dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-neutral-800 dark:hover:text-gray-300 hover:text-gray-600 dark:focus:bg-neutral-700 dark:focus:text-blue-400 dark:hover:text-blue-400 focus:outline-none cursor-pointer">
149-
<img src="/svg/fingerprint.svg" class="size-4 dark:invert dark:brightness-200" alt="Metadata icon">
163+
class="sidebtn hover:outline outline-gray-600 dark:outline-none flex items-center px-3 py-1.5 text-base text-gray-600 transition-colors duration-200 transform rounded-md dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-neutral-800 dark:hover:text-gray-200 hover:text-gray-700 dark:focus:bg-neutral-700 dark:focus:text-gray-200 dark:hover:text-gray-200 focus:outline-none cursor-pointer">
164+
<svg class="size-4 text-blue-500 dark:text-blue-500" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
165+
<title>Metadata icon</title>
166+
<path
167+
d="M13.1427 20.9999C10.8077 19.5438 9.25254 16.9522 9.25254 13.9968C9.25254 12.4783 10.4833 11.2476 12.0008 11.2476C13.5184 11.2476 14.7491 12.4783 14.7491 13.9968C14.7491 15.5153 15.9798 16.746 17.4974 16.746C19.0149 16.746 20.2457 15.5153 20.2457 13.9968C20.2457 9.44139 16.5544 5.74922 12.0017 5.74922C7.44907 5.74922 3.75781 9.44139 3.75781 13.9968C3.75781 15.0122 3.87145 16.001 4.08038 16.954M8.49027 20.2989C7.23938 18.5138 6.50351 16.3419 6.50351 13.9968C6.50351 10.9599 8.96405 8.49844 11.9992 8.49844C15.0343 8.49844 17.4948 10.9599 17.4948 13.9968M17.7927 19.4806C17.6937 19.4861 17.5966 19.4953 17.4967 19.4953C14.4616 19.4953 12.0011 17.0338 12.0011 13.9969M19.6734 6.47682C17.7993 4.34802 15.0593 3 12.0004 3C8.94141 3 6.20138 4.34802 4.32734 6.47682"
168+
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
169+
</svg>
150170
<span class="mx-2 font-medium">Metadata</span>
151171
</a>
152172
</button>

views/sections/analyze_files.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ <h1 class="text-3xl font-bold text-slate-800 dark:text-white mb-8">File Paths</h
33

44
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-4">
55
<!-- File Paths Card -->
6-
<div class="bg-white dark:bg-gray-800 rounded-lg p-6 shadow-lg">
6+
<div class="bg-white/80 dark:bg-gray-900/70 border border-gray-200 dark:border-gray-700 rounded-2xl p-6 shadow-md backdrop-blur-sm transition-all duration-200 hover:bg-white/90 dark:hover:bg-gray-900/80">
77
<div class="flex items-center mb-4">
8-
<svg class="w-8 h-8 mr-3 text-gray-800 dark:text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
8+
<svg class="w-8 h-8 mr-3 text-green-500 dark:text-green-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
99
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path>
1010
</svg>
1111
<h3 class="text-xl font-semibold text-slate-800 dark:text-white">File Paths</h3>
@@ -17,11 +17,11 @@ <h3 class="text-xl font-semibold text-slate-800 dark:text-white">File Paths</h3>
1717
hx-post="/analyze/reorganize"
1818
hx-target="#toast-container"
1919
hx-swap="beforeend"
20-
class="w-full bg-green-500 hover:bg-green-600 text-white font-medium py-2 px-4 rounded-md transition-colors duration-200"
20+
class="w-full border border-green-500 dark:border-green-400 text-green-500 dark:text-green-400 hover:bg-green-50 dark:hover:bg-green-900/30 font-medium py-2 px-4 rounded-md transition-colors duration-200"
2121
>
2222
Start File Paths Reorganization
2323
<span class="htmx-indicator ml-2">
24-
<i class="fas fa-spinner fa-spin"></i>
24+
<i class="fas fa-spinner fa-spin text-green-500 dark:text-green-400"></i>
2525
</span>
2626
</button>
2727
</div>

views/sections/analyze_lyrics.html

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,23 @@ <h1 class="text-3xl font-bold text-slate-800 dark:text-white mb-8">Lyrics Analys
33

44
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-4">
55
<!-- Lyrics Analysis Card -->
6-
<div class="bg-white dark:bg-gray-800 rounded-lg p-6 shadow-lg">
6+
<div class="bg-white/80 dark:bg-gray-900/70 border border-gray-200 dark:border-gray-700 rounded-2xl p-6 shadow-md backdrop-blur-sm transition-all duration-200 hover:bg-white/90 dark:hover:bg-gray-900/80">
77
<div class="flex items-center mb-4">
8-
<img src="/svg/mic.svg" class="w-8 h-8 mr-3" style="filter: invert(67%) sepia(89%) saturate(7493%) hue-rotate(286deg) brightness(101%) contrast(107%);">
8+
<svg class="w-8 h-8 mr-3 text-pink-500 dark:text-pink-400" fill="currentColor" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"
9+
xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" xml:space="preserve">
10+
<title>Lyrics icon</title>
11+
<g>
12+
<g>
13+
<g>
14+
<path
15+
d="M488.413,118.27c0-31.606-12.309-61.323-34.659-83.671C411.664-7.493,345.498-11.175,299.184,23.53l-7.131-7.131 L268.211,40.24l7.12,7.12c-16.405,21.844-24.698,48.595-23.458,76.141L39.935,351.283l38.815,38.815 c-18.243,21.376-21.458,35.552-24.34,48.289c-2.975,13.143-5.545,24.493-30.822,49.771L47.429,512 c32.17-32.171,36.257-50.232,39.865-66.169c2.247-9.924,4.128-18.212,15.358-31.83l34.416,34.416l227.782-211.94 c1.797,0.081,3.593,0.133,5.382,0.133c25.634,0,50.338-8.262,70.754-23.594l7.124,7.124l23.841-23.841l-7.121-7.121 C480.132,168.825,488.413,144.186,488.413,118.27z M137.911,401.577L86.773,350.44l182.909-196.581l64.81,64.811L137.911,401.577 z M366.302,202.793l-80.745-80.745c-0.818-18.069,4.097-35.659,13.96-50.502l117.286,117.287 C401.963,198.697,384.374,203.609,366.302,202.793z M440.649,164.995L323.369,47.714c32.839-21.755,77.634-18.184,106.543,10.725 c15.982,15.982,24.783,37.231,24.783,59.83C454.695,135.143,449.785,151.259,440.649,164.995z">
16+
</path>
17+
<rect x="191.378" y="260.003" transform="matrix(-0.7071 -0.7071 0.7071 -0.7071 165.2732 622.1811)"
18+
width="40.234" height="33.717"></rect>
19+
</g>
20+
</g>
21+
</g>
22+
</svg>
923
<h3 class="text-xl font-semibold text-slate-800 dark:text-white">Lyrics Analysis</h3>
1024
</div>
1125
<p class="text-slate-600 dark:text-slate-400 mb-4">
@@ -31,11 +45,11 @@ <h3 class="text-xl font-semibold text-slate-800 dark:text-white">Lyrics Analysis
3145
</div>
3246
<button
3347
type="submit"
34-
class="w-full bg-pink-500 hover:bg-pink-600 text-white font-medium py-2 px-4 rounded-md transition-colors duration-200"
48+
class="w-full border border-pink-500 dark:border-pink-400 text-pink-500 dark:text-pink-400 hover:bg-pink-50 dark:hover:bg-pink-900/30 font-medium py-2 px-4 rounded-md transition-colors duration-200"
3549
>
3650
Start Lyrics Analysis
3751
<span class="htmx-indicator ml-2">
38-
<i class="fas fa-spinner fa-spin"></i>
52+
<i class="fas fa-spinner fa-spin text-pink-500 dark:text-pink-400"></i>
3953
</span>
4054
</button>
4155
</form>

0 commit comments

Comments
 (0)