@nextworks/blocks-templates 0.1.0-alpha.0 → 0.1.0-alpha.13

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 (104) hide show
  1. package/dist/templates/digitalagency/components/Contact.d.ts.map +1 -1
  2. package/dist/templates/digitalagency/components/Contact.jsx +0 -1
  3. package/dist/templates/digitalagency/components/Portfolio.d.ts.map +1 -1
  4. package/dist/templates/digitalagency/components/Portfolio.jsx +0 -6
  5. package/dist/templates/productlaunch/components/Contact.d.ts.map +1 -1
  6. package/dist/templates/productlaunch/components/Contact.jsx +0 -1
  7. package/dist/templates/saasdashboard/components/Contact.d.ts.map +1 -1
  8. package/dist/templates/saasdashboard/components/Contact.jsx +0 -1
  9. package/package.json +14 -7
  10. package/dist/index.d.ts +0 -5
  11. package/dist/templates/digitalagency/Page.d.ts +0 -3
  12. package/dist/templates/digitalagency/Page.js +0 -18
  13. package/dist/templates/digitalagency/PresetThemeVars.d.ts +0 -11
  14. package/dist/templates/digitalagency/PresetThemeVars.js +0 -29
  15. package/dist/templates/digitalagency/components/About.d.ts +0 -3
  16. package/dist/templates/digitalagency/components/About.js +0 -45
  17. package/dist/templates/digitalagency/components/CTA.d.ts +0 -3
  18. package/dist/templates/digitalagency/components/CTA.js +0 -33
  19. package/dist/templates/digitalagency/components/Contact.d.ts +0 -3
  20. package/dist/templates/digitalagency/components/Contact.js +0 -91
  21. package/dist/templates/digitalagency/components/Footer.d.ts +0 -8
  22. package/dist/templates/digitalagency/components/Footer.js +0 -58
  23. package/dist/templates/digitalagency/components/Hero.d.ts +0 -7
  24. package/dist/templates/digitalagency/components/Hero.js +0 -69
  25. package/dist/templates/digitalagency/components/Navbar.d.ts +0 -21
  26. package/dist/templates/digitalagency/components/Navbar.js +0 -86
  27. package/dist/templates/digitalagency/components/NetworkPattern.d.ts +0 -8
  28. package/dist/templates/digitalagency/components/NetworkPattern.js +0 -38
  29. package/dist/templates/digitalagency/components/Portfolio.d.ts +0 -3
  30. package/dist/templates/digitalagency/components/Portfolio.js +0 -108
  31. package/dist/templates/digitalagency/components/Pricing.d.ts +0 -3
  32. package/dist/templates/digitalagency/components/Pricing.js +0 -82
  33. package/dist/templates/digitalagency/components/Process.d.ts +0 -3
  34. package/dist/templates/digitalagency/components/Process.js +0 -38
  35. package/dist/templates/digitalagency/components/Services.d.ts +0 -3
  36. package/dist/templates/digitalagency/components/Services.js +0 -34
  37. package/dist/templates/digitalagency/components/Team.d.ts +0 -3
  38. package/dist/templates/digitalagency/components/Team.js +0 -14
  39. package/dist/templates/digitalagency/components/Testimonials.d.ts +0 -3
  40. package/dist/templates/digitalagency/components/Testimonials.js +0 -38
  41. package/dist/templates/gallery/PresetThemeVars.d.ts +0 -15
  42. package/dist/templates/gallery/PresetThemeVars.js +0 -31
  43. package/dist/templates/gallery/page.d.ts +0 -2
  44. package/dist/templates/gallery/page.js +0 -151
  45. package/dist/templates/productlaunch/Page.d.ts +0 -2
  46. package/dist/templates/productlaunch/Page.js +0 -20
  47. package/dist/templates/productlaunch/PresetThemeVars.d.ts +0 -16
  48. package/dist/templates/productlaunch/PresetThemeVars.js +0 -28
  49. package/dist/templates/productlaunch/components/About.d.ts +0 -15
  50. package/dist/templates/productlaunch/components/About.js +0 -59
  51. package/dist/templates/productlaunch/components/CTA.d.ts +0 -3
  52. package/dist/templates/productlaunch/components/CTA.js +0 -39
  53. package/dist/templates/productlaunch/components/Contact.d.ts +0 -3
  54. package/dist/templates/productlaunch/components/Contact.js +0 -93
  55. package/dist/templates/productlaunch/components/FAQ.d.ts +0 -7
  56. package/dist/templates/productlaunch/components/FAQ.js +0 -64
  57. package/dist/templates/productlaunch/components/Features.d.ts +0 -6
  58. package/dist/templates/productlaunch/components/Features.js +0 -52
  59. package/dist/templates/productlaunch/components/Footer.d.ts +0 -5
  60. package/dist/templates/productlaunch/components/Footer.js +0 -103
  61. package/dist/templates/productlaunch/components/Hero.d.ts +0 -6
  62. package/dist/templates/productlaunch/components/Hero.js +0 -70
  63. package/dist/templates/productlaunch/components/Navbar.d.ts +0 -25
  64. package/dist/templates/productlaunch/components/Navbar.js +0 -82
  65. package/dist/templates/productlaunch/components/Pricing.d.ts +0 -5
  66. package/dist/templates/productlaunch/components/Pricing.js +0 -77
  67. package/dist/templates/productlaunch/components/ProcessTimeline.d.ts +0 -5
  68. package/dist/templates/productlaunch/components/ProcessTimeline.js +0 -63
  69. package/dist/templates/productlaunch/components/ServicesGrid.d.ts +0 -5
  70. package/dist/templates/productlaunch/components/ServicesGrid.js +0 -41
  71. package/dist/templates/productlaunch/components/Team.d.ts +0 -5
  72. package/dist/templates/productlaunch/components/Team.js +0 -72
  73. package/dist/templates/productlaunch/components/Testimonials.d.ts +0 -5
  74. package/dist/templates/productlaunch/components/Testimonials.js +0 -55
  75. package/dist/templates/productlaunch/components/TrustBadges.d.ts +0 -5
  76. package/dist/templates/productlaunch/components/TrustBadges.js +0 -50
  77. package/dist/templates/saasdashboard/Page.d.ts +0 -2
  78. package/dist/templates/saasdashboard/Page.js +0 -15
  79. package/dist/templates/saasdashboard/PresetThemeVars.d.ts +0 -11
  80. package/dist/templates/saasdashboard/PresetThemeVars.js +0 -27
  81. package/dist/templates/saasdashboard/components/Contact.d.ts +0 -3
  82. package/dist/templates/saasdashboard/components/Contact.js +0 -83
  83. package/dist/templates/saasdashboard/components/Dashboard.d.ts +0 -21
  84. package/dist/templates/saasdashboard/components/Dashboard.js +0 -120
  85. package/dist/templates/saasdashboard/components/FAQ.d.ts +0 -2
  86. package/dist/templates/saasdashboard/components/FAQ.js +0 -35
  87. package/dist/templates/saasdashboard/components/Features.d.ts +0 -2
  88. package/dist/templates/saasdashboard/components/Features.js +0 -55
  89. package/dist/templates/saasdashboard/components/Footer.d.ts +0 -2
  90. package/dist/templates/saasdashboard/components/Footer.js +0 -52
  91. package/dist/templates/saasdashboard/components/Hero.d.ts +0 -2
  92. package/dist/templates/saasdashboard/components/Hero.js +0 -65
  93. package/dist/templates/saasdashboard/components/Hero_mask.d.ts +0 -3
  94. package/dist/templates/saasdashboard/components/Hero_mask.js +0 -73
  95. package/dist/templates/saasdashboard/components/Navbar.d.ts +0 -25
  96. package/dist/templates/saasdashboard/components/Navbar.js +0 -83
  97. package/dist/templates/saasdashboard/components/Pricing.d.ts +0 -2
  98. package/dist/templates/saasdashboard/components/Pricing.js +0 -65
  99. package/dist/templates/saasdashboard/components/SmoothScroll.d.ts +0 -2
  100. package/dist/templates/saasdashboard/components/SmoothScroll.js +0 -87
  101. package/dist/templates/saasdashboard/components/Testimonials.d.ts +0 -2
  102. package/dist/templates/saasdashboard/components/Testimonials.js +0 -35
  103. package/dist/templates/saasdashboard/components/TrustBadges.d.ts +0 -2
  104. package/dist/templates/saasdashboard/components/TrustBadges.js +0 -37
