UNPKG

@progress/sitefinity-nextjs-sdk

Version:

Provides OOB widgets developed using the Next.js framework, which includes an abstraction layer for Sitefinity communication. Additionally, it offers an expanded API, typings, and tools for further development and integration.

21 lines (20 loc) 1.15 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; export function HeroSection({ sectionData, isLoading, cssClassName }) { if (isLoading) { return (_jsx("div", { className: "skeleton-loader d-flex justify-content-center mb-4", children: _jsxs("svg", { width: "915", height: "111", viewBox: "0 0 915 111", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { width: "628", height: "38", fill: "#F0F0F0" }), _jsx("rect", { y: "65", width: "915", height: "16", fill: "#F0F0F0" }), _jsx("rect", { y: "95", width: "696", height: "16", fill: "#F0F0F0" })] }) })); } if (!sectionData) { return null; } return (_jsx("section", { className: `container mt-5 mb-5 ${cssClassName}`, children: _jsxs("div", { className: "text-center pt-4 pb-4", children: [_jsx("h2", { children: sectionData.title }), _jsx("p", { children: sectionData.description })] }) }) /* {sectionData.image && ( <img src={sectionData.image} alt={sectionData.title} width={800} height={400} style={{ maxWidth: '100%', height: 'auto', marginTop: '10px' }} /> )} */ ); }