From acec5d706568e49487497ed909efe162ceefc5aa Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Sun, 14 Jun 2026 11:06:43 +0000 Subject: [PATCH] Bob AI: Update contact section with custom form and Yandex map --- src/components/Layout.tsx | 63 ++--- src/index.css | 24 +- src/pages/HomePage.tsx | 268 ++----------------- src/pages/HomePage/sections/About.tsx | 23 ++ src/pages/HomePage/sections/Contact.tsx | 122 +++++++++ src/pages/HomePage/sections/Faq.tsx | 38 +++ src/pages/HomePage/sections/Features.tsx | 21 ++ src/pages/HomePage/sections/Hero.tsx | 22 ++ src/pages/HomePage/sections/Metrics.tsx | 38 +++ src/pages/HomePage/sections/Products.tsx | 21 ++ src/pages/HomePage/sections/Testimonials.tsx | 57 ++++ 11 files changed, 399 insertions(+), 298 deletions(-) create mode 100644 src/pages/HomePage/sections/About.tsx create mode 100644 src/pages/HomePage/sections/Contact.tsx create mode 100644 src/pages/HomePage/sections/Faq.tsx create mode 100644 src/pages/HomePage/sections/Features.tsx create mode 100644 src/pages/HomePage/sections/Hero.tsx create mode 100644 src/pages/HomePage/sections/Metrics.tsx create mode 100644 src/pages/HomePage/sections/Products.tsx create mode 100644 src/pages/HomePage/sections/Testimonials.tsx diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 209a6c4..f5107e6 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -1,5 +1,5 @@ import FooterBasic from '@/components/sections/footer/FooterBasic'; -import NavbarFloating from '@/components/ui/NavbarFloating'; +import NavbarFullscreen from '@/components/ui/NavbarFullscreen'; import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot"; import { Outlet } from 'react-router-dom'; @@ -8,32 +8,24 @@ import { StyleProvider } from "@/components/ui/StyleProvider"; export default function Layout() { const navItems = [ { - "name": "Home", + "name": "Главная", "href": "#hero" }, { - "name": "Properties", + "name": "Каталог", "href": "#products" }, { - "name": "About", + "name": "О нас", "href": "#about" }, { - "name": "Contact", - "href": "#contact" - }, - { - "name": "Features", + "name": "Условия", "href": "#features" }, { - "name": "Testimonials", - "href": "#testimonials" - }, - { - "name": "Metrics", - "href": "#metrics" + "name": "Контакты", + "href": "#contact" } ]; @@ -41,10 +33,10 @@ export default function Layout() { - @@ -56,51 +48,38 @@ export default function Layout() { diff --git a/src/index.css b/src/index.css index 197dc00..4eb5bd3 100644 --- a/src/index.css +++ b/src/index.css @@ -1,22 +1,22 @@ -@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap'); @import "tailwindcss"; @import "./styles/masks.css"; @import "./styles/animations.css"; :root { /* @colorThemes/lightTheme/grayNavyBlue */ - --background: #f5f4ef; - --card: #dad6cd; - --foreground: #2a2928; - --primary-cta: #2a2928; - --primary-cta-text: #f5f4ef; - --secondary-cta: #ecebea; - --secondary-cta-text: #2a2928; - --accent: #ffffff; - --background-accent: #c6b180; + --background: #ffffff; + --card: #f8f9fb; + --foreground: #1a1a2e; + --primary-cta: #0f172a; + --primary-cta-text: #ffffff; + --secondary-cta: #1e3a5f; + --secondary-cta-text: #ffffff; + --accent: #1e3a5f; + --background-accent: #f8f9fb; /* @layout/border-radius/rounded */ - --radius: 1.5rem; + --radius: 1rem; /* @layout/content-width/medium */ --width-content-width: clamp(40rem, 72.5vw, 100rem); @@ -88,7 +88,7 @@ --color-background-accent: var(--background-accent); /* Fonts */ - --font-sans: 'Manrope', sans-serif; + --font-sans: 'Montserrat', sans-serif; --font-tight: "Inter Tight", sans-serif; --font-mono: monospace; diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index 2973e64..6bc0861 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -1,256 +1,36 @@ -import AboutFeaturesSplit from '@/components/sections/about/AboutFeaturesSplit'; -import ContactCta from '@/components/sections/contact/ContactCta'; -import FaqTwoColumn from '@/components/sections/faq/FaqTwoColumn'; -import FeaturesImageBento from '@/components/sections/features/FeaturesImageBento'; -import FeaturesMediaCards from '@/components/sections/features/FeaturesMediaCards'; -import HeroBrand from '@/components/sections/hero/HeroBrand'; -import MetricsSimpleCards from '@/components/sections/metrics/MetricsSimpleCards'; -import TestimonialRatingCards from '@/components/sections/testimonial/TestimonialRatingCards'; -import { Award, Shield, Zap } from "lucide-react"; -import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; +// AUTO-GENERATED shell by per-section-migrate. +// Section bodies live in .//sections/.tsx. Edit the section +// files directly. Non-block content (wrappers, non-inlinable sections) is +// preserved inline; extracted section blocks become refs. -export default function HomePage() { +import React from 'react'; +import HeroSection from './HomePage/sections/Hero'; +import FeaturesSection from './HomePage/sections/Features'; +import ProductsSection from './HomePage/sections/Products'; +import AboutSection from './HomePage/sections/About'; +import TestimonialsSection from './HomePage/sections/Testimonials'; +import MetricsSection from './HomePage/sections/Metrics'; +import FaqSection from './HomePage/sections/Faq'; +import ContactSection from './HomePage/sections/Contact'; + +export default function HomePage(): React.JSX.Element { return ( - <> -
- - - -
+<> + -
- - - -
+ -
- - - -
+ -
- - - -
+ -
- - - -
+ -
- - - -
+ -
- - - -
+ -
- - - -
+ ); } diff --git a/src/pages/HomePage/sections/About.tsx b/src/pages/HomePage/sections/About.tsx new file mode 100644 index 0000000..030b209 --- /dev/null +++ b/src/pages/HomePage/sections/About.tsx @@ -0,0 +1,23 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "about" section. + +import React from 'react'; +import AboutFeaturesSplit from '@/components/sections/about/AboutFeaturesSplit'; +import { Award, Shield, Zap } from "lucide-react"; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function AboutSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Contact.tsx b/src/pages/HomePage/sections/Contact.tsx new file mode 100644 index 0000000..8ce648b --- /dev/null +++ b/src/pages/HomePage/sections/Contact.tsx @@ -0,0 +1,122 @@ +/* eslint-disable */ +// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body +import ScrollReveal from "@/components/ui/ScrollReveal"; +import TextAnimation from "@/components/ui/TextAnimation"; +import Button from "@/components/ui/Button"; +import Input from "@/components/ui/Input"; +import Textarea from "@/components/ui/Textarea"; +import Tag from "@/components/ui/Tag"; +import { MapPin, Phone, Mail, User } from "lucide-react"; + +const ContactInline = () => { + return ( +
+
+
+ + + + + +

+ Оставьте заявку, и наши специалисты свяжутся с вами в ближайшее время для консультации. +

+
+
+ +
+ +
+
e.preventDefault()}> +
+
+
+ +
+ +
+
+
+ +
+ +
+
+