Spaces:
Running
Running
axeronis commited on
Commit ·
d3015bf
1
Parent(s): 39a309c
Optimize landing performance and add interactive demo modal
Browse files- frontend/app/globals.css +8 -3
- frontend/app/page.tsx +145 -1
frontend/app/globals.css
CHANGED
|
@@ -47,19 +47,24 @@ body {
|
|
| 47 |
background: rgba(255, 255, 255, 0.2);
|
| 48 |
}
|
| 49 |
|
| 50 |
-
/* Glassmorphism -
|
| 51 |
.glass {
|
| 52 |
background: var(--glass-bg);
|
| 53 |
backdrop-filter: blur(8px);
|
| 54 |
-webkit-backdrop-filter: blur(8px);
|
| 55 |
border: 1px solid var(--glass-border);
|
|
|
|
|
|
|
| 56 |
}
|
| 57 |
|
| 58 |
.glass-card {
|
| 59 |
background: rgba(255, 255, 255, 0.02);
|
| 60 |
-
backdrop-filter: blur(
|
|
|
|
| 61 |
border: 1px solid rgba(255, 255, 255, 0.05);
|
| 62 |
-
box-shadow: 0
|
|
|
|
|
|
|
| 63 |
}
|
| 64 |
|
| 65 |
/* Text Gradients */
|
|
|
|
| 47 |
background: rgba(255, 255, 255, 0.2);
|
| 48 |
}
|
| 49 |
|
| 50 |
+
/* Glassmorphism - Optimized */
|
| 51 |
.glass {
|
| 52 |
background: var(--glass-bg);
|
| 53 |
backdrop-filter: blur(8px);
|
| 54 |
-webkit-backdrop-filter: blur(8px);
|
| 55 |
border: 1px solid var(--glass-border);
|
| 56 |
+
will-change: transform;
|
| 57 |
+
/* Hint for browser */
|
| 58 |
}
|
| 59 |
|
| 60 |
.glass-card {
|
| 61 |
background: rgba(255, 255, 255, 0.02);
|
| 62 |
+
backdrop-filter: blur(8px);
|
| 63 |
+
/* Reduced from 10px */
|
| 64 |
border: 1px solid rgba(255, 255, 255, 0.05);
|
| 65 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
| 66 |
+
/* Simpler shadow */
|
| 67 |
+
will-change: transform;
|
| 68 |
}
|
| 69 |
|
| 70 |
/* Text Gradients */
|
frontend/app/page.tsx
CHANGED
|
@@ -36,7 +36,9 @@ export default function HomePage() {
|
|
| 36 |
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-indigo-900/20 via-[#020005] to-[#020005] pointer-events-none" />
|
| 37 |
|
| 38 |
<motion.div
|
| 39 |
-
|
|
|
|
|
|
|
| 40 |
className="relative max-w-7xl mx-auto z-10 w-full"
|
| 41 |
>
|
| 42 |
<motion.div
|
|
@@ -426,6 +428,148 @@ export default function HomePage() {
|
|
| 426 |
</div>
|
| 427 |
</div>
|
| 428 |
</footer>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 429 |
</div>
|
| 430 |
)
|
| 431 |
}
|
|
|
|
| 36 |
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-indigo-900/20 via-[#020005] to-[#020005] pointer-events-none" />
|
| 37 |
|
| 38 |
<motion.div
|
| 39 |
+
initial={{ opacity: 0, y: 20 }}
|
| 40 |
+
animate={{ opacity: 1, y: 0 }}
|
| 41 |
+
transition={{ duration: 0.8 }}
|
| 42 |
className="relative max-w-7xl mx-auto z-10 w-full"
|
| 43 |
>
|
| 44 |
<motion.div
|
|
|
|
| 428 |
</div>
|
| 429 |
</div>
|
| 430 |
</footer>
|
| 431 |
+
{/* Demo Modal */}
|
| 432 |
+
<AnimatePresence>
|
| 433 |
+
{showDemo && (
|
| 434 |
+
<motion.div
|
| 435 |
+
initial={{ opacity: 0 }}
|
| 436 |
+
animate={{ opacity: 1 }}
|
| 437 |
+
exit={{ opacity: 0 }}
|
| 438 |
+
className="fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/80 backdrop-blur-sm"
|
| 439 |
+
onClick={() => setShowDemo(false)}
|
| 440 |
+
>
|
| 441 |
+
<motion.div
|
| 442 |
+
initial={{ scale: 0.9, opacity: 0 }}
|
| 443 |
+
animate={{ scale: 1, opacity: 1 }}
|
| 444 |
+
exit={{ scale: 0.9, opacity: 0 }}
|
| 445 |
+
onClick={(e) => e.stopPropagation()}
|
| 446 |
+
className="w-full max-w-4xl bg-[#0F111A] border border-white/10 rounded-2xl overflow-hidden shadow-2xl relative"
|
| 447 |
+
>
|
| 448 |
+
<div className="absolute top-4 right-4 z-10">
|
| 449 |
+
<button
|
| 450 |
+
onClick={() => setShowDemo(false)}
|
| 451 |
+
className="p-2 rounded-full bg-white/5 hover:bg-white/10 text-slate-400 hover:text-white transition-colors"
|
| 452 |
+
>
|
| 453 |
+
<X className="w-5 h-5" />
|
| 454 |
+
</button>
|
| 455 |
+
</div>
|
| 456 |
+
|
| 457 |
+
<div className="grid md:grid-cols-[300px_1fr] h-[600px]">
|
| 458 |
+
{/* Sidebar */}
|
| 459 |
+
<div className="border-r border-white/5 bg-[#0F111A] p-4 hidden md:block">
|
| 460 |
+
<div className="flex items-center gap-2 mb-6 px-2">
|
| 461 |
+
<div className="w-8 h-8 rounded-lg overflow-hidden">
|
| 462 |
+
<img src="/logo.jpg" alt="Logo" className="w-full h-full object-cover" />
|
| 463 |
+
</div>
|
| 464 |
+
<span className="font-bold text-white">MicroFunnel</span>
|
| 465 |
+
</div>
|
| 466 |
+
<div className="space-y-2">
|
| 467 |
+
<div className="p-3 rounded-xl bg-indigo-500/10 border border-indigo-500/20 text-indigo-300 text-sm font-medium flex items-center gap-3">
|
| 468 |
+
<MessageSquare className="w-4 h-4" />
|
| 469 |
+
Активный диалог
|
| 470 |
+
</div>
|
| 471 |
+
<div className="p-3 rounded-xl hover:bg-white/5 text-slate-400 text-sm font-medium flex items-center gap-3 transition-colors cursor-pointer">
|
| 472 |
+
<Users className="w-4 h-4" />
|
| 473 |
+
Все лиды
|
| 474 |
+
</div>
|
| 475 |
+
<div className="p-3 rounded-xl hover:bg-white/5 text-slate-400 text-sm font-medium flex items-center gap-3 transition-colors cursor-pointer">
|
| 476 |
+
<BarChart3 className="w-4 h-4" />
|
| 477 |
+
Аналитика
|
| 478 |
+
</div>
|
| 479 |
+
</div>
|
| 480 |
+
</div>
|
| 481 |
+
|
| 482 |
+
{/* Chat Area */}
|
| 483 |
+
<div className="flex flex-col h-full bg-[#020005]/50 relative">
|
| 484 |
+
{/* Header */}
|
| 485 |
+
<div className="p-4 border-b border-white/5 flex items-center justify-between bg-[#0F111A]/50 backdrop-blur-md">
|
| 486 |
+
<div className="flex items-center gap-3">
|
| 487 |
+
<div className="w-10 h-10 rounded-full bg-gradient-to-br from-blue-500 to-cyan-500 flex items-center justify-center text-white font-bold">
|
| 488 |
+
AL
|
| 489 |
+
</div>
|
| 490 |
+
<div>
|
| 491 |
+
<h3 className="text-white font-medium">Alex Lead</h3>
|
| 492 |
+
<p className="text-xs text-emerald-400 flex items-center gap-1">
|
| 493 |
+
<span className="w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse" />
|
| 494 |
+
Online • LinkedIn
|
| 495 |
+
</p>
|
| 496 |
+
</div>
|
| 497 |
+
</div>
|
| 498 |
+
<div className="flex items-center gap-2">
|
| 499 |
+
<span className="px-2 py-1 rounded-full bg-indigo-500/20 text-indigo-300 text-xs border border-indigo-500/20">
|
| 500 |
+
Qualifying
|
| 501 |
+
</span>
|
| 502 |
+
</div>
|
| 503 |
+
</div>
|
| 504 |
+
|
| 505 |
+
{/* Messages */}
|
| 506 |
+
<div className="flex-1 overflow-y-auto p-6 space-y-6">
|
| 507 |
+
<div className="flex gap-4">
|
| 508 |
+
<div className="w-8 h-8 rounded-full bg-indigo-500/20 flex items-center justify-center border border-indigo-500/30 flex-shrink-0">
|
| 509 |
+
<Bot className="w-4 h-4 text-indigo-400" />
|
| 510 |
+
</div>
|
| 511 |
+
<div className="bg-white/5 border border-white/10 p-4 rounded-2xl rounded-tl-none text-slate-300 text-sm max-w-[80%]">
|
| 512 |
+
Здравствуйте, Алекс! Вижу, вы интересуетесь автоматизацией продаж. Какой объем лидов вы сейчас обрабатываете вручную?
|
| 513 |
+
</div>
|
| 514 |
+
</div>
|
| 515 |
+
|
| 516 |
+
<div className="flex gap-4 flex-row-reverse">
|
| 517 |
+
<div className="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center text-white text-xs font-bold flex-shrink-0">
|
| 518 |
+
AL
|
| 519 |
+
</div>
|
| 520 |
+
<div className="bg-indigo-600 p-4 rounded-2xl rounded-tr-none text-white text-sm max-w-[80%] shadow-lg shadow-indigo-900/20">
|
| 521 |
+
Привет! Около 50-100 в день. Менеджеры не успевают, теряем много клиентов.
|
| 522 |
+
</div>
|
| 523 |
+
</div>
|
| 524 |
+
|
| 525 |
+
<div className="flex gap-4">
|
| 526 |
+
<div className="w-8 h-8 rounded-full bg-indigo-500/20 flex items-center justify-center border border-indigo-500/30 flex-shrink-0">
|
| 527 |
+
<Bot className="w-4 h-4 text-indigo-400" />
|
| 528 |
+
</div>
|
| 529 |
+
<div className="space-y-2 max-w-[80%]">
|
| 530 |
+
<div className="bg-white/5 border border-white/10 p-4 rounded-2xl rounded-tl-none text-slate-300 text-sm">
|
| 531 |
+
Понял, это классическая проблема масштабирования. MicroFunnel может взять на себя первичную квалификацию и отвечать мгновенно.
|
| 532 |
+
<br /><br />
|
| 533 |
+
Хотите посмотреть, как я могу автоматически записать квалифицированного лида на демо?
|
| 534 |
+
</div>
|
| 535 |
+
<div className="flex gap-2">
|
| 536 |
+
<button className="px-4 py-2 rounded-full bg-indigo-500/10 hover:bg-indigo-500/20 border border-indigo-500/20 text-indigo-300 text-xs transition-colors">
|
| 537 |
+
Да, покажи
|
| 538 |
+
</button>
|
| 539 |
+
<button className="px-4 py-2 rounded-full bg-white/5 hover:bg-white/10 border border-white/10 text-slate-400 text-xs transition-colors">
|
| 540 |
+
А что с интеграцией?
|
| 541 |
+
</button>
|
| 542 |
+
</div>
|
| 543 |
+
</div>
|
| 544 |
+
</div>
|
| 545 |
+
</div>
|
| 546 |
+
|
| 547 |
+
{/* Input Area */}
|
| 548 |
+
<div className="p-4 border-t border-white/5 bg-[#0F111A]/50 backdrop-blur-md">
|
| 549 |
+
<div className="relative">
|
| 550 |
+
<input
|
| 551 |
+
type="text"
|
| 552 |
+
placeholder="AI печатает ответ..."
|
| 553 |
+
disabled
|
| 554 |
+
className="w-full bg-white/5 border border-white/10 rounded-xl py-3 px-4 text-slate-300 focus:outline-none focus:border-indigo-500/50 transition-colors pl-10"
|
| 555 |
+
/>
|
| 556 |
+
<Sparkles className="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-indigo-400 animate-pulse" />
|
| 557 |
+
<div className="absolute right-3 top-1/2 -translate-y-1/2">
|
| 558 |
+
<div className="w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center opacity-50 cursor-not-allowed">
|
| 559 |
+
<ArrowRight className="w-4 h-4 text-white" />
|
| 560 |
+
</div>
|
| 561 |
+
</div>
|
| 562 |
+
</div>
|
| 563 |
+
<p className="text-center text-[10px] text-slate-600 mt-3">
|
| 564 |
+
Это интерактивная демо-версия. AI обучается на ваших ответах.
|
| 565 |
+
</p>
|
| 566 |
+
</div>
|
| 567 |
+
</div>
|
| 568 |
+
</div>
|
| 569 |
+
</motion.div>
|
| 570 |
+
</motion.div>
|
| 571 |
+
)}
|
| 572 |
+
</AnimatePresence>
|
| 573 |
</div>
|
| 574 |
)
|
| 575 |
}
|