diff --git a/public/images/1q.jpeg b/public/images/1q.jpeg new file mode 100644 index 0000000..d25096a Binary files /dev/null and b/public/images/1q.jpeg differ diff --git a/public/images/2q.jpeg b/public/images/2q.jpeg new file mode 100644 index 0000000..e92fe66 Binary files /dev/null and b/public/images/2q.jpeg differ diff --git a/public/images/3q.jpeg b/public/images/3q.jpeg new file mode 100644 index 0000000..e956ab3 Binary files /dev/null and b/public/images/3q.jpeg differ diff --git a/public/images/4q.jpeg b/public/images/4q.jpeg new file mode 100644 index 0000000..ec30372 Binary files /dev/null and b/public/images/4q.jpeg differ diff --git a/public/images/5q.jpeg b/public/images/5q.jpeg new file mode 100644 index 0000000..1fb7050 Binary files /dev/null and b/public/images/5q.jpeg differ diff --git a/public/images/6q.jpeg b/public/images/6q.jpeg new file mode 100644 index 0000000..e1a158b Binary files /dev/null and b/public/images/6q.jpeg differ diff --git a/public/images/o_nac.jpg b/public/images/o_nac.jpg new file mode 100644 index 0000000..d9c1ca5 Binary files /dev/null and b/public/images/o_nac.jpg differ diff --git a/public/images/stanica.png b/public/images/stanica.png new file mode 100644 index 0000000..cd07ab7 Binary files /dev/null and b/public/images/stanica.png differ diff --git a/src/app/page.tsx b/src/app/page.tsx index 04d2a86..dc16ff4 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -4,7 +4,7 @@ import Header from '@/components/Header'; import AboutSection from '@/components/AboutSection'; import ProjectsSection from '@/components/ProjectsSection'; import WhyChooseUsSection from '@/components/WhyChooseUsSection'; -import TeamSection from '@/components/TeamSection'; +import WorkExamplesSection from '@/components/TeamSection'; import ReviewsSection from '@/components/ReviewsSection'; import ContactSection from '@/components/ContactSection'; import Footer from '@/components/Footer'; @@ -26,7 +26,6 @@ export default function Home() { const [phone, setPhone] = useState(''); const [name, setName] = useState(''); const [error, setError] = useState(''); - const [loading, setLoading] = useState(false); useEffect(() => { const timer = setTimeout(() => { @@ -51,44 +50,19 @@ export default function Home() { const handleFormSubmit = async (e: React.FormEvent) => { e.preventDefault(); setError(''); - setLoading(true); if (!validateName(name)) { setError('Пожалуйста, укажите корректное имя (только буквы, не менее 2 символов)'); - setLoading(false); return; } if (!validatePhone(phone)) { setError('Пожалуйста, укажите корректный российский номер телефона'); - setLoading(false); return; } - // Отправляем данные в Telegram - try { - const res = await fetch('/api/send-telegram', { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ - name, - phone, - material: 'Расчет стоимости', - message: 'Запрос расчета стоимости дома' - }), - }); - - if (res.ok) { - // Если отправка успешна, открываем калькулятор - setIsCalculatorOpen(true); - } else { - setError('Ошибка отправки. Попробуйте позже.'); - } - } catch { - setError('Ошибка отправки. Попробуйте позже.'); - } finally { - setLoading(false); - } + // Просто открываем калькулятор без отправки + setIsCalculatorOpen(true); }; return ( @@ -113,7 +87,7 @@ export default function Home() { {/* Background Image */}
Строительство домов

- Построим технологичный дом от 6 млн. руб за 90 дней + Построим технологичный дом за 90 дней

{/* Stats Section */} @@ -187,15 +161,12 @@ export default function Home() { {error && ( @@ -226,7 +197,7 @@ export default function Home() { setIsCatalogModalOpen(true)} /> - +