@@ -1,2 +0,0 @@
1
- export declare function Pricing(): import("react").JSX.Element;
2
- //# sourceMappingURL=Pricing.d.ts.map
@@ -1,65 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { Pricing as SharedPricing } from "@nextworks/blocks-sections";
4
- import { cn } from "@nextworks/blocks-core";
5
- const DefaultPricingData = [
6
- {
7
- pricingPlanHeaderText: "Starter Plan",
8
- pricingPlanPrice: "$29/month",
9
- pricingPlanFeatures: [
10
- "Up to 5 users",
11
- "3 projects",
12
- "Basic analytics",
13
- "email support",
14
- ],
15
- pricingPlanCTALabel: "Select Plan",
16
- pricingPlanCTAHref: "#contact",
17
- },
18
- {
19
- pricingPlanHeaderText: "Professional Plan",
20
- pricingPlanPrice: "$79.99/month",
21
- pricingPlanFeatures: [
22
- "Up to 25 users",
23
- "Unlimited projects",
24
- "Advanced analytics",
25
- "Priority support",
26
- "Api access",
27
- ],
28
- pricingPlanCTALabel: "Select Plan",
29
- pricingPlanCTAHref: "#contact",
30
- isPopular: true,
31
- },
32
- {
33
- pricingPlanHeaderText: "Enterprise Plan",
34
- pricingPlanPrice: "$199.99/month",
35
- pricingPlanFeatures: [
36
- "Unlimited users",
37
- "Custom integrations",
38
- "Dedicated account manager",
39
- "SLA guarantee",
40
- ],
41
- pricingPlanCTALabel: "Select Plan",
42
- pricingPlanCTAHref: "#contact",
43
- },
44
- ];
45
- export function Pricing() {
46
- return (_jsx(SharedPricing, { pricingPlans: DefaultPricingData, pricingHeadingText: "Simple Pricing That Scales With You", className: cn("relative"), section: {
47
- className: "pt-20 pb-5 bg-[var(--section-bg,theme(colors.white))] dark:bg-[var(--section-bg,theme(colors.gray.900))]",
48
- }, heading: {
49
- className: "text-3xl font-bold font-inter text-center mb-8 text-[var(--heading-fg)]",
50
- }, card: {
51
- className: "relative rounded-lg transition-all duration-300 will-change-transform hover:-translate-y-1 bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] shadow-[var(--card-shadow)]",
52
- }, title: {
53
- className: "text-xl font-bold font-inter mb-2 text-[var(--card-title-fg)]",
54
- }, price: {
55
- className: "text-2xl font-bold font-inter mb-4 text-[var(--card-title-fg)]",
56
- }, featureItem: {
57
- className: "flex items-center text-base font-inter text-[var(--card-muted-fg)]",
58
- }, cta: {
59
- variant: "default",
60
- size: "lg",
61
- className: "w-full font-semibold font-inter shadow-md hover:shadow-lg transition-all duration-200 hover:-translate-y-0.5 [--btn-bg:theme(colors.sky.600)] hover:[--btn-hover-bg:theme(colors.sky.700)] [--btn-fg:theme(colors.white)] hover:[--btn-hover-fg:theme(colors.white)] border-[var(--btn-border)] focus-visible:ring-[var(--btn-ring)]",
62
- }, popularBadge: {
63
- className: "absolute -top-3 left-1/2 -translate-x-1/2 px-4 py-1 rounded-full text-xs font-semibold bg-[var(--badge-active-bg)] text-[var(--badge-active-fg)] border-[var(--badge-active-border)]",
64
- }, ariaLabel: "Pricing section" }));
65
- }
@@ -1,2 +0,0 @@
1
- export declare function SmoothScroll(): null;
2
- //# sourceMappingURL=SmoothScroll.d.ts.map
@@ -1,87 +0,0 @@
1
- "use client";
2
- import { useEffect } from "react";
3
- // Smoothly scrolls to hash targets with a custom, faster duration (~300ms)
4
- export function SmoothScroll() {
5
- useEffect(() => {
6
- let suppressClick = false;
7
- const animateTo = (href) => {
8
- const el = document.querySelector(href);
9
- if (!el)
10
- return;
11
- const navbarOffsetPx = 64; // matches h-16 sticky navbar
12
- const start = window.scrollY;
13
- const targetTop = el.getBoundingClientRect().top + window.scrollY - navbarOffsetPx;
14
- const distance = targetTop - start;
15
- const duration = 300; // ms
16
- const startTime = performance.now();
17
- // iOS-like easing
18
- const easeOutQuart = (t) => 1 - Math.pow(1 - t, 4);
19
- const step = (now) => {
20
- const elapsed = now - startTime;
21
- const t = Math.min(1, elapsed / duration);
22
- const eased = easeOutQuart(t);
23
- window.scrollTo(0, start + distance * eased);
24
- if (t < 1)
25
- requestAnimationFrame(step);
26
- else
27
- history.replaceState(null, "", href);
28
- };
29
- requestAnimationFrame(step);
30
- };
31
- const onPointerDown = (e) => {
32
- const ev = e;
33
- const target = e.currentTarget;
34
- const href = target.getAttribute("href");
35
- if (!href || !href.startsWith("#"))
36
- return;
37
- // Only primary button, no modifiers
38
- if (ev.button !== 0 ||
39
- ev.metaKey ||
40
- ev.ctrlKey ||
41
- ev.altKey ||
42
- ev.shiftKey)
43
- return;
44
- e.preventDefault();
45
- suppressClick = true;
46
- animateTo(href);
47
- };
48
- const onClick = (e) => {
49
- const target = e.currentTarget;
50
- const href = target.getAttribute("href");
51
- if (!href || !href.startsWith("#"))
52
- return;
53
- if (suppressClick) {
54
- e.preventDefault();
55
- suppressClick = false;
56
- return;
57
- }
58
- e.preventDefault();
59
- animateTo(href);
60
- };
61
- const onKeyDown = (e) => {
62
- const ev = e;
63
- if (ev.key !== "Enter" && ev.key !== " ")
64
- return;
65
- const target = e.currentTarget;
66
- const href = target.getAttribute("href");
67
- if (!href || !href.startsWith("#"))
68
- return;
69
- e.preventDefault();
70
- animateTo(href);
71
- };
72
- const links = Array.from(document.querySelectorAll('a[href^="#"]'));
73
- links.forEach((a) => {
74
- a.addEventListener("pointerdown", onPointerDown);
75
- a.addEventListener("click", onClick);
76
- a.addEventListener("keydown", onKeyDown);
77
- });
78
- return () => {
79
- links.forEach((a) => {
80
- a.removeEventListener("pointerdown", onPointerDown);
81
- a.removeEventListener("click", onClick);
82
- a.removeEventListener("keydown", onKeyDown);
83
- });
84
- };
85
- }, []);
86
- return null;
87
- }
@@ -1,2 +0,0 @@
1
- export declare function Testimonials(): import("react").JSX.Element;
2
- //# sourceMappingURL=Testimonials.d.ts.map
@@ -1,35 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Testimonials as SharedTestimonials } from "@nextworks/blocks-sections";
4
- import { cn } from "@nextworks/blocks-core";
5
- export function Testimonials() {
6
- return (_jsxs("div", { className: "relative", children: [_jsx("div", { "aria-hidden": true, className: "pointer-events-none absolute inset-0 -z-10 [background-image:radial-gradient(60rem_60rem_at_0%_0%,rgba(59,130,246,0.08),transparent_40%),radial-gradient(50rem_50rem_at_100%_100%,rgba(168,85,247,0.06),transparent_40%)] opacity-20" }), _jsx("div", { "aria-hidden": true, className: "pointer-events-none absolute inset-0 -z-10 [background-image:radial-gradient(rgba(255,255,255,0.07)_1px,transparent_1px)] [background-size:14px_14px] opacity-[0.05]" }), _jsx(SharedTestimonials, { testimonials: [
7
- {
8
- testimonialText: "DashFlow replaced 6 different tools for us. Our team productivity increased 40% in the first month.",
9
- testimonialAuthor: "- Sarah Chen, Marketing Director at TechStart",
10
- testimonialAuthorInitials: "SC",
11
- },
12
- {
13
- testimonialText: "Finally, a dashboard that actually makes sense. Setup took 10 minutes, not 10 hours.",
14
- testimonialAuthor: "- Mike Rodriguez, Operations Manager",
15
- testimonialAuthorInitials: "MR",
16
- },
17
- {
18
- testimonialText: "The analytics alone pay for the subscription. We spot trends weeks earlier now.",
19
- testimonialAuthor: "- Lisa Park, CEO of GrowthCo",
20
- testimonialAuthorInitials: "LP",
21
- },
22
- ], testimonialSectionHeader: "What Our Customers Say", className: cn("relative"), section: { className: "py-16 px-6 bg-background" }, container: { className: "max-w-7xl mx-auto" }, header: { className: "text-center mb-12" }, heading: {
23
- className: "text-3xl md:text-4xl font-bold font-inter text-[var(--heading-fg)]",
24
- }, grid: {
25
- className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",
26
- }, card: {
27
- className: "p-6 rounded-lg transition-transform duration-200 hover:-translate-y-1 bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] shadow-[var(--card-shadow)]",
28
- }, text: {
29
- className: "italic font-inter font-normal text-base text-[var(--card-fg)]",
30
- }, author: {
31
- className: "text-sm font-medium font-inter text-[var(--card-muted-fg)]",
32
- }, avatar: {
33
- className: "w-12 h-12 rounded-full flex items-center justify-center text-lg font-bold bg-[var(--badge-bg)] text-[var(--badge-fg)] border-[var(--badge-border)]",
34
- }, avatarText: { className: "font-bold" }, ariaLabel: "Customer testimonials" })] }));
35
- }
@@ -1,2 +0,0 @@
1
- export declare function TrustBadges(): import("react").JSX.Element;
2
- //# sourceMappingURL=TrustBadges.d.ts.map
@@ -1,37 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { TrustBadges as SharedTrustBadges } from "@nextworks/blocks-sections";
4
- import { cn } from "@nextworks/blocks-core";
5
- const defaultBadgesInfo = [
6
- {
7
- badgeText: "10,000+ businesses",
8
- badgeDescription: "Trusted by",
9
- badgeIcon: "📊",
10
- },
11
- {
12
- badgeText: "SOC 2 Compliant",
13
- badgeDescription: "Enterprise security",
14
- badgeIcon: "🔒",
15
- },
16
- {
17
- badgeText: "99.9% Uptime",
18
- badgeDescription: "Reliable service",
19
- badgeIcon: "⚡",
20
- },
21
- {
22
- badgeText: "4.9/5 Rating",
23
- badgeDescription: "Customer satisfaction",
24
- badgeIcon: "⭐",
25
- },
26
- ];
27
- export function TrustBadges() {
28
- return (_jsx(SharedTrustBadges, { badges: defaultBadgesInfo, className: cn("relative"), section: { className: "py-8 px-6 bg-blue-950/10 dark:bg-blue-950" }, heading: {
29
- className: "text-2xl font-bold font-inter text-gray-700 dark:text-gray-200",
30
- }, badgesContainer: {
31
- className: "flex flex-wrap items-center justify-center gap-8",
32
- }, badge: {
33
- className: "transition-all duration-200 grayscale hover:grayscale-0 hover:-translate-y-0.5",
34
- }, text: {
35
- className: "text-base font-medium font-inter text-gray-900 dark:text-white",
36
- }, ariaLabel: "Trust badges section" }));
37
- }