Merge version_4_1782057875755 into main #4

Merged
bender merged 1 commits from version_4_1782057875755 into main 2026-06-21 16:07:10 +00:00

View File

@@ -1,28 +1,72 @@
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
// file as the canonical source for the "hero" section.
/* 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 HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot";
import TextAnimation from "@/components/ui/TextAnimation";
import ImageOrVideo from "@/components/ui/ImageOrVideo";
import AutoFillText from "@/components/ui/AutoFillText";
import React from 'react';
import HeroBrand from '@/components/sections/hero/HeroBrand';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
const primaryButton = {
text: "Reserve Your Suite",
href: "#pricing"
};
const secondaryButton = {
text: "View Gallery",
href: "#about"
};
export default function HeroSection(): React.JSX.Element {
type HeroBrandProps = {
brand: string;
description: string;
primaryButton: { text: string; href: string };
secondaryButton: { text: string; href: string };
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
const HeroInline = () => {
return (
<div id="hero" data-section="hero">
<SectionErrorBoundary name="hero">
<HeroBrand
brand="Grand Luxury Hotel"
description="Experience unparalleled comfort and elegance in the heart of the city. Your sanctuary away from home."
primaryButton={{
text: "Reserve Your Suite",
href: "#pricing",
}}
secondaryButton={{
text: "View Gallery",
href: "#about",
}}
imageSrc="https://images.pexels.com/photos/14547138/pexels-photo-14547138.jpeg?auto=compress&cs=tinysrgb&h=650&w=940"
/>
</SectionErrorBoundary>
<section
aria-label="Hero section"
className="relative w-full flex flex-col pt-32 pb-20 gap-10"
>
<HeroBackgroundSlot />
<div className="relative z-10 w-content-width mx-auto">
<div className="flex flex-col">
<div className="w-full flex flex-col md:flex-row md:justify-between items-start md:items-end gap-3 md:gap-5">
<TextAnimation
text={"Experience unparalleled comfort and elegance in the heart of the city. Your sanctuary away from home."}
variant="fade"
gradientText={false}
tag="p"
className="w-full md:w-1/2 text-lg md:text-2xl text-balance font-normal text-foreground leading-snug"
/>
<div className="w-full md:w-1/2 flex justify-start md:justify-end">
<div className="flex flex-wrap gap-3">
<Button text={primaryButton.text} href={primaryButton.href} variant="primary"/>
<Button text={secondaryButton.text} href={secondaryButton.href} variant="secondary"animationDelay={0.1} />
</div>
</div>
</div>
<AutoFillText className="font-semibold text-foreground">{"Grand Luxury Hotel"}</AutoFillText>
</div>
</div>
<div className="w-content-width mx-auto h-[50vh] md:h-[70vh] relative rounded-xl overflow-hidden">
<ImageOrVideo
imageSrc={"https://images.pexels.com/photos/14547138/pexels-photo-14547138.jpeg?auto=compress&cs=tinysrgb&h=650&w=940"}
className="w-full h-full object-cover"
/>
</div>
</section>
);
};
export default function HeroSection() {
return (
<div data-webild-section="hero" id="hero">
<HeroInline />
</div>
);
}