feat(tool-page): enlarge upload studio dropzone and balance layout with grain preview
This commit is contained in:
+9
-3
@@ -424,17 +424,23 @@ h1, h2, h3, h4, h5, h6, .text-3d-chiseled {
|
||||
top: 0.75rem;
|
||||
left: 50%;
|
||||
z-index: 100;
|
||||
transform: translate(-50%, -180%);
|
||||
transform: translate(-50%, -200%);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
border-radius: 9999px;
|
||||
background: #0f172a;
|
||||
padding: 0.7rem 1rem;
|
||||
color: #fff;
|
||||
font-size: 0.875rem;
|
||||
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 {
|
||||
color: #1d4ed8;
|
||||
|
||||
@@ -195,9 +195,21 @@ export function HeroSection({
|
||||
|
||||
{/* 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">
|
||||
{/* Column 1: Result-Focused Display Stage (Generative Grain Transform Animation) */}
|
||||
<div className={`lg:col-span-7 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">
|
||||
{/* Column 1: Spacious, Prominent Upload Studio (lg:col-span-7 - Made Bigger!) */}
|
||||
<div className={`lg:col-span-7 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>
|
||||
|
||||
{/* 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
|
||||
beforeUrl={primaryExample.before}
|
||||
afterUrl={primaryExample.after}
|
||||
@@ -218,18 +230,6 @@ export function HeroSection({
|
||||
</button>
|
||||
</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>
|
||||
|
||||
{/* Clean Trust Indicators */}
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user