feat(tool-page): enlarge upload studio dropzone and balance layout with grain preview

This commit is contained in:
2026-11-04 13:09:44 +05:30
parent 57f73d1cf9
commit de20dd4c7e
3 changed files with 30 additions and 24 deletions
+6 -6
View File
@@ -214,7 +214,7 @@ 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 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 ${
className={`border-2 border-dashed rounded-3xl p-8 sm:p-12 lg:p-16 text-center cursor-pointer transition-all duration-300 min-h-[380px] sm:min-h-[440px] lg:min-h-[460px] flex flex-col items-center justify-center group ${
isDragOver
? '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'
@@ -227,16 +227,16 @@ 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-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 className="w-20 h-20 sm:w-24 sm:h-24 mx-auto mb-6 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-10 h-10 sm:w-12 sm:h-12" />
</div>
<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" />
<div className="inline-flex items-center gap-2.5 px-9 py-4 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 sm:text-base shadow-lg shadow-blue-500/25 group-hover:shadow-xl group-hover:scale-105 active:scale-95 transition-all mb-4">
<UploadCloud className="w-5 h-5" />
<span>Upload Image</span>
</div>
<p className="text-sm sm:text-base font-display font-semibold text-slate-800">
<p className="text-base sm:text-lg 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">