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
+9 -3
View File
@@ -424,17 +424,23 @@ h1, h2, h3, h4, h5, h6, .text-3d-chiseled {
top: 0.75rem; top: 0.75rem;
left: 50%; left: 50%;
z-index: 100; z-index: 100;
transform: translate(-50%, -180%); transform: translate(-50%, -200%);
opacity: 0;
pointer-events: none;
border-radius: 9999px; border-radius: 9999px;
background: #0f172a; background: #0f172a;
padding: 0.7rem 1rem; padding: 0.7rem 1rem;
color: #fff; color: #fff;
font-size: 0.875rem; font-size: 0.875rem;
font-weight: 700; font-weight: 700;
transition: transform 180ms ease; transition: transform 180ms ease, opacity 180ms ease;
} }
.skip-link:focus { transform: translate(-50%, 0); } .skip-link:focus {
transform: translate(-50%, 0);
opacity: 1;
pointer-events: auto;
}
.eyebrow { .eyebrow {
color: #1d4ed8; color: #1d4ed8;
+15 -15
View File
@@ -195,9 +195,21 @@ export function HeroSection({
{/* Intelligent Side-by-Side Tool Studio */} {/* Intelligent Side-by-Side Tool Studio */}
<div className="grid grid-cols-1 lg:grid-cols-12 gap-8 items-stretch max-w-7xl mx-auto" id="tool-studio"> <div className="grid grid-cols-1 lg:grid-cols-12 gap-8 items-stretch max-w-7xl mx-auto" id="tool-studio">
{/* Column 1: Result-Focused Display Stage (Generative Grain Transform Animation) */} {/* Column 1: Spacious, Prominent Upload Studio (lg:col-span-7 - Made Bigger!) */}
<div className={`lg:col-span-7 flex flex-col ${mobileTab === 'compare' ? 'block' : 'hidden lg:flex'}`}> <div className={`lg:col-span-7 flex flex-col ${mobileTab === 'upload' ? 'block' : 'hidden lg:flex'}`}>
<div className="h-full rounded-3xl overflow-hidden border border-slate-900/[0.1] shadow-cinematic-3d"> <TryItWidget
tool={tool}
homeApp={homeApp}
variants={variants}
locale={locale}
className="h-full flex flex-col justify-between"
onSwitchToCompare={() => setMobileTab('compare')}
/>
</div>
{/* Column 2: Sleeker, Focused Neural Transformation Preview (lg:col-span-5) */}
<div className={`lg:col-span-5 flex flex-col ${mobileTab === 'compare' ? 'block' : 'hidden lg:flex'}`}>
<div className="h-full rounded-3xl overflow-hidden border border-slate-900/[0.1] shadow-cinematic-3d bg-slate-950 flex flex-col justify-between min-h-[380px] sm:min-h-[460px]">
<GrainTransformShowcase <GrainTransformShowcase
beforeUrl={primaryExample.before} beforeUrl={primaryExample.before}
afterUrl={primaryExample.after} afterUrl={primaryExample.after}
@@ -218,18 +230,6 @@ export function HeroSection({
</button> </button>
</div> </div>
</div> </div>
{/* Column 2: Spacious, Prominent Upload Studio */}
<div className={`lg:col-span-5 flex flex-col ${mobileTab === 'upload' ? 'block' : 'hidden lg:flex'}`}>
<TryItWidget
tool={tool}
homeApp={homeApp}
variants={variants}
locale={locale}
className="h-full flex flex-col justify-between"
onSwitchToCompare={() => setMobileTab('compare')}
/>
</div>
</div> </div>
{/* Clean Trust Indicators */} {/* Clean Trust Indicators */}
+6 -6
View File
@@ -214,7 +214,7 @@ export function TryItWidget({
role="button" role="button"
tabIndex={0} tabIndex={0}
aria-label="Upload photo to edit" 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 isDragOver
? 'border-blue-500 bg-blue-50/70 scale-[1.01] shadow-lg shadow-blue-500/10' ? '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' : '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" className="hidden"
onChange={(e) => e.target.files?.[0] && handleFileChange(e.target.files[0])} 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"> <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-8 h-8 sm:w-10 sm:h-10" /> <UploadCloud className="w-10 h-10 sm:w-12 sm:h-12" />
</div> </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"> <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-4 h-4" /> <UploadCloud className="w-5 h-5" />
<span>Upload Image</span> <span>Upload Image</span>
</div> </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 or drag and drop your photo anywhere here
</p> </p>
<p className="mt-2 text-xs font-mono text-slate-500"> <p className="mt-2 text-xs font-mono text-slate-500">