Merge version_4_1782034208754 into main #3

Merged
bender merged 1 commits from version_4_1782034208754 into main 2026-06-21 09:31:27 +00:00

View File

@@ -1,41 +1,98 @@
// 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 AvatarGroup from "@/components/ui/AvatarGroup";
import React from 'react';
import HeroCenteredLogos from '@/components/sections/hero/HeroCenteredLogos';
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
const avatarsSrc = [
"http://img.b2bpic.net/free-photo/handsome-black-male-dressed-suit-from-wool_613910-15865.jpg",
"http://img.b2bpic.net/free-photo/happy-builder-hardhat_1398-1726.jpg",
"http://img.b2bpic.net/free-photo/businesswoman-glasses-portrait_1262-1461.jpg",
"http://img.b2bpic.net/free-photo/portrait-smiling-mature-businessman-looking-away_23-2147955371.jpg"
];
const primaryButton = {
text: "تصفح الآليات الآن",
href: "#products"
};
const secondaryButton = {
text: "طلب استشارة",
href: "#contact"
};
const names = [
"معدات موثوقة",
"شحن عالمي",
"دعم فني",
"تأمين جودة"
];
export default function HeroSection(): React.JSX.Element {
type HeroCenteredLogosProps = {
avatarsSrc: string[];
avatarText: string;
title: string;
description: string;
primaryButton: { text: string; href: string };
secondaryButton: { text: string; href: string };
names: string[];
hideMedia?: boolean;
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
const HeroInline = () => {
return (
<div id="hero" data-section="hero">
<SectionErrorBoundary name="hero">
<HeroCenteredLogos
avatarsSrc={[
"http://img.b2bpic.net/free-photo/handsome-black-male-dressed-suit-from-wool_613910-15865.jpg",
"http://img.b2bpic.net/free-photo/happy-builder-hardhat_1398-1726.jpg",
"http://img.b2bpic.net/free-photo/businesswoman-glasses-portrait_1262-1461.jpg",
"http://img.b2bpic.net/free-photo/portrait-smiling-mature-businessman-looking-away_23-2147955371.jpg",
]}
avatarText="موثوق من أكثر من 500+ عميل دولي"
title="JAMOUSNL — سوق الآليات الثقيلة الموثوق"
description="منصة متخصصة لبيع واستيراد الآليات الثقيلة الجديدة والمستعملة من أوروبا والعالم. جودة عالية، أسعار تنافسية، موثوقية كاملة."
primaryButton={{
text: "تصفح الآليات الآن",
href: "#products",
}}
secondaryButton={{
text: "طلب استشارة",
href: "#contact",
}}
names={[
"معدات موثوقة",
"شحن عالمي",
"دعم فني",
"تأمين جودة",
]}
imageSrc="https://images.unsplash.com/photo-1587293852726-694b60279e34?q=80&w=2070&auto=format&fit=crop"
/>
</SectionErrorBoundary>
<section aria-label="Hero section" className="relative h-svh flex flex-col mb-20">
<HeroBackgroundSlot />
{!undefined && (
<div className="absolute inset-0 z-0">
<ImageOrVideo imageSrc={"https://images.unsplash.com/photo-1621905251189-08b45d6a269e?q=80&w=2069&auto=format&fit=crop"} className="size-full object-cover" />
<div className="absolute inset-0 bg-background/60" />
</div>
)}
<div className="relative z-10 flex-1 flex items-center justify-center">
<div className="flex flex-col items-center gap-3 pt-8 w-content-width mx-auto text-center">
<AvatarGroup avatarsSrc={avatarsSrc} label={"موثوق من أكثر من 500+ عميل دولي"} size="lg" />
<TextAnimation
text={"JAMOUSNL — سوق الآليات الثقيلة الموثوق"}
variant="fade-blur"
gradientText={true}
tag="h1"
className="md:max-w-8/10 text-7xl 2xl:text-8xl leading-[1.15] font-semibold text-center text-balance"
/>
<TextAnimation
text={"منصة متخصصة لبيع واستيراد الآليات الثقيلة الجديدة والمستعملة من أوروبا والعالم. جودة عالية، أسعار تنافسية، موثوقية كاملة."}
variant="fade-blur"
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>
<div className="relative z-10 w-content-width mx-auto pb-8 overflow-hidden mask-fade-x">
<div className="flex w-max animate-marquee-horizontal" style={{ animationDuration: "30s" }}>
{[...names, ...names, ...names, ...names].map((name, index) => (
<div key={index} className="shrink-0 mx-3 px-4 py-2 card rounded">
<span className="text-xl font-semibold whitespace-nowrap text-foreground/75">{name}</span>
</div>
))}
</div>
</div>
</section>
);
};
export default function HeroSection() {
return (
<div data-webild-section="hero" id="hero">
<HeroInline />
</div>
);
}