feat: implement management folder architecture, hover-only tool sliders, grain transform animation, and prominent upload studio

This commit is contained in:
2026-11-04 12:28:32 +05:30
parent ad9a3ab000
commit 3cb202399f
56 changed files with 2339 additions and 466 deletions
+9 -9
View File
@@ -196,7 +196,7 @@ export function TryItWidget({
<div className="mt-7">
{status === 'idle' && (
<div className="space-y-6">
{/* Drag & Drop Upload Zone */}
{/* Drag & Drop Upload Zone - Prominent & Spacious */}
<div
onDrop={handleDrop}
onDragOver={(e) => {
@@ -214,10 +214,10 @@ export function TryItWidget({
role="button"
tabIndex={0}
aria-label="Upload photo to edit"
className={`border-2 border-dashed rounded-3xl p-8 sm:p-12 text-center cursor-pointer transition-all duration-300 group ${
className={`border-2 border-dashed rounded-3xl p-8 sm:p-12 lg:p-14 text-center cursor-pointer transition-all duration-300 min-h-[300px] sm:min-h-[340px] flex flex-col items-center justify-center group ${
isDragOver
? 'border-blue-500 bg-blue-50/60 scale-[1.01]'
: 'border-slate-300 hover:border-blue-500 bg-slate-50/50 hover:bg-blue-50/20'
? 'border-blue-500 bg-blue-50/70 scale-[1.01] shadow-lg shadow-blue-500/10'
: 'border-slate-300/90 hover:border-blue-500 bg-gradient-to-b from-blue-50/30 via-white to-slate-50/40 hover:bg-blue-50/20'
}`}
>
<input
@@ -227,20 +227,20 @@ export function TryItWidget({
className="hidden"
onChange={(e) => e.target.files?.[0] && handleFileChange(e.target.files[0])}
/>
<div className="w-16 h-16 sm:w-20 sm:h-20 mx-auto mb-4 rounded-3xl bg-blue-50 border border-blue-100 flex items-center justify-center text-blue-600 group-hover:scale-110 transition-all duration-300 shadow-sm">
<div className="w-16 h-16 sm:w-20 sm:h-20 mx-auto mb-5 rounded-3xl bg-blue-50 border border-blue-200/80 flex items-center justify-center text-blue-600 group-hover:scale-110 group-hover:bg-blue-600 group-hover:text-white transition-all duration-300 shadow-sm">
<UploadCloud className="w-8 h-8 sm:w-10 sm:h-10" />
</div>
<div className="inline-flex items-center gap-2 px-6 py-3 rounded-full bg-blue-600 hover:bg-blue-700 text-white font-semibold text-sm shadow-md shadow-blue-500/20 group-hover:shadow-lg transition-all mb-3">
<div className="inline-flex items-center gap-2.5 px-8 py-3.5 rounded-full bg-gradient-to-r from-blue-600 via-indigo-600 to-blue-700 hover:from-blue-700 hover:to-indigo-800 text-white font-bold text-sm shadow-md shadow-blue-500/25 group-hover:shadow-lg group-hover:scale-105 active:scale-95 transition-all mb-3.5">
<UploadCloud className="w-4 h-4" />
<span>Upload Image</span>
</div>
<p className="text-sm sm:text-base font-display font-medium text-slate-700">
or drag and drop your photo here
<p className="text-sm sm:text-base font-display font-semibold text-slate-800">
or drag and drop your photo anywhere here
</p>
<p className="mt-2 text-xs font-mono text-slate-500">
Supports JPG, PNG, WEBP up to {tool.tryIt?.limits?.maxMB || 12}MB • High-res 4K processing
Supports JPG, PNG, WEBP up to {tool.tryIt?.limits?.maxMB || 12}MB • Lossless 4K processing
</p>
</div>