Spaces:
Running
Running
Update frontend/src/components/ocr/UploadZone.jsx
Browse files
frontend/src/components/ocr/UploadZone.jsx
CHANGED
|
@@ -115,30 +115,30 @@ export default function UploadZone({ onFileSelect, selectedFile, onClear }) {
|
|
| 115 |
initial={{ opacity: 0, scale: 0.95 }}
|
| 116 |
animate={{ opacity: 1, scale: 1 }}
|
| 117 |
exit={{ opacity: 0, scale: 0.95 }}
|
| 118 |
-
className="relative bg-gradient-to-br from-indigo-50 to-violet-50 rounded-
|
| 119 |
>
|
| 120 |
-
<div className="flex items-center gap-
|
| 121 |
-
<div className="h-
|
| 122 |
-
<FileIcon className="h-
|
| 123 |
</div>
|
| 124 |
<div className="flex-1 min-w-0">
|
| 125 |
-
<p className="font-
|
| 126 |
-
<
|
| 127 |
-
{(selectedFile.size / 1024 / 1024).toFixed(2)} MB
|
| 128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
</div>
|
| 130 |
<button
|
| 131 |
onClick={onClear}
|
| 132 |
-
className="h-
|
| 133 |
>
|
| 134 |
<X className="h-4 w-4" />
|
| 135 |
</button>
|
| 136 |
</div>
|
| 137 |
-
|
| 138 |
-
<div className="mt-4 flex items-center gap-2 text-sm">
|
| 139 |
-
<Sparkles className="h-4 w-4 text-indigo-500" />
|
| 140 |
-
<span className="text-indigo-600 font-medium">Ready for AI extraction</span>
|
| 141 |
-
</div>
|
| 142 |
</motion.div>
|
| 143 |
)}
|
| 144 |
</AnimatePresence>
|
|
|
|
| 115 |
initial={{ opacity: 0, scale: 0.95 }}
|
| 116 |
animate={{ opacity: 1, scale: 1 }}
|
| 117 |
exit={{ opacity: 0, scale: 0.95 }}
|
| 118 |
+
className="relative bg-gradient-to-br from-indigo-50 to-violet-50 rounded-xl p-3 border border-indigo-100"
|
| 119 |
>
|
| 120 |
+
<div className="flex items-center gap-3">
|
| 121 |
+
<div className="h-10 w-10 rounded-lg bg-white shadow-sm flex items-center justify-center flex-shrink-0">
|
| 122 |
+
<FileIcon className="h-5 w-5 text-indigo-600" />
|
| 123 |
</div>
|
| 124 |
<div className="flex-1 min-w-0">
|
| 125 |
+
<p className="font-medium text-slate-800 truncate text-sm">{selectedFile.name}</p>
|
| 126 |
+
<div className="flex items-center gap-2 text-xs text-slate-500">
|
| 127 |
+
<span>{(selectedFile.size / 1024 / 1024).toFixed(2)} MB</span>
|
| 128 |
+
<span className="text-indigo-500">•</span>
|
| 129 |
+
<span className="text-indigo-600 flex items-center gap-1">
|
| 130 |
+
<Sparkles className="h-3 w-3" />
|
| 131 |
+
Ready for extraction
|
| 132 |
+
</span>
|
| 133 |
+
</div>
|
| 134 |
</div>
|
| 135 |
<button
|
| 136 |
onClick={onClear}
|
| 137 |
+
className="h-8 w-8 rounded-lg bg-white hover:bg-red-50 border border-slate-200 hover:border-red-200 flex items-center justify-center text-slate-400 hover:text-red-500 transition-colors"
|
| 138 |
>
|
| 139 |
<X className="h-4 w-4" />
|
| 140 |
</button>
|
| 141 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
</motion.div>
|
| 143 |
)}
|
| 144 |
</AnimatePresence>
|