From 76b16dffc2a87f7037847fc16c942515ae7a846e Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Wed, 17 Jun 2026 07:25:00 +0000 Subject: [PATCH] Bob AI: Add 3D parallax effects to hero section --- src/pages/HomePage.tsx | 263 +++-------------------- src/pages/HomePage/sections/Blog.tsx | 34 +++ src/pages/HomePage/sections/Booking.tsx | 27 +++ src/pages/HomePage/sections/Dining.tsx | 57 +++++ src/pages/HomePage/sections/Discover.tsx | 158 ++++++++++++++ src/pages/HomePage/sections/Hero.tsx | 120 +++++++++++ src/pages/HomePage/sections/Nature.tsx | 22 ++ src/pages/HomePage/sections/Rooms.tsx | 40 ++++ src/pages/HomePage/sections/Wellness.tsx | 37 ++++ 9 files changed, 519 insertions(+), 239 deletions(-) create mode 100644 src/pages/HomePage/sections/Blog.tsx create mode 100644 src/pages/HomePage/sections/Booking.tsx create mode 100644 src/pages/HomePage/sections/Dining.tsx create mode 100644 src/pages/HomePage/sections/Discover.tsx create mode 100644 src/pages/HomePage/sections/Hero.tsx create mode 100644 src/pages/HomePage/sections/Nature.tsx create mode 100644 src/pages/HomePage/sections/Rooms.tsx create mode 100644 src/pages/HomePage/sections/Wellness.tsx diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index 0365f0f..df6f5c6 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -1,251 +1,36 @@ -import AboutTextSplit from '@/components/sections/about/AboutTextSplit'; -import ContactCta from '@/components/sections/contact/ContactCta'; -import FeaturesImageBento from '@/components/sections/features/FeaturesImageBento'; -import FeaturesMediaCards from '@/components/sections/features/FeaturesMediaCards'; -import HeroOverlayMarquee from '@/components/sections/hero/HeroOverlayMarquee'; -import MetricsMediaCards from '@/components/sections/metrics/MetricsMediaCards'; -import { Star, Waves } 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 RoomsSection from './HomePage/sections/Rooms'; +import DiningSection from './HomePage/sections/Dining'; +import NatureSection from './HomePage/sections/Nature'; +import WellnessSection from './HomePage/sections/Wellness'; +import DiscoverSection from './HomePage/sections/Discover'; +import BlogSection from './HomePage/sections/Blog'; +import BookingSection from './HomePage/sections/Booking'; + +export default function HomePage(): React.JSX.Element { return ( - <> -
- - - -
+<> + -
- - - -
+ -
- - - -
+ -
- - - -
+ -
- - - -
+ -
- - -
+ -
- - - -
+ -
- - - -
+ ); } diff --git a/src/pages/HomePage/sections/Blog.tsx b/src/pages/HomePage/sections/Blog.tsx new file mode 100644 index 0000000..5b9445c --- /dev/null +++ b/src/pages/HomePage/sections/Blog.tsx @@ -0,0 +1,34 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "blog" section. + +import React from 'react'; +import MetricsMediaCards from '@/components/sections/metrics/MetricsMediaCards'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function BlogSection(): 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..5d4f8fb --- /dev/null +++ b/src/pages/HomePage/sections/Booking.tsx @@ -0,0 +1,27 @@ +// 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/Dining.tsx b/src/pages/HomePage/sections/Dining.tsx new file mode 100644 index 0000000..3891ba6 --- /dev/null +++ b/src/pages/HomePage/sections/Dining.tsx @@ -0,0 +1,57 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "dining" section. + +import React from 'react'; +import FeaturesImageBento from '@/components/sections/features/FeaturesImageBento'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function DiningSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Discover.tsx b/src/pages/HomePage/sections/Discover.tsx new file mode 100644 index 0000000..9c03339 --- /dev/null +++ b/src/pages/HomePage/sections/Discover.tsx @@ -0,0 +1,158 @@ +/* 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 = [ + { + title: "Forest Paths", + description: "Guided wilderness hiking.", + imageSrc: "http://img.b2bpic.net/free-photo/aerial-view-tanaro-river-winding-through-lush-piedmont-forest_1308-190390.jpg" + }, + { + title: "Ulysses Myth", + description: "Ancient history explorations.", + imageSrc: "http://img.b2bpic.net/free-photo/rear-view-girls-going-down-river_23-2147617426.jpg" + }, + { + title: "Bay Kayaking", + description: "Explore hidden sea coves.", + imageSrc: "http://img.b2bpic.net/free-photo/famous-road-with-arch-rock-called-defile-de-ruoms_268835-3688.jpg" + }, + { + title: "Cycling Trails", + description: "Island-wide forest biking.", + imageSrc: "http://img.b2bpic.net/free-photo/aerial-drone-view-nature-romania_1268-19288.jpg" + }, + { + title: "Wildlife Safari", + description: "Observing rare local flora.", + imageSrc: "http://img.b2bpic.net/free-photo/aerial-beautiful-shot-island-seashore-with-sea-side_181624-31485.jpg" + }, + { + title: "Boat Excursions", + description: "Visit historic salt lakes.", + imageSrc: "http://img.b2bpic.net/free-photo/rocks-overgrown-with-greenery-seashore_169016-39188.jpg" + }, + { + title: "Eco Tourism", + description: "Sustainable island travel.", + imageSrc: "http://img.b2bpic.net/free-photo/high-angle-view-tropical-trees-growing-forest_23-2147830980.jpg" + } +]; + +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 DiscoverInline = () => { + 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 ( +
+
+
+
+

