From 3cb0dca7b679d23ec71af0d0f2345ab18c3aba41 Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Tue, 16 Jun 2026 14:56:51 +0000 Subject: [PATCH] Bob AI: Update products section to use premium photography and fix t --- src/index.css | 12 +- src/pages/HomePage.tsx | 260 ++----------------- src/pages/HomePage/sections/About.tsx | 22 ++ src/pages/HomePage/sections/Contact.tsx | 27 ++ src/pages/HomePage/sections/Faq.tsx | 35 +++ src/pages/HomePage/sections/Features.tsx | 40 +++ src/pages/HomePage/sections/Hero.tsx | 29 +++ src/pages/HomePage/sections/Metrics.tsx | 46 ++++ src/pages/HomePage/sections/Products.tsx | 159 ++++++++++++ src/pages/HomePage/sections/Testimonials.tsx | 57 ++++ 10 files changed, 445 insertions(+), 242 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/index.css b/src/index.css index a655dd7..aeb7c26 100644 --- a/src/index.css +++ b/src/index.css @@ -5,15 +5,15 @@ :root { /* @colorThemes/lightTheme/grayNavyBlue */ - --background: #0a0a0a; - --card: #1a1a1a; + --background: #111111; + --card: #1A1A1A; --foreground: #ffffff; - --primary-cta: #ffffff; - --primary-cta-text: #0a0a0a; - --secondary-cta: #1a1a1a; + --primary-cta: #FFD600; + --primary-cta-text: #000000; + --secondary-cta: #222222; --secondary-cta-text: #ffffff; --accent: #737373; - --background-accent: #333333; + --background-accent: #FFD600; /* @layout/border-radius/rounded */ --radius: 1rem; diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index e782ee6..a08997a 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -1,248 +1,36 @@ -import AboutTextSplit from '@/components/sections/about/AboutTextSplit'; -import ContactCta from '@/components/sections/contact/ContactCta'; -import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia'; -import FeaturesImageBento from '@/components/sections/features/FeaturesImageBento'; -import FeaturesMediaCarousel from '@/components/sections/features/FeaturesMediaCarousel'; -import HeroSplit from '@/components/sections/hero/HeroSplit'; -import MetricsFeatureCards from '@/components/sections/metrics/MetricsFeatureCards'; -import TestimonialRatingCards from '@/components/sections/testimonial/TestimonialRatingCards'; -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 AboutSection from './HomePage/sections/About'; +import FeaturesSection from './HomePage/sections/Features'; +import ProductsSection from './HomePage/sections/Products'; +import MetricsSection from './HomePage/sections/Metrics'; +import TestimonialsSection from './HomePage/sections/Testimonials'; +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..6c846ef --- /dev/null +++ b/src/pages/HomePage/sections/About.tsx @@ -0,0 +1,22 @@ +// 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 AboutTextSplit from '@/components/sections/about/AboutTextSplit'; +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..39a7f0b --- /dev/null +++ b/src/pages/HomePage/sections/Contact.tsx @@ -0,0 +1,27 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "contact" section. + +import React from 'react'; +import ContactCta from '@/components/sections/contact/ContactCta'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function ContactSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Faq.tsx b/src/pages/HomePage/sections/Faq.tsx new file mode 100644 index 0000000..dcbed18 --- /dev/null +++ b/src/pages/HomePage/sections/Faq.tsx @@ -0,0 +1,35 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "faq" section. + +import React from 'react'; +import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function FaqSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Features.tsx b/src/pages/HomePage/sections/Features.tsx new file mode 100644 index 0000000..4da54ee --- /dev/null +++ b/src/pages/HomePage/sections/Features.tsx @@ -0,0 +1,40 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "features" section. + +import React from 'react'; +import FeaturesMediaCarousel from '@/components/sections/features/FeaturesMediaCarousel'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function FeaturesSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Hero.tsx b/src/pages/HomePage/sections/Hero.tsx new file mode 100644 index 0000000..27473bf --- /dev/null +++ b/src/pages/HomePage/sections/Hero.tsx @@ -0,0 +1,29 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "hero" section. + +import React from 'react'; +import HeroSplit from '@/components/sections/hero/HeroSplit'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function HeroSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Metrics.tsx b/src/pages/HomePage/sections/Metrics.tsx new file mode 100644 index 0000000..ed27db2 --- /dev/null +++ b/src/pages/HomePage/sections/Metrics.tsx @@ -0,0 +1,46 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "metrics" section. + +import React from 'react'; +import MetricsFeatureCards from '@/components/sections/metrics/MetricsFeatureCards'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function MetricsSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Products.tsx b/src/pages/HomePage/sections/Products.tsx new file mode 100644 index 0000000..484ffd5 --- /dev/null +++ b/src/pages/HomePage/sections/Products.tsx @@ -0,0 +1,159 @@ +/* eslint-disable */ +// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body +import Button from "@/components/ui/Button"; +import TextAnimation from "@/components/ui/TextAnimation"; +import ImageOrVideo from "@/components/ui/ImageOrVideo"; +import ScrollReveal from "@/components/ui/ScrollReveal"; +import { cls } from "@/lib/utils"; + +const items = [ + { + description: "Нежная курочка, картофель фри, маринованный огурчик, соус белый, кетчуп и лаваш", + title: "Doner Classic", + imageSrc: "https://images.unsplash.com/photo-1615719413546-198b25453f85?q=80&w=1000&auto=format&fit=crop" + }, + { + imageSrc: "https://images.unsplash.com/photo-1528735602780-2552fd46c7af?q=80&w=1000&auto=format&fit=crop", + title: "Standart", + description: "Нежная курочка, хрустящая капуста, сочный помидор, свежий огурец, белый соус и лаваш" + }, + { + imageSrc: "https://images.unsplash.com/photo-1565299585323-38d6b0865b47?q=80&w=1000&auto=format&fit=crop", + title: "Мексиканская", + description: "Нежная курочка, хрустящая капуста, сочный помидор, свежий огурец, сладкая кукуруза, 2 соуса(белый и чили) и лаваш" + }, + { + imageSrc: "https://images.unsplash.com/photo-1550547660-d9450f859349?q=80&w=1000&auto=format&fit=crop", + title: "Деревенская", + description: "Нежная курочка, хрустящая капуста, морковь по-корейски, маринованный огурчик, картофель жареный, белый соус, кетчуп и лаваш" + }, + { + description: "Нежная курочка, шампиньоны жареные, опята маринованные, картофель жареный, салат айсберг, сыр сулугуни, соус белый и лаваш", + title: "Грибная", + imageSrc: "https://images.unsplash.com/photo-1604908176997-125f25cc6f3d?q=80&w=1000&auto=format&fit=crop" + }, + { + imageSrc: "https://images.unsplash.com/photo-1540189549336-e6e99c3679fe?q=80&w=1000&auto=format&fit=crop", + title: "Греческая", + description: "Нежная курочка, хрустящая капуста, свежий огурец, маслины, сыр фета, 2 соуса(белый и терияки) и лаваш" + }, + { + description: "Колбаска пепперони, салат айсберг, нежная курочка, сочный помидор, сыр сулугуни, 2 соуса(белый и томатный жгучий) и лаваш + картофель фри в «Большую»", + title: "Пепперони", + imageSrc: "https://images.unsplash.com/photo-1628840042765-356cda07504e?q=80&w=1000&auto=format&fit=crop" + } +]; + +type FeatureItem = { + title: string; + description: string; + href?: string; +} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); + +interface FeaturesImageBentoProps { + tag: string; + title: string; + description: string; + primaryButton?: { text: string; href: string }; + secondaryButton?: { text: string; href: string }; + items: [FeatureItem, FeatureItem, FeatureItem, FeatureItem, FeatureItem, FeatureItem, FeatureItem]; +} + +const ProductsInline = () => { + const gridClasses = [ + "md:col-span-2", + "md:col-span-4", + "md:col-span-3", + "md:col-span-3", + "md:col-span-2", + "md:col-span-2", + "md:col-span-2", + ]; + + const staggerDelays = [ + 0, + 0.1, + 0, + 0.1, + 0, + 0.1, + 0.2, + ]; + + return ( +
+
+
+
+

{"Меню"}

+
+ + + + + + {(undefined || undefined) && ( +
+ {undefined &&
+ )} +
+ +
+ {items.map((item, index) => { + const content = ( +
+ + +
+ {item.title} + {item.description} +
+
+
+ ); + + return ( + + {item.href ? ( + + {content} + + ) : ( +
+ {content} +
+ )} +
+ ); + })} +
+
+
+ ); +}; + +export default function ProductsSection() { + return ( +
+ +
+ ); +} diff --git a/src/pages/HomePage/sections/Testimonials.tsx b/src/pages/HomePage/sections/Testimonials.tsx new file mode 100644 index 0000000..db880b0 --- /dev/null +++ b/src/pages/HomePage/sections/Testimonials.tsx @@ -0,0 +1,57 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "testimonials" section. + +import React from 'react'; +import TestimonialRatingCards from '@/components/sections/testimonial/TestimonialRatingCards'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function TestimonialsSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +}