Spaces:
Sleeping
Sleeping
axeronis commited on
Commit ·
45227d3
1
Parent(s): 3a87a8c
Refine Landing Page (LinkedIn, Scroll, Logo) & Redesign Auth Pages (Deep Space Dark)
Browse files- frontend/app/login/page.tsx +88 -75
- frontend/app/page.tsx +8 -7
- frontend/app/register/page.tsx +184 -176
frontend/app/login/page.tsx
CHANGED
|
@@ -3,8 +3,7 @@
|
|
| 3 |
import { useState } from 'react'
|
| 4 |
import { useAuth } from '@/contexts/AuthContext'
|
| 5 |
import Link from 'next/link'
|
| 6 |
-
import { Mail, Lock, Loader2 } from 'lucide-react'
|
| 7 |
-
import { MicroFunnelLogo } from '@/components/icons/MicroFunnelLogo'
|
| 8 |
|
| 9 |
export default function LoginPage() {
|
| 10 |
const { login, isLoading: authLoading } = useAuth()
|
|
@@ -29,83 +28,97 @@ export default function LoginPage() {
|
|
| 29 |
|
| 30 |
if (authLoading) {
|
| 31 |
return (
|
| 32 |
-
<div className="min-h-screen flex items-center justify-center bg-
|
| 33 |
-
<Loader2 className="w-8 h-8 animate-spin text-indigo-
|
| 34 |
</div>
|
| 35 |
)
|
| 36 |
}
|
| 37 |
|
| 38 |
return (
|
| 39 |
-
<div className="min-h-screen flex">
|
|
|
|
|
|
|
| 40 |
{/* Left Side - Branding */}
|
| 41 |
-
<div className="hidden lg:flex lg:w-1/2
|
| 42 |
-
{/*
|
| 43 |
-
<div className="absolute
|
| 44 |
-
|
| 45 |
-
<
|
| 46 |
-
|
| 47 |
-
{/* Gradient orbs */}
|
| 48 |
-
<div className="absolute top-20 -left-20 w-72 h-72 bg-indigo-500/20 rounded-full blur-3xl animate-pulse" />
|
| 49 |
-
<div className="absolute bottom-20 -right-20 w-96 h-96 bg-purple-500/20 rounded-full blur-3xl animate-pulse" style={{ animationDelay: '1s' }} />
|
| 50 |
-
|
| 51 |
{/* Logo */}
|
| 52 |
<div className="relative z-10">
|
| 53 |
-
<Link href="/" className="flex items-center gap-3">
|
| 54 |
-
<
|
|
|
|
|
|
|
| 55 |
<div>
|
| 56 |
-
<h1 className="text-
|
| 57 |
MicroFunnel
|
| 58 |
</h1>
|
| 59 |
-
<p className="text-indigo-300 text-
|
| 60 |
</div>
|
| 61 |
</Link>
|
| 62 |
</div>
|
| 63 |
|
| 64 |
-
{/* Testimonial */}
|
| 65 |
-
<div className="
|
| 66 |
-
<div className="
|
| 67 |
-
<div className="
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
</div>
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
<div className="flex items-center gap-3">
|
| 76 |
-
<div className="w-10 h-10 rounded-full bg-gradient-to-br from-indigo-400 to-purple-500 animate-pulse" style={{ animationDuration: '3s' }} />
|
| 77 |
<div>
|
| 78 |
-
<p className="text-sm font-
|
| 79 |
-
<p className="text-xs text-slate-400">
|
| 80 |
</div>
|
| 81 |
</div>
|
| 82 |
</div>
|
| 83 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
</div>
|
| 85 |
|
| 86 |
{/* Right Side - Form */}
|
| 87 |
-
<div className="flex-1 flex items-center justify-center
|
| 88 |
<div className="max-w-md w-full space-y-8">
|
| 89 |
{/* Header */}
|
| 90 |
-
<div>
|
| 91 |
-
<h2 className="text-
|
| 92 |
-
|
| 93 |
</h2>
|
| 94 |
-
<p className="
|
| 95 |
-
В
|
| 96 |
</p>
|
| 97 |
</div>
|
| 98 |
|
| 99 |
{/* Error Alert */}
|
| 100 |
{error && (
|
| 101 |
-
<div className="rounded-xl bg-red-
|
| 102 |
<div className="flex items-center gap-3">
|
| 103 |
<div className="flex-shrink-0">
|
| 104 |
-
<svg className="w-5 h-5 text-red-
|
| 105 |
<path fillRule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clipRule="evenodd" />
|
| 106 |
</svg>
|
| 107 |
</div>
|
| 108 |
-
<p className="text-sm text-red-
|
| 109 |
</div>
|
| 110 |
</div>
|
| 111 |
)}
|
|
@@ -114,11 +127,13 @@ export default function LoginPage() {
|
|
| 114 |
<form onSubmit={handleSubmit} className="space-y-6">
|
| 115 |
{/* Email */}
|
| 116 |
<div>
|
| 117 |
-
<label htmlFor="email" className="block text-sm font-
|
| 118 |
-
|
| 119 |
</label>
|
| 120 |
-
<div className="relative">
|
| 121 |
-
<
|
|
|
|
|
|
|
| 122 |
<input
|
| 123 |
id="email"
|
| 124 |
name="email"
|
|
@@ -128,19 +143,29 @@ export default function LoginPage() {
|
|
| 128 |
value={email}
|
| 129 |
onChange={(e) => setEmail(e.target.value)}
|
| 130 |
disabled={isLoading}
|
| 131 |
-
className="w-full
|
| 132 |
-
placeholder="
|
| 133 |
/>
|
| 134 |
</div>
|
| 135 |
</div>
|
| 136 |
|
| 137 |
{/* Password */}
|
| 138 |
<div>
|
| 139 |
-
<
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
<input
|
| 145 |
id="password"
|
| 146 |
name="password"
|
|
@@ -150,7 +175,7 @@ export default function LoginPage() {
|
|
| 150 |
value={password}
|
| 151 |
onChange={(e) => setPassword(e.target.value)}
|
| 152 |
disabled={isLoading}
|
| 153 |
-
className="w-full
|
| 154 |
placeholder="••••••••"
|
| 155 |
/>
|
| 156 |
</div>
|
|
@@ -160,39 +185,27 @@ export default function LoginPage() {
|
|
| 160 |
<button
|
| 161 |
type="submit"
|
| 162 |
disabled={isLoading}
|
| 163 |
-
className="w-full
|
| 164 |
>
|
| 165 |
{isLoading ? (
|
| 166 |
-
<>
|
| 167 |
-
<svg className="animate-spin h-5 w-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
| 168 |
-
<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4"></circle>
|
| 169 |
-
<path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
| 170 |
-
</svg>
|
| 171 |
-
Вход в систему...
|
| 172 |
-
</>
|
| 173 |
) : (
|
| 174 |
-
|
|
|
|
|
|
|
| 175 |
)}
|
| 176 |
</button>
|
| 177 |
</form>
|
| 178 |
|
| 179 |
{/* Footer */}
|
| 180 |
-
<div className="text-center
|
| 181 |
-
<p className="text-sm text-slate-
|
| 182 |
Нет аккаунта?{' '}
|
| 183 |
<Link
|
| 184 |
href="/register"
|
| 185 |
-
className="font-
|
| 186 |
-
>
|
| 187 |
-
Зарегистрироваться
|
| 188 |
-
</Link>
|
| 189 |
-
</p>
|
| 190 |
-
<p className="text-sm">
|
| 191 |
-
<Link
|
| 192 |
-
href="#"
|
| 193 |
-
className="text-slate-500 hover:text-indigo-600 hover:underline transition-colors"
|
| 194 |
>
|
| 195 |
-
|
| 196 |
</Link>
|
| 197 |
</p>
|
| 198 |
</div>
|
|
|
|
| 3 |
import { useState } from 'react'
|
| 4 |
import { useAuth } from '@/contexts/AuthContext'
|
| 5 |
import Link from 'next/link'
|
| 6 |
+
import { Mail, Lock, Loader2, Hexagon, ArrowRight, Sparkles } from 'lucide-react'
|
|
|
|
| 7 |
|
| 8 |
export default function LoginPage() {
|
| 9 |
const { login, isLoading: authLoading } = useAuth()
|
|
|
|
| 28 |
|
| 29 |
if (authLoading) {
|
| 30 |
return (
|
| 31 |
+
<div className="min-h-screen flex items-center justify-center bg-[#030014]">
|
| 32 |
+
<Loader2 className="w-8 h-8 animate-spin text-indigo-500" />
|
| 33 |
</div>
|
| 34 |
)
|
| 35 |
}
|
| 36 |
|
| 37 |
return (
|
| 38 |
+
<div className="min-h-screen flex bg-[#030014] font-['Inter'] overflow-hidden">
|
| 39 |
+
<div className="bg-noise" />
|
| 40 |
+
|
| 41 |
{/* Left Side - Branding */}
|
| 42 |
+
<div className="hidden lg:flex lg:w-1/2 relative flex-col justify-between p-12 overflow-hidden border-r border-white/5">
|
| 43 |
+
{/* Background Effects */}
|
| 44 |
+
<div className="absolute top-0 left-0 w-full h-full bg-indigo-900/10" />
|
| 45 |
+
<div className="absolute top-[-20%] left-[-20%] w-[800px] h-[800px] bg-indigo-600/20 blur-[120px] rounded-full opacity-40 pointer-events-none" />
|
| 46 |
+
<div className="absolute bottom-[-20%] right-[-20%] w-[800px] h-[800px] bg-purple-600/10 blur-[120px] rounded-full opacity-30 pointer-events-none" />
|
| 47 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
{/* Logo */}
|
| 49 |
<div className="relative z-10">
|
| 50 |
+
<Link href="/" className="flex items-center gap-3 group">
|
| 51 |
+
<div className="w-10 h-10 bg-indigo-500/10 border border-indigo-500/20 rounded-xl flex items-center justify-center group-hover:border-indigo-500/50 transition-colors">
|
| 52 |
+
<Hexagon className="w-6 h-6 text-indigo-400 fill-current" />
|
| 53 |
+
</div>
|
| 54 |
<div>
|
| 55 |
+
<h1 className="text-2xl font-bold text-white tracking-tight">
|
| 56 |
MicroFunnel
|
| 57 |
</h1>
|
| 58 |
+
<p className="text-indigo-300/60 text-xs font-medium tracking-wide uppercase">AI Sales Platform</p>
|
| 59 |
</div>
|
| 60 |
</Link>
|
| 61 |
</div>
|
| 62 |
|
| 63 |
+
{/* Testimonial Card */}
|
| 64 |
+
<div className="relative z-10 max-w-lg">
|
| 65 |
+
<div className="glass-card rounded-3xl p-8 relative overflow-hidden group hover:border-indigo-500/30 transition-all duration-500">
|
| 66 |
+
<div className="absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-indigo-500 to-purple-500 opacity-50" />
|
| 67 |
+
|
| 68 |
+
<div className="flex items-start gap-4 mb-6">
|
| 69 |
+
<div className="p-3 bg-indigo-500/10 rounded-xl border border-indigo-500/20">
|
| 70 |
+
<Sparkles className="w-6 h-6 text-indigo-400" />
|
| 71 |
+
</div>
|
| 72 |
+
<div>
|
| 73 |
+
<div className="flex gap-1 mb-2">
|
| 74 |
+
{[1, 2, 3, 4, 5].map(i => (
|
| 75 |
+
<div key={i} className="w-4 h-4 text-amber-400 fill-current">★</div>
|
| 76 |
+
))}
|
| 77 |
+
</div>
|
| 78 |
+
<p className="text-lg text-slate-200 leading-relaxed font-light">
|
| 79 |
+
"MicroFunnel полностью автоматизиро��ал нашу квалификацию лидов. Мы сократили время ответа с 2 часов до 3 секунд."
|
| 80 |
+
</p>
|
| 81 |
+
</div>
|
| 82 |
</div>
|
| 83 |
+
|
| 84 |
+
<div className="flex items-center gap-4 pt-6 border-t border-white/5">
|
| 85 |
+
<div className="w-10 h-10 rounded-full bg-gradient-to-br from-indigo-400 to-purple-500" />
|
|
|
|
|
|
|
| 86 |
<div>
|
| 87 |
+
<p className="text-sm font-bold text-white">Александр Волков</p>
|
| 88 |
+
<p className="text-xs text-slate-400">CEO, TechFlow Inc.</p>
|
| 89 |
</div>
|
| 90 |
</div>
|
| 91 |
</div>
|
| 92 |
</div>
|
| 93 |
+
|
| 94 |
+
<div className="relative z-10 text-xs text-slate-500">
|
| 95 |
+
© 2025 MicroFunnel Inc. All rights reserved.
|
| 96 |
+
</div>
|
| 97 |
</div>
|
| 98 |
|
| 99 |
{/* Right Side - Form */}
|
| 100 |
+
<div className="flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 relative z-10">
|
| 101 |
<div className="max-w-md w-full space-y-8">
|
| 102 |
{/* Header */}
|
| 103 |
+
<div className="text-center lg:text-left">
|
| 104 |
+
<h2 className="text-3xl font-bold text-white tracking-tight mb-2">
|
| 105 |
+
С возвращением
|
| 106 |
</h2>
|
| 107 |
+
<p className="text-slate-400">
|
| 108 |
+
Войдите в свой аккаунт для управления продажами
|
| 109 |
</p>
|
| 110 |
</div>
|
| 111 |
|
| 112 |
{/* Error Alert */}
|
| 113 |
{error && (
|
| 114 |
+
<div className="rounded-xl bg-red-500/10 border border-red-500/20 p-4 animate-shake">
|
| 115 |
<div className="flex items-center gap-3">
|
| 116 |
<div className="flex-shrink-0">
|
| 117 |
+
<svg className="w-5 h-5 text-red-400" fill="currentColor" viewBox="0 0 20 20">
|
| 118 |
<path fillRule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clipRule="evenodd" />
|
| 119 |
</svg>
|
| 120 |
</div>
|
| 121 |
+
<p className="text-sm text-red-400 font-medium">{error}</p>
|
| 122 |
</div>
|
| 123 |
</div>
|
| 124 |
)}
|
|
|
|
| 127 |
<form onSubmit={handleSubmit} className="space-y-6">
|
| 128 |
{/* Email */}
|
| 129 |
<div>
|
| 130 |
+
<label htmlFor="email" className="block text-sm font-medium text-slate-300 mb-2">
|
| 131 |
+
Email
|
| 132 |
</label>
|
| 133 |
+
<div className="relative group">
|
| 134 |
+
<div className="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 135 |
+
<Mail className="h-5 w-5 text-slate-500 group-focus-within:text-indigo-400 transition-colors" />
|
| 136 |
+
</div>
|
| 137 |
<input
|
| 138 |
id="email"
|
| 139 |
name="email"
|
|
|
|
| 143 |
value={email}
|
| 144 |
onChange={(e) => setEmail(e.target.value)}
|
| 145 |
disabled={isLoading}
|
| 146 |
+
className="block w-full pl-10 pr-3 py-3 border border-white/10 rounded-xl leading-5 bg-white/5 text-slate-200 placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500/50 sm:text-sm transition-all hover:bg-white/10"
|
| 147 |
+
placeholder="name@company.com"
|
| 148 |
/>
|
| 149 |
</div>
|
| 150 |
</div>
|
| 151 |
|
| 152 |
{/* Password */}
|
| 153 |
<div>
|
| 154 |
+
<div className="flex items-center justify-between mb-2">
|
| 155 |
+
<label htmlFor="password" className="block text-sm font-medium text-slate-300">
|
| 156 |
+
Пароль
|
| 157 |
+
</label>
|
| 158 |
+
<Link
|
| 159 |
+
href="#"
|
| 160 |
+
className="text-xs font-medium text-indigo-400 hover:text-indigo-300 transition-colors"
|
| 161 |
+
>
|
| 162 |
+
Забыли пароль?
|
| 163 |
+
</Link>
|
| 164 |
+
</div>
|
| 165 |
+
<div className="relative group">
|
| 166 |
+
<div className="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 167 |
+
<Lock className="h-5 w-5 text-slate-500 group-focus-within:text-indigo-400 transition-colors" />
|
| 168 |
+
</div>
|
| 169 |
<input
|
| 170 |
id="password"
|
| 171 |
name="password"
|
|
|
|
| 175 |
value={password}
|
| 176 |
onChange={(e) => setPassword(e.target.value)}
|
| 177 |
disabled={isLoading}
|
| 178 |
+
className="block w-full pl-10 pr-3 py-3 border border-white/10 rounded-xl leading-5 bg-white/5 text-slate-200 placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500/50 sm:text-sm transition-all hover:bg-white/10"
|
| 179 |
placeholder="••••••••"
|
| 180 |
/>
|
| 181 |
</div>
|
|
|
|
| 185 |
<button
|
| 186 |
type="submit"
|
| 187 |
disabled={isLoading}
|
| 188 |
+
className="w-full flex justify-center py-3 px-4 border border-transparent rounded-xl shadow-lg shadow-indigo-500/20 text-sm font-bold text-white bg-indigo-600 hover:bg-indigo-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 focus:ring-offset-[#030014] disabled:opacity-50 disabled:cursor-not-allowed transition-all hover:scale-[1.02] active:scale-[0.98]"
|
| 189 |
>
|
| 190 |
{isLoading ? (
|
| 191 |
+
<Loader2 className="w-5 h-5 animate-spin" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
) : (
|
| 193 |
+
<span className="flex items-center gap-2">
|
| 194 |
+
Войти <ArrowRight className="w-4 h-4" />
|
| 195 |
+
</span>
|
| 196 |
)}
|
| 197 |
</button>
|
| 198 |
</form>
|
| 199 |
|
| 200 |
{/* Footer */}
|
| 201 |
+
<div className="text-center">
|
| 202 |
+
<p className="text-sm text-slate-500">
|
| 203 |
Нет аккаунта?{' '}
|
| 204 |
<Link
|
| 205 |
href="/register"
|
| 206 |
+
className="font-medium text-indigo-400 hover:text-indigo-300 transition-colors"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 207 |
>
|
| 208 |
+
Создать бесплатно
|
| 209 |
</Link>
|
| 210 |
</p>
|
| 211 |
</div>
|
frontend/app/page.tsx
CHANGED
|
@@ -7,7 +7,7 @@ import { Navbar } from '@/components/landing/Navbar'
|
|
| 7 |
import {
|
| 8 |
MessageSquare, Sparkles, Target, Users, ChevronDown, Play, Check, X,
|
| 9 |
Brain, DollarSign, TrendingDown, ArrowRight, Zap, Shield, Globe,
|
| 10 |
-
Cpu, BarChart3, Lock, Smartphone, Bot
|
| 11 |
} from 'lucide-react'
|
| 12 |
import { cn } from '@/lib/utils'
|
| 13 |
|
|
@@ -15,8 +15,9 @@ export default function HomePage() {
|
|
| 15 |
const [openFaq, setOpenFaq] = useState<number | null>(null)
|
| 16 |
const [showDemo, setShowDemo] = useState(false)
|
| 17 |
const { scrollY } = useScroll()
|
| 18 |
-
|
| 19 |
-
const
|
|
|
|
| 20 |
|
| 21 |
const fadeInUp: Variants = {
|
| 22 |
hidden: { opacity: 0, y: 30 },
|
|
@@ -67,7 +68,7 @@ export default function HomePage() {
|
|
| 67 |
|
| 68 |
{/* Subtitle */}
|
| 69 |
<motion.p variants={fadeInUp} className="text-xl md:text-2xl text-slate-400 mb-12 max-w-2xl mx-auto leading-relaxed font-light">
|
| 70 |
-
Цифровой сотрудник для Telegram и
|
| 71 |
Квалифицирует лидов, ведет переговоры и закрывает сделки 24/7.
|
| 72 |
</motion.p>
|
| 73 |
|
|
@@ -137,7 +138,7 @@ export default function HomePage() {
|
|
| 137 |
</div>
|
| 138 |
<div className="space-y-2">
|
| 139 |
<div className="bg-indigo-600 p-4 rounded-2xl rounded-tr-none text-white shadow-lg shadow-indigo-900/20">
|
| 140 |
-
У нас много заявок в
|
| 141 |
</div>
|
| 142 |
</div>
|
| 143 |
</div>
|
|
@@ -249,7 +250,7 @@ export default function HomePage() {
|
|
| 249 |
</div>
|
| 250 |
<h3 className="text-2xl font-bold text-white mb-4">Омниканальность 360°</h3>
|
| 251 |
<p className="text-slate-400 text-lg max-w-xl">
|
| 252 |
-
Единый центр управления диалогами. Подключите Telegram, WhatsApp и
|
| 253 |
AI помнит контекст общения во всех каналах.
|
| 254 |
</p>
|
| 255 |
</div>
|
|
@@ -382,7 +383,7 @@ export default function HomePage() {
|
|
| 382 |
<div className="md:col-span-2">
|
| 383 |
<div className="flex items-center gap-2 mb-6">
|
| 384 |
<div className="w-8 h-8 bg-indigo-500 rounded-lg flex items-center justify-center">
|
| 385 |
-
<
|
| 386 |
</div>
|
| 387 |
<span className="text-white font-bold text-xl tracking-tight">MicroFunnel</span>
|
| 388 |
</div>
|
|
|
|
| 7 |
import {
|
| 8 |
MessageSquare, Sparkles, Target, Users, ChevronDown, Play, Check, X,
|
| 9 |
Brain, DollarSign, TrendingDown, ArrowRight, Zap, Shield, Globe,
|
| 10 |
+
Cpu, BarChart3, Lock, Smartphone, Bot, Linkedin, Hexagon
|
| 11 |
} from 'lucide-react'
|
| 12 |
import { cn } from '@/lib/utils'
|
| 13 |
|
|
|
|
| 15 |
const [openFaq, setOpenFaq] = useState<number | null>(null)
|
| 16 |
const [showDemo, setShowDemo] = useState(false)
|
| 17 |
const { scrollY } = useScroll()
|
| 18 |
+
// Smoother fade out - extends to 800px
|
| 19 |
+
const heroOpacity = useTransform(scrollY, [0, 800], [1, 0])
|
| 20 |
+
const heroY = useTransform(scrollY, [0, 800], [0, 100])
|
| 21 |
|
| 22 |
const fadeInUp: Variants = {
|
| 23 |
hidden: { opacity: 0, y: 30 },
|
|
|
|
| 68 |
|
| 69 |
{/* Subtitle */}
|
| 70 |
<motion.p variants={fadeInUp} className="text-xl md:text-2xl text-slate-400 mb-12 max-w-2xl mx-auto leading-relaxed font-light">
|
| 71 |
+
Цифровой сотрудник для Telegram и LinkedIn.
|
| 72 |
Квалифицирует лидов, ведет переговоры и закрывает сделки 24/7.
|
| 73 |
</motion.p>
|
| 74 |
|
|
|
|
| 138 |
</div>
|
| 139 |
<div className="space-y-2">
|
| 140 |
<div className="bg-indigo-600 p-4 rounded-2xl rounded-tr-none text-white shadow-lg shadow-indigo-900/20">
|
| 141 |
+
У нас много заявок в LinkedIn, но менеджеры долго отвечают. Клиенты уходят.
|
| 142 |
</div>
|
| 143 |
</div>
|
| 144 |
</div>
|
|
|
|
| 250 |
</div>
|
| 251 |
<h3 className="text-2xl font-bold text-white mb-4">Омниканальность 360°</h3>
|
| 252 |
<p className="text-slate-400 text-lg max-w-xl">
|
| 253 |
+
Единый центр управления диалогами. Подключите Telegram, WhatsApp и LinkedIn за 5 минут.
|
| 254 |
AI помнит контекст общения во всех каналах.
|
| 255 |
</p>
|
| 256 |
</div>
|
|
|
|
| 383 |
<div className="md:col-span-2">
|
| 384 |
<div className="flex items-center gap-2 mb-6">
|
| 385 |
<div className="w-8 h-8 bg-indigo-500 rounded-lg flex items-center justify-center">
|
| 386 |
+
<Hexagon className="w-5 h-5 text-white fill-current" />
|
| 387 |
</div>
|
| 388 |
<span className="text-white font-bold text-xl tracking-tight">MicroFunnel</span>
|
| 389 |
</div>
|
frontend/app/register/page.tsx
CHANGED
|
@@ -4,13 +4,12 @@ import { useState, useEffect, Suspense } from 'react'
|
|
| 4 |
import { useAuth } from '@/contexts/AuthContext'
|
| 5 |
import { useSearchParams } from 'next/navigation'
|
| 6 |
import Link from 'next/link'
|
| 7 |
-
import { Mail, Lock, Building, Loader2, Users } from 'lucide-react'
|
| 8 |
-
import { MicroFunnelLogo } from '@/components/icons/MicroFunnelLogo'
|
| 9 |
|
| 10 |
// Компонент для работы с referral code
|
| 11 |
function ReferralCapture({ onReferralCode }: { onReferralCode: (code: string | null) => void }) {
|
| 12 |
const searchParams = useSearchParams()
|
| 13 |
-
|
| 14 |
useEffect(() => {
|
| 15 |
const refCode = searchParams.get('ref')
|
| 16 |
if (refCode) {
|
|
@@ -18,7 +17,7 @@ function ReferralCapture({ onReferralCode }: { onReferralCode: (code: string | n
|
|
| 18 |
console.log('🔗 Referral code detected:', refCode)
|
| 19 |
}
|
| 20 |
}, [searchParams, onReferralCode])
|
| 21 |
-
|
| 22 |
return null
|
| 23 |
}
|
| 24 |
|
|
@@ -54,8 +53,8 @@ export default function RegisterPage() {
|
|
| 54 |
|
| 55 |
if (authLoading) {
|
| 56 |
return (
|
| 57 |
-
<div className="min-h-screen flex items-center justify-center bg-
|
| 58 |
-
<Loader2 className="w-8 h-8 animate-spin text-indigo-
|
| 59 |
</div>
|
| 60 |
)
|
| 61 |
}
|
|
@@ -66,198 +65,207 @@ export default function RegisterPage() {
|
|
| 66 |
<Suspense fallback={null}>
|
| 67 |
<ReferralCapture onReferralCode={setReferralCode} />
|
| 68 |
</Suspense>
|
| 69 |
-
|
| 70 |
-
<div className="min-h-screen flex">
|
| 71 |
-
{/* Left Side - Branding */}
|
| 72 |
-
<div className="hidden lg:flex lg:w-1/2 bg-gradient-to-br from-indigo-900 via-indigo-800 to-purple-900 relative flex-col justify-between p-12 overflow-hidden">
|
| 73 |
-
{/* Animated background pattern */}
|
| 74 |
-
<div className="absolute inset-0 opacity-5">
|
| 75 |
-
<div className="absolute inset-0 animate-pulse" style={{ backgroundImage: 'radial-gradient(circle at 2px 2px, white 1px, transparent 0)', backgroundSize: '40px 40px', animationDuration: '4s' }} />
|
| 76 |
-
</div>
|
| 77 |
-
|
| 78 |
-
{/* Gradient orbs */}
|
| 79 |
-
<div className="absolute top-20 -left-20 w-96 h-96 bg-purple-400/20 rounded-full blur-3xl animate-pulse" />
|
| 80 |
-
<div className="absolute bottom-20 -right-20 w-80 h-80 bg-pink-400/20 rounded-full blur-3xl animate-pulse" style={{ animationDelay: '1.5s' }} />
|
| 81 |
-
|
| 82 |
-
{/* Logo */}
|
| 83 |
-
<div className="relative z-10">
|
| 84 |
-
<Link href="/" className="flex items-center gap-3">
|
| 85 |
-
<MicroFunnelLogo className="w-10 h-10" />
|
| 86 |
-
<div>
|
| 87 |
-
<h1 className="text-3xl font-bold text-white tracking-tight">
|
| 88 |
-
MicroFunnel
|
| 89 |
-
</h1>
|
| 90 |
-
<p className="text-indigo-200 text-sm font-medium">Платформа AI продаж</p>
|
| 91 |
-
</div>
|
| 92 |
-
</Link>
|
| 93 |
-
</div>
|
| 94 |
|
| 95 |
-
|
| 96 |
-
<div className="
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
|
|
|
|
|
|
|
|
|
| 108 |
<div>
|
| 109 |
-
<
|
| 110 |
-
|
|
|
|
|
|
|
| 111 |
</div>
|
| 112 |
-
</
|
| 113 |
</div>
|
| 114 |
-
</div>
|
| 115 |
-
</div>
|
| 116 |
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
<h2 className="text-4xl font-bold text-slate-900 tracking-tight">
|
| 123 |
-
Создать аккаунт
|
| 124 |
</h2>
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
</div>
|
| 137 |
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
</div>
|
| 147 |
-
|
| 148 |
-
</div>
|
| 149 |
</div>
|
| 150 |
-
)}
|
| 151 |
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
name="company"
|
| 164 |
-
type="text"
|
| 165 |
-
autoComplete="organization"
|
| 166 |
-
required
|
| 167 |
-
value={companyName}
|
| 168 |
-
onChange={(e) => setCompanyName(e.target.value)}
|
| 169 |
-
disabled={isLoading}
|
| 170 |
-
className="w-full h-12 pl-10 pr-4 text-slate-900 border border-gray-200 rounded-xl bg-white focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 disabled:bg-slate-50 disabled:text-slate-500 transition-all hover:border-gray-300"
|
| 171 |
-
placeholder="Your Company Ltd."
|
| 172 |
-
/>
|
| 173 |
</div>
|
| 174 |
-
|
| 175 |
|
| 176 |
-
{/*
|
| 177 |
-
<
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
<
|
| 183 |
-
<
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 195 |
</div>
|
| 196 |
-
</div>
|
| 197 |
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
|
|
|
|
|
|
|
|
|
| 217 |
</div>
|
| 218 |
-
<p className="mt-2 text-xs text-slate-500 flex items-center gap-1">
|
| 219 |
-
<svg className="w-3 h-3" fill="currentColor" viewBox="0 0 20 20">
|
| 220 |
-
<path fillRule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clipRule="evenodd" />
|
| 221 |
-
</svg>
|
| 222 |
-
Минимум 8 символов
|
| 223 |
-
</p>
|
| 224 |
-
</div>
|
| 225 |
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
<
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
href="/login"
|
| 252 |
-
className="font-semibold text-indigo-600 hover:text-indigo-700 hover:underline transition-colors"
|
| 253 |
>
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 257 |
</div>
|
| 258 |
</div>
|
| 259 |
</div>
|
| 260 |
-
</div>
|
| 261 |
</>
|
| 262 |
)
|
| 263 |
}
|
|
|
|
| 4 |
import { useAuth } from '@/contexts/AuthContext'
|
| 5 |
import { useSearchParams } from 'next/navigation'
|
| 6 |
import Link from 'next/link'
|
| 7 |
+
import { Mail, Lock, Building, Loader2, Users, Hexagon, ArrowRight, Zap } from 'lucide-react'
|
|
|
|
| 8 |
|
| 9 |
// Компонент для работы с referral code
|
| 10 |
function ReferralCapture({ onReferralCode }: { onReferralCode: (code: string | null) => void }) {
|
| 11 |
const searchParams = useSearchParams()
|
| 12 |
+
|
| 13 |
useEffect(() => {
|
| 14 |
const refCode = searchParams.get('ref')
|
| 15 |
if (refCode) {
|
|
|
|
| 17 |
console.log('🔗 Referral code detected:', refCode)
|
| 18 |
}
|
| 19 |
}, [searchParams, onReferralCode])
|
| 20 |
+
|
| 21 |
return null
|
| 22 |
}
|
| 23 |
|
|
|
|
| 53 |
|
| 54 |
if (authLoading) {
|
| 55 |
return (
|
| 56 |
+
<div className="min-h-screen flex items-center justify-center bg-[#030014]">
|
| 57 |
+
<Loader2 className="w-8 h-8 animate-spin text-indigo-500" />
|
| 58 |
</div>
|
| 59 |
)
|
| 60 |
}
|
|
|
|
| 65 |
<Suspense fallback={null}>
|
| 66 |
<ReferralCapture onReferralCode={setReferralCode} />
|
| 67 |
</Suspense>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
+
<div className="min-h-screen flex bg-[#030014] font-['Inter'] overflow-hidden">
|
| 70 |
+
<div className="bg-noise" />
|
| 71 |
+
|
| 72 |
+
{/* Left Side - Branding */}
|
| 73 |
+
<div className="hidden lg:flex lg:w-1/2 relative flex-col justify-between p-12 overflow-hidden border-r border-white/5">
|
| 74 |
+
{/* Background Effects */}
|
| 75 |
+
<div className="absolute top-0 left-0 w-full h-full bg-indigo-900/10" />
|
| 76 |
+
<div className="absolute top-[-20%] left-[-20%] w-[800px] h-[800px] bg-purple-600/20 blur-[120px] rounded-full opacity-40 pointer-events-none" />
|
| 77 |
+
<div className="absolute bottom-[-20%] right-[-20%] w-[800px] h-[800px] bg-indigo-600/10 blur-[120px] rounded-full opacity-30 pointer-events-none" />
|
| 78 |
+
|
| 79 |
+
{/* Logo */}
|
| 80 |
+
<div className="relative z-10">
|
| 81 |
+
<Link href="/" className="flex items-center gap-3 group">
|
| 82 |
+
<div className="w-10 h-10 bg-indigo-500/10 border border-indigo-500/20 rounded-xl flex items-center justify-center group-hover:border-indigo-500/50 transition-colors">
|
| 83 |
+
<Hexagon className="w-6 h-6 text-indigo-400 fill-current" />
|
| 84 |
+
</div>
|
| 85 |
<div>
|
| 86 |
+
<h1 className="text-2xl font-bold text-white tracking-tight">
|
| 87 |
+
MicroFunnel
|
| 88 |
+
</h1>
|
| 89 |
+
<p className="text-indigo-300/60 text-xs font-medium tracking-wide uppercase">AI Sales Platform</p>
|
| 90 |
</div>
|
| 91 |
+
</Link>
|
| 92 |
</div>
|
|
|
|
|
|
|
| 93 |
|
| 94 |
+
{/* Feature List */}
|
| 95 |
+
<div className="relative z-10 max-w-lg space-y-8">
|
| 96 |
+
<h2 className="text-4xl font-bold text-white leading-tight">
|
| 97 |
+
Начните продавать <br />
|
| 98 |
+
<span className="text-gradient-accent">на автопилоте</span>
|
|
|
|
|
|
|
| 99 |
</h2>
|
| 100 |
+
|
| 101 |
+
<div className="space-y-6">
|
| 102 |
+
{[
|
| 103 |
+
{ icon: Zap, title: "Быстрый старт", desc: "Настройка бота за 5 минут без кода" },
|
| 104 |
+
{ icon: Users, title: "Больше лидов", desc: "Автоматическая квалификация 24/7" },
|
| 105 |
+
{ icon: Lock, title: "Безопасность", desc: "Шифрование данных уровня Enterprise" }
|
| 106 |
+
].map((item, i) => (
|
| 107 |
+
<div key={i} className="flex items-start gap-4 group">
|
| 108 |
+
<div className="p-3 bg-white/5 rounded-xl border border-white/10 group-hover:border-indigo-500/30 group-hover:bg-indigo-500/10 transition-all">
|
| 109 |
+
<item.icon className="w-6 h-6 text-indigo-400" />
|
| 110 |
+
</div>
|
| 111 |
+
<div>
|
| 112 |
+
<h3 className="text-lg font-bold text-white mb-1">{item.title}</h3>
|
| 113 |
+
<p className="text-slate-400 text-sm">{item.desc}</p>
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
))}
|
| 117 |
+
</div>
|
| 118 |
</div>
|
| 119 |
|
| 120 |
+
<div className="relative z-10 text-xs text-slate-500">
|
| 121 |
+
© 2025 MicroFunnel Inc. All rights reserved.
|
| 122 |
+
</div>
|
| 123 |
+
</div>
|
| 124 |
+
|
| 125 |
+
{/* Right Side - Form */}
|
| 126 |
+
<div className="flex-1 flex items-center justify-center px-4 sm:px-6 lg:px-8 relative z-10">
|
| 127 |
+
<div className="max-w-md w-full space-y-8">
|
| 128 |
+
{/* Header */}
|
| 129 |
+
<div className="text-center lg:text-left">
|
| 130 |
+
<h2 className="text-3xl font-bold text-white tracking-tight mb-2">
|
| 131 |
+
Создать аккаунт
|
| 132 |
+
</h2>
|
| 133 |
+
<p className="text-slate-400">
|
| 134 |
+
Присоединяйтесь к 500+ компаниям, использующим AI
|
| 135 |
+
</p>
|
| 136 |
+
{referralCode && (
|
| 137 |
+
<div className="mt-4 inline-flex items-center gap-2 px-3 py-2 bg-indigo-500/10 border border-indigo-500/20 rounded-lg">
|
| 138 |
+
<Users className="w-4 h-4 text-indigo-400" />
|
| 139 |
+
<span className="text-sm text-indigo-300 font-medium">
|
| 140 |
+
Приглашение от партнера
|
| 141 |
+
</span>
|
| 142 |
</div>
|
| 143 |
+
)}
|
|
|
|
| 144 |
</div>
|
|
|
|
| 145 |
|
| 146 |
+
{/* Error Alert */}
|
| 147 |
+
{error && (
|
| 148 |
+
<div className="rounded-xl bg-red-500/10 border border-red-500/20 p-4 animate-shake">
|
| 149 |
+
<div className="flex items-center gap-3">
|
| 150 |
+
<div className="flex-shrink-0">
|
| 151 |
+
<svg className="w-5 h-5 text-red-400" fill="currentColor" viewBox="0 0 20 20">
|
| 152 |
+
<path fillRule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clipRule="evenodd" />
|
| 153 |
+
</svg>
|
| 154 |
+
</div>
|
| 155 |
+
<p className="text-sm text-red-400 font-medium">{error}</p>
|
| 156 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
</div>
|
| 158 |
+
)}
|
| 159 |
|
| 160 |
+
{/* Form */}
|
| 161 |
+
<form onSubmit={handleSubmit} className="space-y-6">
|
| 162 |
+
{/* Company Name */}
|
| 163 |
+
<div>
|
| 164 |
+
<label htmlFor="company" className="block text-sm font-medium text-slate-300 mb-2">
|
| 165 |
+
Название компании
|
| 166 |
+
</label>
|
| 167 |
+
<div className="relative group">
|
| 168 |
+
<div className="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 169 |
+
<Building className="h-5 w-5 text-slate-500 group-focus-within:text-indigo-400 transition-colors" />
|
| 170 |
+
</div>
|
| 171 |
+
<input
|
| 172 |
+
id="company"
|
| 173 |
+
name="company"
|
| 174 |
+
type="text"
|
| 175 |
+
autoComplete="organization"
|
| 176 |
+
required
|
| 177 |
+
value={companyName}
|
| 178 |
+
onChange={(e) => setCompanyName(e.target.value)}
|
| 179 |
+
disabled={isLoading}
|
| 180 |
+
className="block w-full pl-10 pr-3 py-3 border border-white/10 rounded-xl leading-5 bg-white/5 text-slate-200 placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500/50 sm:text-sm transition-all hover:bg-white/10"
|
| 181 |
+
placeholder="Acme Inc."
|
| 182 |
+
/>
|
| 183 |
+
</div>
|
| 184 |
</div>
|
|
|
|
| 185 |
|
| 186 |
+
{/* Email */}
|
| 187 |
+
<div>
|
| 188 |
+
<label htmlFor="email" className="block text-sm font-medium text-slate-300 mb-2">
|
| 189 |
+
Email
|
| 190 |
+
</label>
|
| 191 |
+
<div className="relative group">
|
| 192 |
+
<div className="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 193 |
+
<Mail className="h-5 w-5 text-slate-500 group-focus-within:text-indigo-400 transition-colors" />
|
| 194 |
+
</div>
|
| 195 |
+
<input
|
| 196 |
+
id="email"
|
| 197 |
+
name="email"
|
| 198 |
+
type="email"
|
| 199 |
+
autoComplete="email"
|
| 200 |
+
required
|
| 201 |
+
value={email}
|
| 202 |
+
onChange={(e) => setEmail(e.target.value)}
|
| 203 |
+
disabled={isLoading}
|
| 204 |
+
className="block w-full pl-10 pr-3 py-3 border border-white/10 rounded-xl leading-5 bg-white/5 text-slate-200 placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500/50 sm:text-sm transition-all hover:bg-white/10"
|
| 205 |
+
placeholder="name@company.com"
|
| 206 |
+
/>
|
| 207 |
+
</div>
|
| 208 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 209 |
|
| 210 |
+
{/* Password */}
|
| 211 |
+
<div>
|
| 212 |
+
<label htmlFor="password" className="block text-sm font-medium text-slate-300 mb-2">
|
| 213 |
+
Пароль
|
| 214 |
+
</label>
|
| 215 |
+
<div className="relative group">
|
| 216 |
+
<div className="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 217 |
+
<Lock className="h-5 w-5 text-slate-500 group-focus-within:text-indigo-400 transition-colors" />
|
| 218 |
+
</div>
|
| 219 |
+
<input
|
| 220 |
+
id="password"
|
| 221 |
+
name="password"
|
| 222 |
+
type="password"
|
| 223 |
+
autoComplete="new-password"
|
| 224 |
+
required
|
| 225 |
+
value={password}
|
| 226 |
+
onChange={(e) => setPassword(e.target.value)}
|
| 227 |
+
disabled={isLoading}
|
| 228 |
+
className="block w-full pl-10 pr-3 py-3 border border-white/10 rounded-xl leading-5 bg-white/5 text-slate-200 placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500/50 sm:text-sm transition-all hover:bg-white/10"
|
| 229 |
+
placeholder="••••••••"
|
| 230 |
+
/>
|
| 231 |
+
</div>
|
| 232 |
+
<p className="mt-2 text-xs text-slate-500 flex items-center gap-1">
|
| 233 |
+
<span className="w-1 h-1 rounded-full bg-slate-500" />
|
| 234 |
+
Минимум 8 символов
|
| 235 |
+
</p>
|
| 236 |
+
</div>
|
| 237 |
|
| 238 |
+
{/* Submit Button */}
|
| 239 |
+
<button
|
| 240 |
+
type="submit"
|
| 241 |
+
disabled={isLoading}
|
| 242 |
+
className="w-full flex justify-center py-3 px-4 border border-transparent rounded-xl shadow-lg shadow-indigo-500/20 text-sm font-bold text-white bg-indigo-600 hover:bg-indigo-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 focus:ring-offset-[#030014] disabled:opacity-50 disabled:cursor-not-allowed transition-all hover:scale-[1.02] active:scale-[0.98]"
|
|
|
|
|
|
|
| 243 |
>
|
| 244 |
+
{isLoading ? (
|
| 245 |
+
<Loader2 className="w-5 h-5 animate-spin" />
|
| 246 |
+
) : (
|
| 247 |
+
<span className="flex items-center gap-2">
|
| 248 |
+
Создать аккаунт <ArrowRight className="w-4 h-4" />
|
| 249 |
+
</span>
|
| 250 |
+
)}
|
| 251 |
+
</button>
|
| 252 |
+
</form>
|
| 253 |
+
|
| 254 |
+
{/* Footer */}
|
| 255 |
+
<div className="text-center">
|
| 256 |
+
<p className="text-sm text-slate-500">
|
| 257 |
+
Уже есть аккаунт?{' '}
|
| 258 |
+
<Link
|
| 259 |
+
href="/login"
|
| 260 |
+
className="font-medium text-indigo-400 hover:text-indigo-300 transition-colors"
|
| 261 |
+
>
|
| 262 |
+
Войти
|
| 263 |
+
</Link>
|
| 264 |
+
</p>
|
| 265 |
+
</div>
|
| 266 |
</div>
|
| 267 |
</div>
|
| 268 |
</div>
|
|
|
|
| 269 |
</>
|
| 270 |
)
|
| 271 |
}
|