feat: tool page front screen dedicated upload interface and section 2 transformation results
This commit is contained in:
@@ -138,23 +138,17 @@ export function HeroSection({
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* CTAs */}
|
||||
<div className="mt-8 flex flex-wrap gap-3.5">
|
||||
<a
|
||||
href="#tool-tryit"
|
||||
className="group inline-flex items-center gap-2.5 rounded-full bg-blue-600 px-6 py-3.5 text-sm font-semibold text-white shadow-lg shadow-blue-600/25 transition-all hover:-translate-y-0.5 hover:bg-blue-700 hover:shadow-xl"
|
||||
>
|
||||
<Sparkles className="h-4 w-4" /> Try with your photo <ArrowRight className="h-4 w-4 transition-transform group-hover:translate-x-1" />
|
||||
</a>
|
||||
{homeApp && (
|
||||
{/* App Availability */}
|
||||
{homeApp && (
|
||||
<div className="mt-7">
|
||||
<Link
|
||||
href={`/apps/${homeApp.slug}`}
|
||||
className="inline-flex items-center gap-2 rounded-full border border-slate-300/80 bg-white/80 px-5 py-3.5 text-sm font-semibold text-slate-800 shadow-sm transition-all hover:-translate-y-0.5 hover:border-slate-400 hover:bg-white"
|
||||
className="inline-flex items-center gap-2 rounded-full border border-slate-300/80 bg-white/80 px-5 py-3 text-xs sm:text-sm font-semibold text-slate-800 shadow-sm transition-all hover:-translate-y-0.5 hover:border-slate-400 hover:bg-white"
|
||||
>
|
||||
<Smartphone className="h-4 w-4 text-blue-700" /> {appName} App
|
||||
<Smartphone className="h-4 w-4 text-blue-700" /> Available in {appName} for iOS & Android
|
||||
</Link>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Trust Badges */}
|
||||
<div className="mt-8 flex flex-wrap gap-x-5 gap-y-2 text-xs font-medium text-slate-500">
|
||||
@@ -164,30 +158,11 @@ export function HeroSection({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Right Column: Hero Interactive Transformation Showcase */}
|
||||
<div className="relative min-w-0">
|
||||
<div className="absolute -inset-4 rounded-[2.5rem] bg-gradient-to-br from-blue-300/30 via-amber-200/20 to-indigo-300/30 blur-2xl pointer-events-none" />
|
||||
<div className="relative rounded-[2rem] border border-slate-900/[0.1] bg-white p-2.5 sm:p-3 shadow-cinematic-3d">
|
||||
{example?.before && example?.after ? (
|
||||
<div className="space-y-2.5">
|
||||
<CardBeforeAfterSlider
|
||||
beforeUrl={example.before}
|
||||
afterUrl={example.after}
|
||||
beforeLabel="ORIGINAL"
|
||||
afterLabel="AI RESULT"
|
||||
aspectRatio="aspect-[4/3] sm:aspect-[16/10]"
|
||||
/>
|
||||
{example.caption && (
|
||||
<p className="px-2 py-1 text-center text-xs font-medium text-slate-500">
|
||||
{example.caption}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
) : (
|
||||
<div className="aspect-[16/10] bg-slate-100 rounded-2xl grid place-items-center text-slate-400 text-sm">
|
||||
Interactive transformation preview
|
||||
</div>
|
||||
)}
|
||||
{/* Right Column: Front Screen ONLY Upload Image Option (No before/after) */}
|
||||
<div className="relative min-w-0" id="tool-tryit">
|
||||
<div className="absolute -inset-4 rounded-[2.5rem] bg-gradient-to-br from-blue-200/40 via-white/30 to-amber-100/50 blur-2xl pointer-events-none" />
|
||||
<div className="relative rounded-[2rem] border border-slate-900/[0.1] bg-white p-1 sm:p-2 shadow-cinematic-3d">
|
||||
<TryItWidget tool={tool} homeApp={homeApp} variants={variants} locale={locale} />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user