Spaces:
Running
Running
axeronis commited on
Commit ·
2f6cae6
1
Parent(s): bc79a6c
feat: High-fidelity interactive pricing cards and brand cleanup
Browse files- Implemented mouse-follow 3D tilt for PricingCard component
- Removed redundant MicroFunnel labels in features section
- Cleaned up Hero section layout (removed dashboard image)
- Added dual-audio support for Hero and Pricing sections
- Fixed Pricing badge visibility and typography sharpness
- frontend/app/page.tsx +92 -83
frontend/app/page.tsx
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
| 9 |
XCircle, Timer, DollarSign, ShoppingBag, LogIn, Handshake,
|
| 10 |
LayoutDashboard, BarChart3, Play, Square
|
| 11 |
} from 'lucide-react'
|
| 12 |
-
import { motion, AnimatePresence } from 'framer-motion'
|
| 13 |
import { useState, useRef, useEffect } from 'react'
|
| 14 |
import { redirect } from 'next/navigation'
|
| 15 |
|
|
@@ -93,8 +93,8 @@ const T = {
|
|
| 93 |
pain2title: '23:47', pain2desc: 'Время, когда приходят самые горячие заявки. А ваш отдел продаж уже спит.',
|
| 94 |
pain3title: '$0', pain3desc: 'Столько вы заработаете с клиента, которого забыли дожать. AI не забывает никогда.',
|
| 95 |
// Features - value driven
|
| 96 |
-
solutionFound: 'ЭТО НЕ БОТ. ЭТО ПРОДАВЕЦ.', featuresTitle: 'Как MicroFunnel усиливает ваш бизнес', featuresSubtitle: 'Результат, который можно измерить в деньгах',
|
| 97 |
-
playVoice: '▶ Послушать
|
| 98 |
feat1title: 'Деньги на счёт', feat1desc: 'AI ведёт клиента от первого сообщения до оплаты. Без вашего участия, без потери конверсии.',
|
| 99 |
feat2title: 'Умное бронирование', feat2desc: 'AI знает наличие столов, экспертов, квартир или авто. Бронирует ресурсы мгновенно и без ошибок.',
|
| 100 |
feat3title: 'Товар в корзине', feat3desc: 'AI знает ваш каталог наизусть. Рекомендует, сравнивает цены, закрывает возражения.',
|
|
@@ -161,7 +161,89 @@ const T = {
|
|
| 161 |
}
|
| 162 |
}
|
| 163 |
|
| 164 |
-
// ---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
|
| 166 |
export default function HomePage() {
|
| 167 |
const [activeFaq, setActiveFaq] = useState<number | null>(null)
|
|
@@ -179,7 +261,7 @@ export default function HomePage() {
|
|
| 179 |
setIsHeroPlaying(false)
|
| 180 |
} else {
|
| 181 |
if (!heroAudioRef.current) {
|
| 182 |
-
heroAudioRef.current = new Audio('/voice-demos/
|
| 183 |
heroAudioRef.current.onended = () => setIsHeroPlaying(false)
|
| 184 |
}
|
| 185 |
heroAudioRef.current.play()
|
|
@@ -343,8 +425,8 @@ export default function HomePage() {
|
|
| 343 |
{t.heroDesc2}
|
| 344 |
</p>
|
| 345 |
|
| 346 |
-
<div className="flex flex-col gap-4 items-center
|
| 347 |
-
<div className="flex flex-col gap-3 w-full sm:w-auto">
|
| 348 |
<Link
|
| 349 |
href="/register"
|
| 350 |
className="group/btn relative w-full sm:w-auto px-10 py-5 bg-gradient-to-r from-cyan-500 to-emerald-500 rounded-2xl text-white font-black text-lg md:text-xl shadow-[0_0_30px_-5px_rgba(6,182,212,0.4)] hover:shadow-[0_0_40px_-5px_rgba(6,182,212,0.6)] transition-all transform hover:scale-105 active:scale-95 overflow-hidden"
|
|
@@ -375,29 +457,6 @@ export default function HomePage() {
|
|
| 375 |
</div>
|
| 376 |
</div>
|
| 377 |
</motion.div>
|
| 378 |
-
|
| 379 |
-
{/* Hero Visual - Hidden on mobile for cleaner experience */}
|
| 380 |
-
<motion.div
|
| 381 |
-
initial={{ opacity: 0, scale: 0.9 }}
|
| 382 |
-
animate={{ opacity: 1, scale: 1 }}
|
| 383 |
-
transition={{ duration: 1, delay: 0.3 }}
|
| 384 |
-
className="relative hidden lg:flex lg:h-[600px] items-center justify-center lg:-mr-20"
|
| 385 |
-
>
|
| 386 |
-
{/* Back Glow */}
|
| 387 |
-
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full bg-cyan-500/15 blur-[80px] rounded-full pointer-events-none" />
|
| 388 |
-
|
| 389 |
-
<motion.div
|
| 390 |
-
animate={{ y: [0, -15, 0] }}
|
| 391 |
-
transition={{ duration: 5, repeat: Infinity, ease: "easeInOut" }}
|
| 392 |
-
className="relative z-10 w-full"
|
| 393 |
-
>
|
| 394 |
-
<img
|
| 395 |
-
src="/hero-3d.png"
|
| 396 |
-
alt="MicroFunnel AI Dashboard"
|
| 397 |
-
className="w-full max-w-[130%] h-auto object-contain drop-shadow-2xl"
|
| 398 |
-
/>
|
| 399 |
-
</motion.div>
|
| 400 |
-
</motion.div>
|
| 401 |
</div>
|
| 402 |
</section>
|
| 403 |
|
|
@@ -456,10 +515,7 @@ export default function HomePage() {
|
|
| 456 |
<div className="max-w-7xl mx-auto px-6">
|
| 457 |
<div className="text-center mb-20">
|
| 458 |
<div className="text-cyan-500 font-bold mb-4 tracking-wider uppercase text-sm">{t.solutionFound}</div>
|
| 459 |
-
<h2 className="text-4xl md:text-5xl font-black text-white mb-6">
|
| 460 |
-
{t.featuresTitle} <br />
|
| 461 |
-
<span className="text-transparent bg-clip-text bg-gradient-to-r from-cyan-400 to-emerald-400">MicroFunnel</span>
|
| 462 |
-
</h2>
|
| 463 |
<p className="text-slate-400 max-w-2xl mx-auto">
|
| 464 |
{t.featuresSubtitle}
|
| 465 |
</p>
|
|
@@ -673,59 +729,12 @@ export default function HomePage() {
|
|
| 673 |
</div>
|
| 674 |
</div>
|
| 675 |
|
| 676 |
-
<div className="flex flex-nowrap overflow-x-auto md:grid md:grid-cols-3 gap-
|
| 677 |
{PLANS.map((plan, i) => {
|
| 678 |
const monthlyPrice = Math.floor(plan.price * (isYearly ? 0.7 : 1));
|
| 679 |
|
| 680 |
return (
|
| 681 |
-
<
|
| 682 |
-
key={i}
|
| 683 |
-
whileHover={{
|
| 684 |
-
y: 10,
|
| 685 |
-
z: -30,
|
| 686 |
-
rotateX: -5,
|
| 687 |
-
rotateY: i === 0 ? 5 : i === 2 ? -5 : 0,
|
| 688 |
-
transition: { duration: 0.4, ease: "easeOut" }
|
| 689 |
-
}}
|
| 690 |
-
className={`relative flex-shrink-0 w-[310px] md:w-full p-8 rounded-[40px] border flex flex-col items-center text-center transition-all duration-500 backdrop-blur-[20px] ${plan.popular
|
| 691 |
-
? 'bg-white/[0.08] border-purple-500/40 shadow-[0_20px_50px_-10px_rgba(168,85,247,0.3)] z-20 ring-1 ring-purple-500/20'
|
| 692 |
-
: 'bg-white/[0.04] border-white/10 shadow-2xl z-10'
|
| 693 |
-
}`}
|
| 694 |
-
style={{ transformStyle: 'preserve-3d', perspective: '1000px' }}
|
| 695 |
-
>
|
| 696 |
-
{plan.popular && (
|
| 697 |
-
<div className="absolute -top-5 left-1/2 -translate-x-1/2 bg-gradient-to-r from-purple-600 to-indigo-600 px-6 py-1.5 rounded-full text-[10px] md:text-xs font-black uppercase tracking-widest shadow-[0_0_20px_rgba(168,85,247,0.5)] whitespace-nowrap z-30">
|
| 698 |
-
{t.popular}
|
| 699 |
-
</div>
|
| 700 |
-
)}
|
| 701 |
-
<h3 className="text-xl font-bold mb-4">{plan.name}</h3>
|
| 702 |
-
<div className="mb-2">
|
| 703 |
-
<span className="text-5xl font-black">${monthlyPrice}</span>
|
| 704 |
-
<span className="text-slate-500">{t.perMonth}</span>
|
| 705 |
-
</div>
|
| 706 |
-
{isYearly && <div className="text-xs text-emerald-400 mb-6 font-bold">= ${monthlyPrice * 12}{t.perYear}</div>}
|
| 707 |
-
|
| 708 |
-
<div className="w-full h-px bg-white/5 my-6" />
|
| 709 |
-
|
| 710 |
-
<div className="text-2xl font-bold mb-8">{t[plan.limitKey as keyof typeof t]}</div>
|
| 711 |
-
|
| 712 |
-
<div className="space-y-3 mb-8 text-sm text-slate-300">
|
| 713 |
-
<div className="flex items-center gap-2"><Check className="w-4 h-4 text-emerald-400" /> {t.allFeatures}</div>
|
| 714 |
-
<div className="flex items-center gap-2"><Check className="w-4 h-4 text-emerald-400" /> {t.allChannels}</div>
|
| 715 |
-
<div className="flex items-center gap-2"><Check className="w-4 h-4 text-emerald-400" /> {t.builtinCalendar}</div>
|
| 716 |
-
</div>
|
| 717 |
-
|
| 718 |
-
<Link
|
| 719 |
-
href="/register"
|
| 720 |
-
className={`w-full py-4 rounded-2xl font-black transition-all transform active:scale-95 text-center shadow-lg ${plan.popular
|
| 721 |
-
? 'bg-white text-black hover:bg-slate-100 shadow-white/5'
|
| 722 |
-
: 'bg-white/10 text-white hover:bg-white/20'
|
| 723 |
-
}`}
|
| 724 |
-
style={{ transform: 'translateZ(20px)' }}
|
| 725 |
-
>
|
| 726 |
-
{t.choosePlan}
|
| 727 |
-
</Link>
|
| 728 |
-
</motion.div>
|
| 729 |
)
|
| 730 |
})}
|
| 731 |
</div>
|
|
|
|
| 9 |
XCircle, Timer, DollarSign, ShoppingBag, LogIn, Handshake,
|
| 10 |
LayoutDashboard, BarChart3, Play, Square
|
| 11 |
} from 'lucide-react'
|
| 12 |
+
import { motion, AnimatePresence, useMotionValue, useTransform, useSpring } from 'framer-motion'
|
| 13 |
import { useState, useRef, useEffect } from 'react'
|
| 14 |
import { redirect } from 'next/navigation'
|
| 15 |
|
|
|
|
| 93 |
pain2title: '23:47', pain2desc: 'Время, когда приходят самые горячие заявки. А ваш отдел продаж уже спит.',
|
| 94 |
pain3title: '$0', pain3desc: 'Столько вы заработаете с клиента, которого забыли дожать. AI не забывает никогда.',
|
| 95 |
// Features - value driven
|
| 96 |
+
solutionFound: 'ЭТО НЕ БОТ. ЭТО ПРОДАВЕЦ.', featuresTitle: 'Как <span class="text-transparent bg-clip-text bg-gradient-to-r from-cyan-400 to-emerald-400">MicroFunnel</span> усиливает ваш бизнес', featuresSubtitle: 'Результат, который можно измерить в деньгах',
|
| 97 |
+
playVoice: '▶ Послушать (Демо)', stopVoice: '■ Остановить',
|
| 98 |
feat1title: 'Деньги на счёт', feat1desc: 'AI ведёт клиента от первого сообщения до оплаты. Без вашего участия, без потери конверсии.',
|
| 99 |
feat2title: 'Умное бронирование', feat2desc: 'AI знает наличие столов, экспертов, квартир или авто. Бронирует ресурсы мгновенно и без ошибок.',
|
| 100 |
feat3title: 'Товар в корзине', feat3desc: 'AI знает ваш каталог наизусть. Рекомендует, сравнивает цены, закрывает возражения.',
|
|
|
|
| 161 |
}
|
| 162 |
}
|
| 163 |
|
| 164 |
+
// --- SUBSIDIARY COMPONENTS ---
|
| 165 |
+
|
| 166 |
+
const PricingCard = ({ plan, monthlyPrice, isYearly, t, i }: any) => {
|
| 167 |
+
const x = useMotionValue(0)
|
| 168 |
+
const y = useMotionValue(0)
|
| 169 |
+
|
| 170 |
+
const mouseXSpring = useSpring(x)
|
| 171 |
+
const mouseYSpring = useSpring(y)
|
| 172 |
+
|
| 173 |
+
const rotateX = useTransform(mouseYSpring, [-0.5, 0.5], ["10deg", "-10deg"])
|
| 174 |
+
const rotateY = useTransform(mouseXSpring, [-0.5, 0.5], ["-10deg", "10deg"])
|
| 175 |
+
|
| 176 |
+
const handleMouseMove = (e: React.MouseEvent<HTMLDivElement>) => {
|
| 177 |
+
const rect = e.currentTarget.getBoundingClientRect()
|
| 178 |
+
const width = rect.width
|
| 179 |
+
const height = rect.height
|
| 180 |
+
const mouseX = e.clientX - rect.left
|
| 181 |
+
const mouseY = e.clientY - rect.top
|
| 182 |
+
const xPct = mouseX / width - 0.5
|
| 183 |
+
const yPct = mouseY / height - 0.5
|
| 184 |
+
x.set(xPct)
|
| 185 |
+
y.set(yPct)
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
const handleMouseLeave = () => {
|
| 189 |
+
x.set(0)
|
| 190 |
+
y.set(0)
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
return (
|
| 194 |
+
<motion.div
|
| 195 |
+
onMouseMove={handleMouseMove}
|
| 196 |
+
onMouseLeave={handleMouseLeave}
|
| 197 |
+
style={{
|
| 198 |
+
rotateX,
|
| 199 |
+
rotateY,
|
| 200 |
+
transformStyle: "preserve-3d",
|
| 201 |
+
}}
|
| 202 |
+
className={`relative flex-shrink-0 w-[310px] md:w-full p-8 rounded-[40px] border flex flex-col items-center text-center transition-all duration-500 backdrop-blur-[30px] antialiased transform-gpu ${plan.popular
|
| 203 |
+
? 'bg-white/[0.08] border-purple-500/40 shadow-[0_20px_50px_-10px_rgba(168,85,247,0.3)] z-20 ring-1 ring-purple-500/20'
|
| 204 |
+
: 'bg-white/[0.04] border-white/10 shadow-2xl z-10'
|
| 205 |
+
}`}
|
| 206 |
+
>
|
| 207 |
+
{plan.popular && (
|
| 208 |
+
<div
|
| 209 |
+
style={{ transform: "translateZ(50px)" }}
|
| 210 |
+
className="absolute -top-5 left-1/2 -translate-x-1/2 bg-gradient-to-r from-purple-600 to-indigo-600 px-6 py-1.5 rounded-full text-[10px] md:text-xs font-black uppercase tracking-widest shadow-[0_0_20px_rgba(168,85,247,0.5)] whitespace-nowrap z-50"
|
| 211 |
+
>
|
| 212 |
+
{t.popular}
|
| 213 |
+
</div>
|
| 214 |
+
)}
|
| 215 |
+
<h3 style={{ transform: "translateZ(30px)" }} className="text-xl font-bold mb-4">{plan.name}</h3>
|
| 216 |
+
<div style={{ transform: "translateZ(40px)" }} className="mb-2">
|
| 217 |
+
<span className="text-5xl font-black">${monthlyPrice}</span>
|
| 218 |
+
<span className="text-slate-500">{t.perMonth}</span>
|
| 219 |
+
</div>
|
| 220 |
+
{isYearly && <div style={{ transform: "translateZ(30px)" }} className="text-xs text-emerald-400 mb-6 font-bold">= ${monthlyPrice * 12}{t.perYear}</div>}
|
| 221 |
+
|
| 222 |
+
<div className="w-full h-px bg-white/5 my-6" />
|
| 223 |
+
|
| 224 |
+
<div style={{ transform: "translateZ(20px)" }} className="text-2xl font-bold mb-8">{t[plan.limitKey as keyof typeof t]}</div>
|
| 225 |
+
|
| 226 |
+
<div style={{ transform: "translateZ(25px)" }} className="space-y-3 mb-8 text-sm text-slate-300">
|
| 227 |
+
<div className="flex items-center gap-2"><Check className="w-4 h-4 text-emerald-400" /> {t.allFeatures}</div>
|
| 228 |
+
<div className="flex items-center gap-2"><Check className="w-4 h-4 text-emerald-400" /> {t.allChannels}</div>
|
| 229 |
+
<div className="flex items-center gap-2"><Check className="w-4 h-4 text-emerald-400" /> {t.builtinCalendar}</div>
|
| 230 |
+
</div>
|
| 231 |
+
|
| 232 |
+
<Link
|
| 233 |
+
href="/register"
|
| 234 |
+
className={`w-full py-4 rounded-2xl font-black transition-all transform active:scale-95 text-center shadow-lg ${plan.popular
|
| 235 |
+
? 'bg-white text-black hover:bg-slate-100 shadow-white/5'
|
| 236 |
+
: 'bg-white/10 text-white hover:bg-white/20'
|
| 237 |
+
}`}
|
| 238 |
+
style={{ transform: 'translateZ(60px)' }}
|
| 239 |
+
>
|
| 240 |
+
{t.choosePlan}
|
| 241 |
+
</Link>
|
| 242 |
+
</motion.div>
|
| 243 |
+
)
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
// --- MAIN COMPONENT ---
|
| 247 |
|
| 248 |
export default function HomePage() {
|
| 249 |
const [activeFaq, setActiveFaq] = useState<number | null>(null)
|
|
|
|
| 261 |
setIsHeroPlaying(false)
|
| 262 |
} else {
|
| 263 |
if (!heroAudioRef.current) {
|
| 264 |
+
heroAudioRef.current = new Audio('/voice-demos/friendly_male.mp3') // Greeting voice
|
| 265 |
heroAudioRef.current.onended = () => setIsHeroPlaying(false)
|
| 266 |
}
|
| 267 |
heroAudioRef.current.play()
|
|
|
|
| 425 |
{t.heroDesc2}
|
| 426 |
</p>
|
| 427 |
|
| 428 |
+
<div className="flex flex-col gap-4 items-center">
|
| 429 |
+
<div className="flex flex-col gap-3 w-full sm:w-auto items-center">
|
| 430 |
<Link
|
| 431 |
href="/register"
|
| 432 |
className="group/btn relative w-full sm:w-auto px-10 py-5 bg-gradient-to-r from-cyan-500 to-emerald-500 rounded-2xl text-white font-black text-lg md:text-xl shadow-[0_0_30px_-5px_rgba(6,182,212,0.4)] hover:shadow-[0_0_40px_-5px_rgba(6,182,212,0.6)] transition-all transform hover:scale-105 active:scale-95 overflow-hidden"
|
|
|
|
| 457 |
</div>
|
| 458 |
</div>
|
| 459 |
</motion.div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 460 |
</div>
|
| 461 |
</section>
|
| 462 |
|
|
|
|
| 515 |
<div className="max-w-7xl mx-auto px-6">
|
| 516 |
<div className="text-center mb-20">
|
| 517 |
<div className="text-cyan-500 font-bold mb-4 tracking-wider uppercase text-sm">{t.solutionFound}</div>
|
| 518 |
+
<h2 className="text-4xl md:text-5xl font-black text-white mb-6" dangerouslySetInnerHTML={{ __html: t.featuresTitle }} />
|
|
|
|
|
|
|
|
|
|
| 519 |
<p className="text-slate-400 max-w-2xl mx-auto">
|
| 520 |
{t.featuresSubtitle}
|
| 521 |
</p>
|
|
|
|
| 729 |
</div>
|
| 730 |
</div>
|
| 731 |
|
| 732 |
+
<div className="flex flex-nowrap overflow-x-auto md:grid md:grid-cols-3 gap-8 md:gap-12 max-w-6xl mx-auto pb-12 pt-12 scrollbar-hide -mx-4 px-4 md:mx-auto md:px-0 perspective-1000">
|
| 733 |
{PLANS.map((plan, i) => {
|
| 734 |
const monthlyPrice = Math.floor(plan.price * (isYearly ? 0.7 : 1));
|
| 735 |
|
| 736 |
return (
|
| 737 |
+
<PricingCard key={i} plan={plan} monthlyPrice={monthlyPrice} isYearly={isYearly} t={t} i={i} />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 738 |
)
|
| 739 |
})}
|
| 740 |
</div>
|