{"Adventure"}

+
+ + + + + + {(undefined || undefined) && ( +
+ {undefined &&
+ )} +
+ +
+ {items.map((item, index) => { + const content = ( +
+ + +
+ {item.title} + {item.description} +
+
+ ); + + return ( + + {item.href ? ( + + {content} + + ) : ( +
+ {content} +
+ )} +
+ ); + })} +
+
+
+ ); +}; + +export default function DiscoverSection() { + return ( +
+ +
+ ); +} diff --git a/src/pages/HomePage/sections/Hero.tsx b/src/pages/HomePage/sections/Hero.tsx new file mode 100644 index 0000000..9f9b8f8 --- /dev/null +++ b/src/pages/HomePage/sections/Hero.tsx @@ -0,0 +1,120 @@ +/* eslint-disable */ +// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body +import { Waves, Star } from 'lucide-react'; +import type { LucideIcon } from "lucide-react"; + +import Button from "@/components/ui/Button"; +import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot"; +import TextAnimation from "@/components/ui/TextAnimation"; +import ImageOrVideo from "@/components/ui/ImageOrVideo"; +import AvatarGroup from "@/components/ui/AvatarGroup"; + +const primaryButton = { + text: "Book Now", + href: "#booking" +}; +const secondaryButton = { + text: "Online Check-in", + href: "#check-in" +}; +const items = [ + { + text: "Adriatic Sea Views", + icon: Waves + }, + { + text: "National Park Access", + icon: Star + }, + { + text: "Wellness Sanctuary", + icon: Star + } +]; + +type HeroOverlayMarqueeProps = { + tag: string; + title: string; + description: string; + primaryButton: { text: string; href: string }; + secondaryButton: { text: string; href: string }; + avatarsSrc?: string[]; + avatarsLabel?: string; + items: { text: string; icon: LucideIcon }[]; +} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); + +const HeroInline = () => { + return ( +
+ + + +
+ ); +}; + +export default function HeroSection() { + return ( +
+ +
+ ); +} diff --git a/src/pages/HomePage/sections/Nature.tsx b/src/pages/HomePage/sections/Nature.tsx new file mode 100644 index 0000000..acf53db --- /dev/null +++ b/src/pages/HomePage/sections/Nature.tsx @@ -0,0 +1,22 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "nature" section. + +import React from 'react'; +import AboutTextSplit from '@/components/sections/about/AboutTextSplit'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function NatureSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Rooms.tsx b/src/pages/HomePage/sections/Rooms.tsx new file mode 100644 index 0000000..b763612 --- /dev/null +++ b/src/pages/HomePage/sections/Rooms.tsx @@ -0,0 +1,40 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "rooms" section. + +import React from 'react'; +import MetricsMediaCards from '@/components/sections/metrics/MetricsMediaCards'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function RoomsSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +} diff --git a/src/pages/HomePage/sections/Wellness.tsx b/src/pages/HomePage/sections/Wellness.tsx new file mode 100644 index 0000000..e709e63 --- /dev/null +++ b/src/pages/HomePage/sections/Wellness.tsx @@ -0,0 +1,37 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "wellness" section. + +import React from 'react'; +import FeaturesMediaCards from '@/components/sections/features/FeaturesMediaCards'; +import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; + +export default function WellnessSection(): React.JSX.Element { + return ( +
+ + + +
+ ); +}