@nextworks/blocks-sections 0.1.0-alpha.11 → 0.1.0-alpha.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist-types/components/About.d.ts +93 -0
  2. package/dist-types/components/About.d.ts.map +1 -0
  3. package/dist-types/components/CTA.d.ts +118 -0
  4. package/dist-types/components/CTA.d.ts.map +1 -0
  5. package/dist-types/components/Contact.d.ts +111 -0
  6. package/dist-types/components/Contact.d.ts.map +1 -0
  7. package/dist-types/components/FAQ.d.ts +89 -0
  8. package/dist-types/components/FAQ.d.ts.map +1 -0
  9. package/dist-types/components/Features.d.ts +111 -0
  10. package/dist-types/components/Features.d.ts.map +1 -0
  11. package/dist-types/components/Footer.d.ts +120 -0
  12. package/dist-types/components/Footer.d.ts.map +1 -0
  13. package/dist-types/components/HeroMotion.d.ts +107 -0
  14. package/dist-types/components/HeroMotion.d.ts.map +1 -0
  15. package/dist-types/components/HeroOverlay.d.ts +116 -0
  16. package/dist-types/components/HeroOverlay.d.ts.map +1 -0
  17. package/dist-types/components/HeroSplit.d.ts +98 -0
  18. package/dist-types/components/HeroSplit.d.ts.map +1 -0
  19. package/dist-types/components/Navbar.d.ts +112 -0
  20. package/dist-types/components/Navbar.d.ts.map +1 -0
  21. package/dist-types/components/Newsletter.d.ts +59 -0
  22. package/dist-types/components/Newsletter.d.ts.map +1 -0
  23. package/dist-types/components/PortfolioSimple.d.ts +137 -0
  24. package/dist-types/components/PortfolioSimple.d.ts.map +1 -0
  25. package/dist-types/components/Pricing.d.ts +96 -0
  26. package/dist-types/components/Pricing.d.ts.map +1 -0
  27. package/dist-types/components/ProcessTimeline.d.ts +121 -0
  28. package/dist-types/components/ProcessTimeline.d.ts.map +1 -0
  29. package/dist-types/components/ServicesGrid.d.ts +64 -0
  30. package/dist-types/components/ServicesGrid.d.ts.map +1 -0
  31. package/dist-types/components/Team.d.ts +115 -0
  32. package/dist-types/components/Team.d.ts.map +1 -0
  33. package/dist-types/components/Testimonials.d.ts +81 -0
  34. package/dist-types/components/Testimonials.d.ts.map +1 -0
  35. package/dist-types/components/TrustBadges.d.ts +80 -0
  36. package/dist-types/components/TrustBadges.d.ts.map +1 -0
  37. package/dist-types/components/index.d.ts +21 -0
  38. package/dist-types/components/index.d.ts.map +1 -0
  39. package/dist-types/index.d.ts +2 -0
  40. package/dist-types/index.d.ts.map +1 -0
  41. package/package.json +6 -4
  42. package/dist/components/About.js +0 -129
  43. package/dist/components/CTA.js +0 -58
  44. package/dist/components/Contact.js +0 -82
  45. package/dist/components/FAQ.js +0 -78
  46. package/dist/components/Features.js +0 -109
  47. package/dist/components/Footer.js +0 -101
  48. package/dist/components/HeroMotion.js +0 -55
  49. package/dist/components/HeroOverlay.js +0 -111
  50. package/dist/components/HeroSplit.js +0 -100
  51. package/dist/components/Navbar.js +0 -80
  52. package/dist/components/Newsletter.js +0 -34
  53. package/dist/components/PortfolioSimple.js +0 -180
  54. package/dist/components/Pricing.js +0 -91
  55. package/dist/components/ProcessTimeline.js +0 -88
  56. package/dist/components/ServicesGrid.js +0 -72
  57. package/dist/components/Team.js +0 -107
  58. package/dist/components/Testimonials.js +0 -46
  59. package/dist/components/TrustBadges.js +0 -46
