diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 7e8f8ec..ce8f74d 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -42,7 +42,7 @@ export default function Layout() { diff --git a/src/index.css b/src/index.css index a133456..f115369 100644 --- a/src/index.css +++ b/src/index.css @@ -5,15 +5,15 @@ :root { /* @colorThemes/lightTheme/grayNavyBlue */ - --background: #f5faff; - --card: #ffffff; - --foreground: #001122; - --primary-cta: #15479c; - --primary-cta-text: #f5faff; - --secondary-cta: #ffffff; - --secondary-cta-text: #001122; - --accent: #a8cce8; - --background-accent: #7ba3cf; + --background: #0F1115; + --card: rgba(255, 255, 255, 0.03); + --foreground: #ffffff; + --primary-cta: #D4AF37; + --primary-cta-text: #0F1115; + --secondary-cta: rgba(255, 255, 255, 0.1); + --secondary-cta-text: #ffffff; + --accent: #007AFF; + --background-accent: #8A2BE2; /* @layout/border-radius/rounded */ --radius: 0.5rem; diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index 1bfc520..f9fea52 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -1,308 +1,39 @@ -import ContactCta from '@/components/sections/contact/ContactCta'; -import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia'; -import FeaturesMediaCarousel from '@/components/sections/features/FeaturesMediaCarousel'; -import FeaturesRevealCardsBento from '@/components/sections/features/FeaturesRevealCardsBento'; -import HeroBillboardBrand from '@/components/sections/hero/HeroBillboardBrand'; -import MetricsFeatureCards from '@/components/sections/metrics/MetricsFeatureCards'; -import TestimonialColumnMarqueeCards from '@/components/sections/testimonial/TestimonialColumnMarqueeCards'; -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 AdvantagesSection from './HomePage/sections/Advantages'; +import ServicesSection from './HomePage/sections/Services'; +import GallerySection from './HomePage/sections/Gallery'; +import WhyUsSection from './HomePage/sections/WhyUs'; +import TestimonialsSection from './HomePage/sections/Testimonials'; +import PromotionSection from './HomePage/sections/Promotion'; +import BookingSection from './HomePage/sections/Booking'; +import ContactsSection from './HomePage/sections/Contacts'; + +export default function HomePage(): React.JSX.Element { return ( - <> -
- - - -
+<> + -
- - - -
+ -
- - - -
+ - + -
- - - -
+ -
- - - -
+ -
- - - -
+ -
- - - -
+ -
- - - -
+ ); } diff --git a/src/pages/HomePage/sections/Advantages.tsx b/src/pages/HomePage/sections/Advantages.tsx new file mode 100644 index 0000000..e49e350 --- /dev/null +++ b/src/pages/HomePage/sections/Advantages.tsx @@ -0,0 +1,21 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "advantages" section. + +import React from 'react'; +import MetricsFeatureCards from '@/components/sections/metrics/MetricsFeatureCards'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function AdvantagesSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Booking.tsx b/src/pages/HomePage/sections/Booking.tsx new file mode 100644 index 0000000..8a4cc4a --- /dev/null +++ b/src/pages/HomePage/sections/Booking.tsx @@ -0,0 +1,21 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "booking" section. + +import React from 'react'; +import ContactCta from '@/components/sections/contact/ContactCta'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function BookingSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Contacts.tsx b/src/pages/HomePage/sections/Contacts.tsx new file mode 100644 index 0000000..9e65bea --- /dev/null +++ b/src/pages/HomePage/sections/Contacts.tsx @@ -0,0 +1,21 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "contacts" section. + +import React from 'react'; +import ContactCta from '@/components/sections/contact/ContactCta'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function ContactsSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Gallery.tsx b/src/pages/HomePage/sections/Gallery.tsx new file mode 100644 index 0000000..1e454d0 --- /dev/null +++ b/src/pages/HomePage/sections/Gallery.tsx @@ -0,0 +1,100 @@ +/* eslint-disable */ +// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body +import type { LucideIcon } from "lucide-react"; +import TextAnimation from "@/components/ui/TextAnimation"; +import ImageOrVideo from "@/components/ui/ImageOrVideo"; +import LoopCarousel from "@/components/ui/LoopCarousel"; +import Button from "@/components/ui/Button"; +import { useButtonClick } from "@/hooks/useButtonClick"; +import { resolveIcon } from "@/utils/resolve-icon"; + +const items = [ + { + title: "Маникюр", + description: "Эстетика", + buttonIcon: "Star", + imageSrc: "http://img.b2bpic.net/free-photo/pretty-young-woman-with-flowers_23-2148341372.jpg" + }, + { + title: "Педикюр", + description: "Стиль", + buttonIcon: "Star", + imageSrc: "http://img.b2bpic.net/free-photo/close-up-beauty-nail-art_23-2149249961.jpg" + }, + { + title: "Дизайн", + description: "Тренды", + buttonIcon: "Star", + imageSrc: "http://img.b2bpic.net/free-photo/front-view-young-attractive-female-white-shirt-holding-different-manicure-accessories-with-smile-green-surface_140725-64181.jpg" + }, + { + title: "Классика", + description: "Безупречность", + buttonIcon: "Star", + imageSrc: "http://img.b2bpic.net/free-photo/african-american-woman-applying-hairdresser-hairstylist-beauty-saloon_627829-4642.jpg" + }, + { + title: "Наращивание", + description: "Изящность", + buttonIcon: "Star", + imageSrc: "http://img.b2bpic.net/free-photo/view-human-hands_23-2149512269.jpg" + }, + { + title: "Декор", + description: "Акцент", + buttonIcon: "Star", + imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiley-woman-with-colorful-manicure_23-2149311575.jpg" + } +]; + +type FeatureItem = { + title: string; + description: string; + buttonIcon: string | LucideIcon; + buttonHref?: string; + buttonOnClick?: () => void; +} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); + +interface FeaturesMediaCarouselProps { + tag: string; + title: string; + description: string; + primaryButton?: { text: string; href: string }; + secondaryButton?: { text: string; href: string }; + items: FeatureItem[]; +} + +const FeatureMediaCarouselCard = ({ item }: { item: FeatureItem }) => { + const handleClick = useButtonClick(item.buttonHref, item.buttonOnClick); + const Icon = resolveIcon(item.buttonIcon); + + return ( + + ); +} diff --git a/src/pages/HomePage/sections/Hero.tsx b/src/pages/HomePage/sections/Hero.tsx new file mode 100644 index 0000000..ba53def --- /dev/null +++ b/src/pages/HomePage/sections/Hero.tsx @@ -0,0 +1,22 @@ +// 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 HeroBillboardBrand from '@/components/sections/hero/HeroBillboardBrand'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function HeroSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Promotion.tsx b/src/pages/HomePage/sections/Promotion.tsx new file mode 100644 index 0000000..203d23d --- /dev/null +++ b/src/pages/HomePage/sections/Promotion.tsx @@ -0,0 +1,21 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "promotion" section. + +import React from 'react'; +import ContactCta from '@/components/sections/contact/ContactCta'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function PromotionSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Services.tsx b/src/pages/HomePage/sections/Services.tsx new file mode 100644 index 0000000..3195db1 --- /dev/null +++ b/src/pages/HomePage/sections/Services.tsx @@ -0,0 +1,21 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "services" section. + +import React from 'react'; +import FeaturesRevealCardsBento from '@/components/sections/features/FeaturesRevealCardsBento'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function ServicesSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Testimonials.tsx b/src/pages/HomePage/sections/Testimonials.tsx new file mode 100644 index 0000000..c35c65d --- /dev/null +++ b/src/pages/HomePage/sections/Testimonials.tsx @@ -0,0 +1,21 @@ +// 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 TestimonialColumnMarqueeCards from '@/components/sections/testimonial/TestimonialColumnMarqueeCards'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function TestimonialsSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/WhyUs.tsx b/src/pages/HomePage/sections/WhyUs.tsx new file mode 100644 index 0000000..ee4eb15 --- /dev/null +++ b/src/pages/HomePage/sections/WhyUs.tsx @@ -0,0 +1,22 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "why-us" section. + +import React from 'react'; +import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function WhyUsSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +}