Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

improve working look

Abi Raja8f6e528956d9
diff --git a/frontend/src/components/sidebar/Sidebar.tsx b/frontend/src/components/sidebar/Sidebar.tsx
index 9775e2e3..f88a44d4 100644
--- a/frontend/src/components/sidebar/Sidebar.tsx
+++ b/frontend/src/components/sidebar/Sidebar.tsx
@@ -267,7 +267,7 @@ function Sidebar({
)}
{showWorkingIndicator && (
- <div className="mb-3 rounded-xl border border-violet-200 dark:border-violet-800 bg-gradient-to-r from-violet-50 to-white dark:from-violet-900/20 dark:to-zinc-900 px-3 py-2 transition-all duration-500">
+ <div className="working-indicator-bg mb-3 rounded-xl border border-violet-200 dark:border-violet-800 px-3 py-2 transition-all duration-500">
<div className="flex items-center justify-between">
<div className="flex items-center gap-2 text-sm text-gray-600 dark:text-gray-300">
<WorkingPulse />
diff --git a/frontend/src/index.css b/frontend/src/index.css
index d07f5f65..0d0dee2e 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -155,6 +155,42 @@
animation: searchlight 5.5s linear infinite;
}
+/* Working indicator background motion */
+.working-indicator-bg {
+ background: linear-gradient(
+ 90deg,
+ #f5f3ff 0%,
+ #ffffff 45%,
+ #ede9fe 55%,
+ #ffffff 100%
+ );
+ background-size: 220% 100%;
+ animation: workingGradientSlide 4s ease-in-out infinite;
+}
+
+:is(.dark) .working-indicator-bg {
+ background: linear-gradient(
+ 90deg,
+ rgba(76, 29, 149, 0.2) 0%,
+ rgba(24, 24, 27, 1) 45%,
+ rgba(76, 29, 149, 0.28) 55%,
+ rgba(24, 24, 27, 1) 100%
+ );
+ background-size: 220% 100%;
+}
+
+@keyframes workingGradientSlide {
+ 0% {
+ background-position: 0% 50%;
+ }
+ 50% {
+ background-position: 100% 50%;
+ }
+ 100% {
+ background-position: 0% 50%;
+ }
+}
+
@keyframes searchlight {
0% {
background-position: 140% center;