@@ -1,88 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { cn } from "@nextworks/blocks-core";
4
- /**
5
- * Responsive timeline showing a multi-step process for your workflow.
6
- *
7
- * @remarks
8
- * - Renders horizontally on desktop and vertically on mobile.
9
- * - Slot-style className overrides are merged after defaults via cn().
10
- * - Uses a semantic <section> and supports aria-label.
11
- *
12
- * @example
13
- * <ProcessTimeline steps={[{ stepNumber: 1, title: 'Plan', description: '...' }]} />
14
- */
15
- export function ProcessTimeline({ id, className, steps = [
16
- {
17
- stepNumber: 1,
18
- title: "Discovery Call",
19
- description: "Understanding your goals and requirements",
20
- icon: "🔍",
21
- },
22
- {
23
- stepNumber: 2,
24
- title: "Strategy & Design",
25
- description: "Custom mockups and project roadmap",
26
- icon: "🎨",
27
- },
28
- {
29
- stepNumber: 3,
30
- title: "Development",
31
- description: "Building your site with regular updates",
32
- icon: "⚡",
33
- },
34
- {
35
- stepNumber: 4,
36
- title: "Launch & Support",
37
- description: "Going live with ongoing maintenance",
38
- icon: "🚀",
39
- },
40
- ], heading = "Our Process", subheading, section = {
41
- className: "py-16 md:py-20 bg-muted",
42
- }, container = {
43
- className: "max-w-6xl mx-auto px-5 md:px-10",
44
- }, header = {
45
- className: "space-y-4 mb-12 md:mb-16 text-center",
46
- }, headingStyle = {
47
- className: "text-4xl md:text-5xl font-bold font-poppins text-foreground leading-tight",
48
- }, subheadingStyle = {
49
- className: "text-lg md:text-xl font-inter text-muted-foreground max-w-2xl mx-auto leading-relaxed",
50
- }, timelineContainer = {
51
- className: "w-full max-w-4xl mx-auto",
52
- }, desktopTimeline = {
53
- className: "hidden lg:flex justify-between items-start relative w-full",
54
- }, connectingLine = {
55
- className: "absolute top-8 left-15 right-15 h-0.5 z-10 bg-[var(--process-connector)] dark:bg-[var(--process-connector)]",
56
- }, stepContainer = {
57
- className: "flex flex-col items-center space-y-4 flex-1 max-w-48 relative z-20",
58
- }, stepCircle = {
59
- className: "w-15 h-15 font-bold text-2xl rounded-full flex items-center justify-center shadow-lg relative z-30 bg-[var(--process-step-bg)] text-[var(--process-step-fg)] dark:bg-[var(--process-step-bg)] dark:text-[var(--process-step-fg)]",
60
- }, stepNumber = {
61
- className: "font-bold text-2xl text-[var(--process-step-fg)] dark:text-[var(--process-step-fg)]",
62
- }, stepIcon = {
63
- className: "text-2xl md:text-3xl mb-2",
64
- }, stepContent = {
65
- className: "space-y-2 text-center",
66
- }, stepTitle = {
67
- className: "text-lg md:text-xl font-semibold font-poppins text-foreground leading-tight",
68
- }, stepDescription = {
69
- className: "text-sm md:text-base font-inter text-muted-foreground leading-relaxed",
70
- }, mobileTimeline = {
71
- className: "flex lg:hidden flex-col space-y-8 w-full",
72
- }, mobileStep = {
73
- className: "flex items-start relative",
74
- }, mobileVerticalLine = {
75
- className: "absolute left-7 top-15 bottom-[-2rem] w-0.5 z-10 bg-[var(--process-connector)] dark:bg-[var(--process-connector)]",
76
- }, mobileStepCircle = {
77
- className: "w-15 h-15 font-bold text-2xl rounded-full flex items-center justify-center shadow-lg flex-shrink-0 mr-6 z-20 bg-[var(--process-step-bg)] text-[var(--process-step-fg)] dark:bg-[var(--process-step-bg)] dark:text-[var(--process-step-fg)]",
78
- }, mobileStepContent = {
79
- className: "flex flex-col items-start space-y-3 flex-1 pt-2",
80
- }, mobileStepIcon = {
81
- className: "text-2xl md:text-3xl",
82
- }, mobileStepTitle = {
83
- className: "text-lg md:text-xl font-semibold font-poppins text-foreground leading-tight",
84
- }, mobileStepDescription = {
85
- className: "text-sm md:text-base font-inter text-muted-foreground leading-relaxed",
86
- }, ariaLabel = "Process timeline section", }) {
87
- return (_jsx("section", { id: id, className: cn(section.className, className), "aria-label": ariaLabel, children: _jsxs("div", { className: container.className, children: [_jsxs("div", { className: header.className, children: [_jsx("h2", { className: headingStyle.className, children: heading }), subheading && (_jsx("p", { className: subheadingStyle.className, children: subheading }))] }), _jsxs("div", { className: timelineContainer.className, children: [_jsxs("div", { className: desktopTimeline.className, children: [_jsx("div", { className: connectingLine.className }), steps.map((step) => (_jsxs("div", { className: stepContainer.className, children: [_jsx("div", { className: stepCircle.className, children: _jsx("span", { className: stepNumber.className, children: step.stepNumber }) }), step.icon && (_jsx("div", { className: stepIcon.className, children: step.icon })), _jsxs("div", { className: stepContent.className, children: [_jsx("h3", { className: stepTitle.className, children: step.title }), _jsx("p", { className: stepDescription.className, children: step.description })] })] }, step.stepNumber)))] }), _jsx("div", { className: mobileTimeline.className, children: steps.map((step, index) => (_jsxs("div", { className: mobileStep.className, children: [index < steps.length - 1 && (_jsx("div", { className: mobileVerticalLine.className })), _jsx("div", { className: mobileStepCircle.className, children: _jsx("span", { className: stepNumber.className, children: step.stepNumber }) }), _jsxs("div", { className: mobileStepContent.className, children: [step.icon && (_jsx("div", { className: mobileStepIcon.className, children: step.icon })), _jsx("h3", { className: mobileStepTitle.className, children: step.title }), _jsx("p", { className: mobileStepDescription.className, children: step.description })] })] }, step.stepNumber))) })] })] }) }));
88
- }
@@ -1,72 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { motion } from "motion/react";
4
- import { cn } from "@nextworks/blocks-core";
5
- /**
6
- * Default services data for digital agency
7
- */
8
- const defaultServicesData = [
9
- {
10
- icon: "💻",
11
- title: "Web Design & Development",
12
- description: "Custom websites that capture your brand and convert visitors into customers",
13
- },
14
- {
15
- icon: "📈",
16
- title: "SEO & Digital Marketing",
17
- description: "Get found on Google and drive qualified traffic to your website",
18
- },
19
- {
20
- icon: "🛒",
21
- title: "E-commerce Solutions",
22
- description: "Online stores that maximize sales and customer experience",
23
- },
24
- {
25
- icon: "🎨",
26
- title: "Brand Identity & Design",
27
- description: "Logo, branding, and visual identity that makes you stand out",
28
- },
29
- ];
30
- /**
31
- * Responsive services grid with subtle motion and slot-style overrides.
32
- *
33
- * @remarks
34
- * - Motion can be disabled globally with enableMotion.
35
- * - Each card uses simple emoji icons by default; replace with real icons if preferred.
36
- *
37
- * @example
38
- * <ServicesGrid servicesData={[{ icon: '⚙️', title: 'Automation', description: '...' }]} />
39
- */
40
- export function ServicesGrid({ id, className, sectionHeading = "Our Services", servicesData = defaultServicesData, enableMotion = true, section = {
41
- className: "py-16 md:py-20 lg:py-24 bg-muted",
42
- }, container = {
43
- className: "max-w-6xl mx-auto px-4 md:px-6 lg:px-8",
44
- }, heading = {
45
- className: "text-3xl md:text-4xl lg:text-5xl font-bold font-poppins text-foreground text-center mb-8 md:mb-12",
46
- }, grid = {
47
- className: "grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-8 items-stretch",
48
- }, card = {
49
- className: "bg-card/90 backdrop-blur p-6 md:p-8 rounded-lg border border-border shadow-sm hover:shadow-md transition-all duration-300 bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] shadow-[var(--card-shadow)]",
50
- }, cardContent = {
51
- className: "flex flex-col h-full space-y-4",
52
- }, icon = {
53
- className: "text-4xl",
54
- }, title = {
55
- className: "text-lg md:text-xl font-semibold font-poppins text-card-foreground leading-tight text-[var(--card-title-fg)]",
56
- }, description = {
57
- className: "text-sm md:text-base font-inter text-muted-foreground leading-relaxed flex-1 text-[var(--card-muted-fg)]",
58
- }, ariaLabel = "Services section", }) {
59
- return (_jsx("section", { id: id, className: cn(section.className, className), "aria-label": ariaLabel, children: _jsxs("div", { className: container.className, children: [_jsx("h2", { className: heading.className, children: sectionHeading }), _jsx("div", { className: grid.className, children: servicesData.map((service, index) => (_jsx(motion.div, { initial: enableMotion ? { opacity: 0, y: 12 } : { opacity: 1, y: 0 }, whileInView: enableMotion ? { opacity: 1, y: 0 } : { opacity: 1, y: 0 }, viewport: enableMotion
60
- ? { once: true, amount: 0.2 }
61
- : { once: true, amount: 0 }, transition: enableMotion
62
- ? {
63
- type: "spring",
64
- stiffness: 125,
65
- damping: 50,
66
- mass: 1,
67
- delay: 0.12 + index * 0.05,
68
- }
69
- : { type: "tween", duration: 0 }, className: cn("h-full motion-reduce:transform-none motion-reduce:transition-none"), children: _jsx("div", { className: cn(card.className, "flex h-full flex-col", enableMotion
70
- ? "transition-transform duration-200 hover:-translate-y-1"
71
- : "transition-none hover:!translate-y-0 hover:shadow-none"), children: _jsxs("div", { className: cardContent.className, children: [_jsx("div", { className: icon.className, role: "img", "aria-label": service.title, children: service.icon }), _jsx("h3", { className: title.className, children: service.title }), _jsx("p", { className: description.className, children: service.description })] }) }) }, index))) })] }) }));
72
- }
@@ -1,107 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import Link from "next/link";
4
- import { cn } from "@nextworks/blocks-core";
5
- const DefaultTeamData = [
6
- {
7
- name: "Alex Chen",
8
- role: "CEO & Founder",
9
- bio: "Full-stack developer with 8+ years.",
10
- avatar: "👨‍💼",
11
- socialLinks: [{ platform: "LinkedIn", url: "#", icon: "💼" }],
12
- },
13
- {
14
- name: "Sarah Martinez",
15
- role: "Lead Designer",
16
- bio: "UI/UX expert.",
17
- avatar: "👩‍🎨",
18
- socialLinks: [{ platform: "Dribbble", url: "#", icon: "🎨" }],
19
- },
20
- {
21
- name: "Jordan Patel",
22
- role: "DevOps Engineer",
23
- bio: "Automates cloud infra and CI/CD pipelines.",
24
- avatar: "🛠️",
25
- socialLinks: [{ platform: "GitHub", url: "#", icon: "🐙" }],
26
- },
27
- {
28
- name: "Maya Thompson",
29
- role: "Product Manager",
30
- bio: "Drives roadmap and aligns cross‑functional teams.",
31
- avatar: "🧭",
32
- socialLinks: [{ platform: "Twitter", url: "#", icon: "🐦" }],
33
- },
34
- ];
35
- /**
36
- * Internal presentational card for a single team member.
37
- * Receives already-merged className strings from the parent.
38
- */
39
- function TeamCard({ member, card = { className: "" }, cardContent = { className: "" }, avatar = { className: "" }, name = { className: "" }, role = { className: "" }, bio = { className: "" }, socialLinks = { className: "" }, socialLink = { className: "" }, }) {
40
- return (_jsx("div", { className: card.className, children: _jsxs("div", { className: cardContent.className, children: [_jsx("div", { className: avatar.className, children: member.avatar }), _jsx("h3", { className: name.className, children: member.name }), _jsx("p", { className: role.className, children: member.role }), _jsx("p", { className: bio.className, children: member.bio }), member.socialLinks && member.socialLinks.length > 0 && (_jsx("div", { className: socialLinks.className, children: member.socialLinks.map((social, index) => (_jsx(Link, { href: social.url, className: socialLink.className, title: social.platform, "aria-label": `${member.name}'s ${social.platform} profile`, children: social.icon }, index))) }))] }) }));
41
- }
42
- /**
43
- * Team section with heading, subheading, and a responsive member grid.
44
- *
45
- * @remarks
46
- * - Uses a slot-style API for className overrides merged via cn().
47
- * - Motion: enableMotion toggles hover lift on cards.
48
- * - Accessibility: semantic <section> with aria-label.
49
- *
50
- * @example
51
- * <Team teamMembers={[{ name: 'Alex', role: 'Engineer' }]} />
52
- */
53
- export function Team({ id, className, teamMembers = DefaultTeamData, teamHeadingText = "Meet Our Team", teamSubheadingText = "The talented people behind your success", section, container, header, heading, subheading, grid, card, cardContent, avatar, name, role, bio, socialLinks, socialLink, enableMotion = true, ariaLabel = "Team section", }) {
54
- var _a, _b;
55
- // Defaults for slots
56
- const defaultSection = "py-16 px-6 bg-muted";
57
- const defaultContainer = "max-w-7xl mx-auto";
58
- const defaultHeader = "space-y-12 items-center";
59
- const defaultHeadingClass = "text-3xl font-bold font-poppins text-foreground text-center text-[var(--heading-fg)]";
60
- const defaultSubheadingClass = "text-lg font-inter text-muted-foreground opacity-80 leading-relaxed text-center max-w-2xl text-[var(--subheading-fg)]";
61
- const defaultGrid = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 w-full";
62
- const defaultCardBase = "bg-card p-6 rounded-lg shadow-md text-center border border-border bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] shadow-[var(--card-shadow)]";
63
- const defaultCardContent = "flex flex-col items-center space-y-4";
64
- const defaultAvatar = "text-4xl mb-2";
65
- const defaultName = "text-xl font-bold font-poppins text-card-foreground text-[var(--card-fg)]";
66
- const defaultRole = "text-md font-semibold font-poppins text-primary";
67
- const defaultBio = "text-sm font-inter text-muted-foreground opacity-80 leading-relaxed text-[var(--card-muted-fg)]";
68
- const defaultSocialLinks = "flex gap-3 mt-2";
69
- const defaultSocialLink = "text-lg text-primary hover:text-accent-foreground transition-colors duration-200";
70
- // Motion control for card
71
- const motionCard = enableMotion
72
- ? "transition-transform duration-200 hover:-translate-y-1"
73
- : "transition-none hover:!translate-y-0";
74
- // Merge slot classes using cn (defaults first, then overrides)
75
- const finalSectionClass = cn(defaultSection, section === null || section === void 0 ? void 0 : section.className, className);
76
- const finalContainerClass = cn(defaultContainer, container === null || container === void 0 ? void 0 : container.className);
77
- const finalHeaderClass = cn(defaultHeader, header === null || header === void 0 ? void 0 : header.className);
78
- const finalGridClass = cn(defaultGrid, grid === null || grid === void 0 ? void 0 : grid.className);
79
- const finalCardClass = cn(defaultCardBase, motionCard, card === null || card === void 0 ? void 0 : card.className);
80
- const finalCardContentClass = cn(defaultCardContent, cardContent === null || cardContent === void 0 ? void 0 : cardContent.className);
81
- const finalAvatarClass = cn(defaultAvatar, avatar === null || avatar === void 0 ? void 0 : avatar.className);
82
- const finalNameClass = cn(defaultName, name === null || name === void 0 ? void 0 : name.className);
83
- const finalRoleClass = cn(defaultRole, role === null || role === void 0 ? void 0 : role.className);
84
- const finalBioClass = cn(defaultBio, bio === null || bio === void 0 ? void 0 : bio.className);
85
- const finalSocialLinksClass = cn(defaultSocialLinks, socialLinks === null || socialLinks === void 0 ? void 0 : socialLinks.className);
86
- const finalSocialLinkClass = cn(defaultSocialLink, socialLink === null || socialLink === void 0 ? void 0 : socialLink.className);
87
- // Normalize heading/subheading allowing string or object, plus slot class merges
88
- const normalizedHeading = typeof teamHeadingText === "string"
89
- ? {
90
- text: teamHeadingText,
91
- className: cn(defaultHeadingClass, heading === null || heading === void 0 ? void 0 : heading.className),
92
- }
93
- : {
94
- text: (_a = teamHeadingText === null || teamHeadingText === void 0 ? void 0 : teamHeadingText.text) !== null && _a !== void 0 ? _a : "Meet Our Team",
95
- className: cn(defaultHeadingClass, teamHeadingText === null || teamHeadingText === void 0 ? void 0 : teamHeadingText.className, heading === null || heading === void 0 ? void 0 : heading.className),
96
- };
97
- const normalizedSubheading = typeof teamSubheadingText === "string"
98
- ? {
99
- text: teamSubheadingText,
100
- className: cn(defaultSubheadingClass, subheading === null || subheading === void 0 ? void 0 : subheading.className),
101
- }
102
- : {
103
- text: (_b = teamSubheadingText === null || teamSubheadingText === void 0 ? void 0 : teamSubheadingText.text) !== null && _b !== void 0 ? _b : "The talented people behind your success",
104
- className: cn(defaultSubheadingClass, teamSubheadingText === null || teamSubheadingText === void 0 ? void 0 : teamSubheadingText.className, subheading === null || subheading === void 0 ? void 0 : subheading.className),
105
- };
106
- return (_jsx("section", { id: id || "team", className: finalSectionClass, "aria-label": ariaLabel, children: _jsx("div", { className: finalContainerClass, children: _jsxs("div", { className: finalHeaderClass, children: [_jsxs("div", { className: "mx-auto flex max-w-2xl flex-col items-center space-y-4 text-center", children: [_jsx("h2", { className: normalizedHeading.className, children: normalizedHeading.text }), _jsx("p", { className: normalizedSubheading.className, children: normalizedSubheading.text })] }), _jsx("div", { className: finalGridClass, children: teamMembers.map((member, index) => (_jsx(TeamCard, { member: member, card: { className: finalCardClass }, cardContent: { className: finalCardContentClass }, avatar: { className: finalAvatarClass }, name: { className: finalNameClass }, role: { className: finalRoleClass }, bio: { className: finalBioClass }, socialLinks: { className: finalSocialLinksClass }, socialLink: { className: finalSocialLinkClass } }, index))) })] }) }) }));
107
- }
@@ -1,46 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { cn } from "@nextworks/blocks-core";
4
- import { TestimonialCard } from "@nextworks/blocks-core";
5
- const defaultTestimonialData = [
6
- {
7
- testimonialText: "Lorem ipsum dolor sit amet! Consectetur adipiscing elit.",
8
- testimonialAuthor: " - Cillum Dolore",
9
- testimonialAuthorInitials: "CD",
10
- },
11
- {
12
- testimonialText: "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi!",
13
- testimonialAuthor: " - Voluptate Velit",
14
- testimonialAuthorInitials: "VV",
15
- },
16
- {
17
- testimonialText: "Cillum dolore eu fugiat nulla pariatur!",
18
- testimonialAuthor: " - Laboris Nisi",
19
- testimonialAuthorInitials: "LN",
20
- },
21
- ];
22
- /**
23
- * Testimonials section that renders a grid of TestimonialCard items.
24
- *
25
- * @remarks
26
- * - Slot-style overrides match TestimonialCard sub-slots (card, content, text, etc.).
27
- * - Motion can be disabled via enableMotion.
28
- *
29
- * @example
30
- * <Testimonials testimonials={[{ testimonialText: 'Great!', testimonialAuthor: ' - Jane', testimonialAuthorInitials: 'J' }]} />
31
- */
32
- export function Testimonials({ id, className, testimonials = defaultTestimonialData, testimonialSectionHeader = "What Our Customers Say", enableMotion = true, section = { className: "py-16 px-6 bg-muted" }, container = { className: "max-w-7xl mx-auto" }, header = { className: "text-center mb-12" }, heading = {
33
- className: "text-3xl md:text-4xl font-bold font-poppins text-foreground",
34
- }, grid = { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8" }, card = {
35
- className: "bg-card/90 backdrop-blur p-6 rounded-lg shadow-md transition-transform duration-200 hover:-translate-y-1 border border-border bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] shadow-[var(--card-shadow)]",
36
- }, content = { className: "flex flex-col space-y-4" }, text = {
37
- className: "text-card-foreground text-base leading-relaxed italic font-inter text-[var(--card-fg)]",
38
- }, author = {
39
- className: "text-muted-foreground text-sm font-medium font-poppins text-[var(--card-muted-fg)]",
40
- }, avatar = {
41
- className: "w-12 h-12 bg-primary text-primary-foreground rounded-full flex items-center justify-center text-lg font-bold bg-[var(--badge-bg)] text-[var(--badge-fg)] border-[var(--badge-border)]",
42
- }, avatarText = { className: "text-primary-foreground font-bold" }, ariaLabel = "Testimonials section", }) {
43
- return (_jsx("section", { id: id || "testimonials", className: cn(section.className, className), "aria-label": ariaLabel, children: _jsxs("div", { className: container.className, children: [_jsx("div", { className: header.className, children: _jsx("h2", { className: heading.className, children: testimonialSectionHeader }) }), _jsx("div", { className: grid.className, children: testimonials.map((testimonial, index) => (_jsx(TestimonialCard, { testimonialText: testimonial.testimonialText, testimonialAuthor: testimonial.testimonialAuthor, testimonialAuthorInitials: testimonial.testimonialAuthorInitials, card: {
44
- className: cn(card.className, !enableMotion && "transition-none hover:!translate-y-0"),
45
- }, content: content, text: text, author: author, avatar: avatar, avatarText: avatarText }, index))) })] }) }));
46
- }
@@ -1,46 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { cn } from "@nextworks/blocks-core";
4
- const defaultTrustBadgeData = [
5
- {
6
- badgeText: "10,000+ businesses",
7
- badgeDescription: "Trusted by",
8
- badgeIcon: "📊",
9
- },
10
- {
11
- badgeText: "SOC 2 Compliant",
12
- badgeDescription: "Enterprise security",
13
- badgeIcon: "🔒",
14
- },
15
- {
16
- badgeText: "99.9% Uptime",
17
- badgeDescription: "Reliable service",
18
- badgeIcon: "⚡",
19
- },
20
- ];
21
- /**
22
- * Compact section to showcase trust signals like usage stats and compliance.
23
- *
24
- * @remarks
25
- * - Horizontal by default; switch to vertical with layout="vertical".
26
- * - Hover motion can be disabled via enableMotion.
27
- *
28
- * @example
29
- * <TrustBadges badges={[{ badgeText: 'SOC 2', badgeDescription: 'Security', badgeIcon: '🔒' }]} />
30
- */
31
- export function TrustBadges({ id, className, badges = defaultTrustBadgeData, trustBadgesSectionHeader, section = { className: "py-8 px-6 bg-muted" }, container = { className: "max-w-7xl mx-auto" }, header = { className: "text-center mb-6" }, heading = {
32
- className: "text-xl font-semibold text-foreground text-[var(--heading-fg)]",
33
- }, badgesContainer = {
34
- className: "flex flex-col md:flex-row justify-center items-center gap-8 flex-wrap",
35
- }, badge = {
36
- className: "flex flex-col items-center text-center min-w-[200px] transition-all duration-300 ease-in-out hover:scale-[1.02]",
37
- }, badgeContent = { className: "flex flex-col items-center space-y-2" }, icon = { className: "text-2xl mb-2" }, description = {
38
- className: "text-sm font-medium text-muted-foreground text-[var(--card-muted-fg)]",
39
- }, text = {
40
- className: "text-lg font-bold text-foreground text-[var(--card-fg)]",
41
- }, layout = "horizontal", enableMotion = true, ariaLabel = "Trust badges section", }) {
42
- const containerClasses = layout === "vertical"
43
- ? "flex flex-col justify-center items-center gap-8"
44
- : badgesContainer.className;
45
- return (_jsx("section", { id: id || "trust-badges", className: cn(section.className, className), "aria-label": ariaLabel, children: _jsxs("div", { className: container.className, children: [trustBadgesSectionHeader && (_jsx("div", { className: header.className, children: _jsx("h2", { className: heading.className, children: trustBadgesSectionHeader }) })), _jsx("div", { className: containerClasses, children: badges.map((badgeData, index) => (_jsx("div", { className: cn(badge.className, !enableMotion && "transition-none hover:!scale-100"), children: _jsxs("div", { className: badgeContent.className, children: [badgeData.badgeIcon && (_jsx("div", { className: icon.className, children: badgeData.badgeIcon })), badgeData.badgeDescription && (_jsx("p", { className: description.className, children: badgeData.badgeDescription })), _jsx("p", { className: text.className, children: badgeData.badgeText })] }) }, index))) })] }) }));
46
- }