Merge version_4_1781527934786 into main
Merge version_4_1781527934786 into main
This commit was merged in pull request #5.
This commit is contained in:
@@ -1,32 +1,105 @@
|
||||
// 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 React from 'react';
|
||||
import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
const primaryButton = {
|
||||
text: "See Menu",
|
||||
href: "#menu"
|
||||
};
|
||||
const secondaryButton = {
|
||||
text: "Visit Us",
|
||||
href: "#contact"
|
||||
};
|
||||
const items = [
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/side-view-multi-colored-meatballs-with-tomato-sauces-green-onions_140725-13961.jpg"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/georgian-khinkali-with-hot-chili-sauce_114579-2368.jpg"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/top-view-tasty-meat-patties-baked-pastries-grey-desk-patty-dough-pastry-bake-meal_140725-86249.jpg"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/fried-chicken-with-broccoli-table_140725-9657.jpg"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/delicious-indian-pav-bhaji-dish-with-bread-onions_23-2151996246.jpg"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/thai-noodles-style_74190-3896.jpg"
|
||||
}
|
||||
];
|
||||
|
||||
type HeroBillboardCarouselProps = {
|
||||
tag: string;
|
||||
title: string;
|
||||
description: string;
|
||||
primaryButton: { text: string; href: string };
|
||||
secondaryButton: { text: string; href: string };
|
||||
items: ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never })[];
|
||||
};
|
||||
|
||||
const HeroInline = () => {
|
||||
const duplicated = [...items, ...items, ...items, ...items];
|
||||
|
||||
export default function HeroSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="hero" data-section="hero">
|
||||
<SectionErrorBoundary name="hero">
|
||||
<HeroBillboardCarousel
|
||||
tag="Kolhapur's Soul in Every Bite"
|
||||
title="कोल्हापुरी वाडा मिसळ "
|
||||
description="Authentic, fiery, and soulful misal straight from the heart of Rajarampuri. Experience the legendary heat and traditional warmth."
|
||||
primaryButton={{
|
||||
text: "See Menu", href: "#menu"}}
|
||||
secondaryButton={{
|
||||
text: "Visit Us", href: "#contact"}}
|
||||
items={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/side-view-multi-colored-meatballs-with-tomato-sauces-green-onions_140725-13961.jpg" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/georgian-khinkali-with-hot-chili-sauce_114579-2368.jpg" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-tasty-meat-patties-baked-pastries-grey-desk-patty-dough-pastry-bake-meal_140725-86249.jpg" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/fried-chicken-with-broccoli-table_140725-9657.jpg" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/delicious-indian-pav-bhaji-dish-with-bread-onions_23-2151996246.jpg" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/thai-noodles-style_74190-3896.jpg" },
|
||||
]}
|
||||
<section
|
||||
aria-label="Hero section"
|
||||
className="relative flex flex-col items-center justify-center gap-8 md:gap-10 w-full min-h-svh pt-25 pb-20 md:pt-30"
|
||||
>
|
||||
<HeroBackgroundSlot />
|
||||
<div className="flex flex-col items-center gap-3 w-content-width mx-auto text-center">
|
||||
<div className="px-3 py-1 mb-1 text-sm card rounded w-fit">
|
||||
<p>{"Kolhapur's Soul in Every Bite"}</p>
|
||||
</div>
|
||||
|
||||
<TextAnimation
|
||||
text={"कोल्हापुरी वाडा मिसळ "}
|
||||
variant="fade"
|
||||
gradientText={true}
|
||||
tag="h1"
|
||||
className="md:max-w-8/10 text-5xl md:text-6xl 2xl:text-7xl leading-normal font-semibold text-center text-balance py-2"
|
||||
/>
|
||||
|
||||
<TextAnimation
|
||||
text={"Authentic, fiery, and soulful misal straight from the heart of Rajarampuri. Experience the legendary heat and traditional warmth."}
|
||||
variant="fade"
|
||||
gradientText={false}
|
||||
tag="p"
|
||||
className="md:max-w-7/10 text-lg md:text-xl leading-snug text-balance"
|
||||
/>
|
||||
|
||||
<div className="flex flex-wrap justify-center gap-3 mt-2 md:mt-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 className="w-content-width mx-auto overflow-hidden mask-fade-x">
|
||||
<div className="flex w-max animate-marquee-horizontal" style={{ animationDuration: "60s" }}>
|
||||
{duplicated.map((item, i) => (
|
||||
<div key={i} className="shrink-0 w-60 md:w-75 2xl:w-80 aspect-4/5 mr-3 md:mr-5 p-2 xl:p-3 2xl:p-4 card rounded-lg overflow-hidden">
|
||||
<ImageOrVideo
|
||||
imageSrc={item.imageSrc}
|
||||
videoSrc={item.videoSrc}
|
||||
className="w-full h-full rounded-lg object-cover"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default function HeroSection() {
|
||||
return (
|
||||
<div data-webild-section="hero" id="hero">
|
||||
<HeroInline />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user