@nextworks/blocks-templates 0.1.0-alpha.8 → 0.2.0-alpha.10

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 (147) hide show
  1. package/README.md +25 -11
  2. package/dist/templates/digitalagency/Page.d.ts.map +1 -1
  3. package/dist/templates/digitalagency/Page.jsx +0 -1
  4. package/dist/templates/digitalagency/components/Contact.d.ts.map +1 -1
  5. package/dist/templates/digitalagency/components/Contact.jsx +3 -4
  6. package/dist/templates/digitalagency/components/Footer.d.ts +1 -1
  7. package/dist/templates/digitalagency/components/Footer.jsx +1 -1
  8. package/dist/templates/digitalagency/components/Hero.d.ts +1 -1
  9. package/dist/templates/digitalagency/components/Hero.jsx +1 -1
  10. package/dist/templates/digitalagency/components/Navbar.d.ts +1 -2
  11. package/dist/templates/digitalagency/components/Navbar.d.ts.map +1 -1
  12. package/dist/templates/digitalagency/components/Navbar.jsx +1 -1
  13. package/dist/templates/digitalagency/components/NetworkPattern.d.ts +0 -1
  14. package/dist/templates/digitalagency/components/NetworkPattern.d.ts.map +1 -1
  15. package/dist/templates/digitalagency/components/NetworkPattern.jsx +1 -4
  16. package/dist/templates/digitalagency/components/Portfolio.jsx +1 -1
  17. package/dist/templates/gallery/PresetThemeVars.d.ts +2 -2
  18. package/dist/templates/gallery/PresetThemeVars.jsx +2 -2
  19. package/dist/templates/gallery/page.d.ts.map +1 -1
  20. package/dist/templates/gallery/page.jsx +1 -2
  21. package/dist/templates/productlaunch/components/About.d.ts.map +1 -1
  22. package/dist/templates/productlaunch/components/About.jsx +0 -2
  23. package/dist/templates/productlaunch/components/Contact.d.ts.map +1 -1
  24. package/dist/templates/productlaunch/components/Contact.jsx +0 -1
  25. package/dist/templates/productlaunch/components/FAQ.d.ts +1 -3
  26. package/dist/templates/productlaunch/components/FAQ.d.ts.map +1 -1
  27. package/dist/templates/productlaunch/components/FAQ.jsx +2 -10
  28. package/dist/templates/productlaunch/components/Features.d.ts +1 -2
  29. package/dist/templates/productlaunch/components/Features.d.ts.map +1 -1
  30. package/dist/templates/productlaunch/components/Features.jsx +1 -2
  31. package/dist/templates/productlaunch/components/Footer.d.ts +1 -1
  32. package/dist/templates/productlaunch/components/Footer.jsx +1 -1
  33. package/dist/templates/productlaunch/components/Hero.d.ts +1 -2
  34. package/dist/templates/productlaunch/components/Hero.d.ts.map +1 -1
  35. package/dist/templates/productlaunch/components/Hero.jsx +5 -6
  36. package/dist/templates/productlaunch/components/Navbar.d.ts +1 -1
  37. package/dist/templates/productlaunch/components/Navbar.jsx +79 -75
  38. package/dist/templates/productlaunch/components/Pricing.d.ts +1 -1
  39. package/dist/templates/productlaunch/components/Pricing.jsx +1 -1
  40. package/dist/templates/productlaunch/components/ProcessTimeline.d.ts +1 -1
  41. package/dist/templates/productlaunch/components/ProcessTimeline.jsx +1 -1
  42. package/dist/templates/productlaunch/components/ServicesGrid.d.ts +1 -1
  43. package/dist/templates/productlaunch/components/ServicesGrid.jsx +1 -1
  44. package/dist/templates/productlaunch/components/Team.d.ts +1 -1
  45. package/dist/templates/productlaunch/components/Team.jsx +1 -1
  46. package/dist/templates/productlaunch/components/Testimonials.d.ts +1 -1
  47. package/dist/templates/productlaunch/components/Testimonials.jsx +1 -1
  48. package/dist/templates/productlaunch/components/TrustBadges.d.ts +1 -1
  49. package/dist/templates/productlaunch/components/TrustBadges.jsx +1 -1
  50. package/dist/templates/saasdashboard/components/Dashboard.jsx +2 -2
  51. package/dist/templates/saasdashboard/components/Hero.d.ts.map +1 -1
  52. package/dist/templates/saasdashboard/components/Hero.jsx +0 -1
  53. package/dist/templates/saasdashboard/components/Hero_mask.d.ts.map +1 -1
  54. package/dist/templates/saasdashboard/components/Hero_mask.jsx +0 -1
  55. package/dist/templates/saasdashboard/components/Navbar.d.ts +1 -1
  56. package/dist/templates/saasdashboard/components/Navbar.d.ts.map +1 -1
  57. package/dist/templates/saasdashboard/components/Navbar.jsx +1 -2
  58. package/dist/templates/saasdashboard/components/SmoothScroll.d.ts.map +1 -1
  59. package/dist/templates/saasdashboard/components/SmoothScroll.jsx +3 -4
  60. package/package.json +34 -34
  61. package/dist/index.d.ts +0 -5
  62. package/dist/index.js +0 -4
  63. package/dist/templates/digitalagency/Page.d.ts +0 -3
  64. package/dist/templates/digitalagency/Page.js +0 -18
  65. package/dist/templates/digitalagency/PresetThemeVars.d.ts +0 -11
  66. package/dist/templates/digitalagency/PresetThemeVars.js +0 -29
  67. package/dist/templates/digitalagency/components/About.d.ts +0 -3
  68. package/dist/templates/digitalagency/components/About.js +0 -45
  69. package/dist/templates/digitalagency/components/CTA.d.ts +0 -3
  70. package/dist/templates/digitalagency/components/CTA.js +0 -33
  71. package/dist/templates/digitalagency/components/Contact.d.ts +0 -3
  72. package/dist/templates/digitalagency/components/Contact.js +0 -91
  73. package/dist/templates/digitalagency/components/Footer.js +0 -58
  74. package/dist/templates/digitalagency/components/Hero.js +0 -69
  75. package/dist/templates/digitalagency/components/Navbar.js +0 -86
  76. package/dist/templates/digitalagency/components/NetworkPattern.js +0 -38
  77. package/dist/templates/digitalagency/components/Portfolio.d.ts +0 -3
  78. package/dist/templates/digitalagency/components/Portfolio.js +0 -108
  79. package/dist/templates/digitalagency/components/Pricing.d.ts +0 -3
  80. package/dist/templates/digitalagency/components/Pricing.js +0 -82
  81. package/dist/templates/digitalagency/components/Pricing.jsx +0 -84
  82. package/dist/templates/digitalagency/components/Process.d.ts +0 -3
  83. package/dist/templates/digitalagency/components/Process.js +0 -38
  84. package/dist/templates/digitalagency/components/Process.jsx +0 -40
  85. package/dist/templates/digitalagency/components/Services.d.ts +0 -3
  86. package/dist/templates/digitalagency/components/Services.js +0 -34
  87. package/dist/templates/digitalagency/components/Services.jsx +0 -36
  88. package/dist/templates/digitalagency/components/Team.d.ts +0 -3
  89. package/dist/templates/digitalagency/components/Team.js +0 -14
  90. package/dist/templates/digitalagency/components/Team.jsx +0 -14
  91. package/dist/templates/digitalagency/components/Testimonials.d.ts +0 -3
  92. package/dist/templates/digitalagency/components/Testimonials.js +0 -38
  93. package/dist/templates/digitalagency/components/Testimonials.jsx +0 -40
  94. package/dist/templates/gallery/PresetThemeVars.js +0 -31
  95. package/dist/templates/gallery/page.d.ts +0 -2
  96. package/dist/templates/gallery/page.js +0 -151
  97. package/dist/templates/productlaunch/Page.d.ts +0 -2
  98. package/dist/templates/productlaunch/Page.js +0 -20
  99. package/dist/templates/productlaunch/Page.jsx +0 -42
  100. package/dist/templates/productlaunch/PresetThemeVars.d.ts +0 -16
  101. package/dist/templates/productlaunch/PresetThemeVars.js +0 -28
  102. package/dist/templates/productlaunch/components/About.d.ts +0 -15
  103. package/dist/templates/productlaunch/components/About.js +0 -59
  104. package/dist/templates/productlaunch/components/CTA.d.ts +0 -3
  105. package/dist/templates/productlaunch/components/CTA.js +0 -39
  106. package/dist/templates/productlaunch/components/Contact.d.ts +0 -3
  107. package/dist/templates/productlaunch/components/Contact.js +0 -93
  108. package/dist/templates/productlaunch/components/FAQ.js +0 -64
  109. package/dist/templates/productlaunch/components/Features.js +0 -52
  110. package/dist/templates/productlaunch/components/Footer.js +0 -103
  111. package/dist/templates/productlaunch/components/Hero.js +0 -70
  112. package/dist/templates/productlaunch/components/Navbar.js +0 -82
  113. package/dist/templates/productlaunch/components/Pricing.js +0 -77
  114. package/dist/templates/productlaunch/components/ProcessTimeline.js +0 -63
  115. package/dist/templates/productlaunch/components/ServicesGrid.js +0 -41
  116. package/dist/templates/productlaunch/components/Team.js +0 -72
  117. package/dist/templates/productlaunch/components/Testimonials.js +0 -55
  118. package/dist/templates/productlaunch/components/TrustBadges.js +0 -50
  119. package/dist/templates/saasdashboard/Page.d.ts +0 -2
  120. package/dist/templates/saasdashboard/Page.js +0 -15
  121. package/dist/templates/saasdashboard/Page.jsx +0 -35
  122. package/dist/templates/saasdashboard/PresetThemeVars.d.ts +0 -11
  123. package/dist/templates/saasdashboard/PresetThemeVars.js +0 -27
  124. package/dist/templates/saasdashboard/components/Contact.d.ts +0 -3
  125. package/dist/templates/saasdashboard/components/Contact.js +0 -83
  126. package/dist/templates/saasdashboard/components/Dashboard.d.ts +0 -21
  127. package/dist/templates/saasdashboard/components/Dashboard.js +0 -120
  128. package/dist/templates/saasdashboard/components/FAQ.d.ts +0 -2
  129. package/dist/templates/saasdashboard/components/FAQ.js +0 -35
  130. package/dist/templates/saasdashboard/components/FAQ.jsx +0 -34
  131. package/dist/templates/saasdashboard/components/Features.d.ts +0 -2
  132. package/dist/templates/saasdashboard/components/Features.js +0 -55
  133. package/dist/templates/saasdashboard/components/Footer.d.ts +0 -2
  134. package/dist/templates/saasdashboard/components/Footer.js +0 -52
  135. package/dist/templates/saasdashboard/components/Hero.d.ts +0 -2
  136. package/dist/templates/saasdashboard/components/Hero.js +0 -65
  137. package/dist/templates/saasdashboard/components/Hero_mask.d.ts +0 -3
  138. package/dist/templates/saasdashboard/components/Hero_mask.js +0 -73
  139. package/dist/templates/saasdashboard/components/Navbar.js +0 -83
  140. package/dist/templates/saasdashboard/components/Pricing.d.ts +0 -2
  141. package/dist/templates/saasdashboard/components/Pricing.js +0 -65
  142. package/dist/templates/saasdashboard/components/SmoothScroll.d.ts +0 -2
  143. package/dist/templates/saasdashboard/components/SmoothScroll.js +0 -87
  144. package/dist/templates/saasdashboard/components/Testimonials.d.ts +0 -2
  145. package/dist/templates/saasdashboard/components/Testimonials.js +0 -35
  146. package/dist/templates/saasdashboard/components/TrustBadges.d.ts +0 -2
  147. package/dist/templates/saasdashboard/components/TrustBadges.js +0 -37
@@ -1,55 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { Features as SharedFeatures } from "@nextworks/blocks-sections";
4
- import { cn } from "@nextworks/blocks-core";
5
- const defaultFeaturesData = [
6
- {
7
- imageSrc: "/placeholders/saas_dashboard/projectBoard.png",
8
- imageAlt: "Project Management Dashboard",
9
- headingText: "Track Every Project",
10
- subheadingText: "Kanban boards, Gantt charts, and timeline views keep your team aligned and deadlines met",
11
- },
12
- {
13
- imageSrc: "/placeholders/saas_dashboard/analytics.png",
14
- imageAlt: "Analytics Dashboard",
15
- headingText: "Data-Driven Insights",
16
- subheadingText: "Real-time metrics, custom reports, and forecasting tools to make smarter business decisions",
17
- },
18
- {
19
- imageSrc: "/placeholders/saas_dashboard/chat.png",
20
- imageAlt: "Team Collaboration Tools",
21
- headingText: "Seamless Teamwork",
22
- subheadingText: "Built-in chat, file sharing, and @mentions keep everyone connected and productive",
23
- },
24
- ];
25
- export function Features() {
26
- return (_jsx(SharedFeatures, { sectionHeading: "Everything You Need to Run Your Business", sectionSubheading: "Powerful tools and insights to streamline your workflow and boost productivity", featuresData: defaultFeaturesData, className: cn("relative"), section: { className: "py-16 md:py-20 lg:py-24 bg-background" }, container: { className: "max-w-7xl mx-auto px-4 md:px-6 lg:px-8" }, header: { className: "text-center mb-12 md:mb-16" }, heading: {
27
- className: cn("font-inter mb-4 text-3xl font-bold text-[var(--heading-fg)] md:text-4xl lg:text-5xl"),
28
- }, subheading: {
29
- className: cn("font-inter mx-auto max-w-3xl text-lg leading-relaxed text-[var(--subheading-fg)] md:text-xl"),
30
- }, grid: {
31
- className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8",
32
- }, cardWrapper: {
33
- className: "group motion-reduce:transform-none motion-reduce:transition-none",
34
- }, card: {
35
- className: "h-full transition-all duration-300 hover:-translate-y-2 hover:shadow-xl bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] rounded-lg shadow-md overflow-hidden",
36
- }, image: {
37
- className: "w-full h-48 md:h-56 object-cover transition-transform duration-300 group-hover:scale-[1.03]",
38
- }, cardHeading: {
39
- className: cn("font-inter mb-3 text-xl leading-tight font-semibold text-[var(--card-title-fg)] md:text-2xl"),
40
- }, cardSubheading: {
41
- className: cn("font-inter text-sm leading-relaxed text-[var(--card-muted-fg)] md:text-base"),
42
- },
43
- // Motion config showcasing upgraded API
44
- motionConfig: {
45
- initial: { opacity: 0, y: 12 },
46
- whileInView: { opacity: 1, y: 0 },
47
- viewport: { once: true, amount: 0.2 },
48
- transition: {
49
- type: "spring",
50
- stiffness: 125,
51
- damping: 50,
52
- delay: 0.12,
53
- },
54
- }, ariaLabel: "Features section" }));
55
- }
@@ -1,2 +0,0 @@
1
- export declare function Footer(): import("react").JSX.Element;
2
- //# sourceMappingURL=Footer.d.ts.map
@@ -1,52 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { Footer as SharedFooter } from "@nextworks/blocks-sections";
4
- import { cn } from "@nextworks/blocks-core";
5
- const defaultNavLinks = [
6
- {
7
- heading: "Product",
8
- links: [
9
- { name: "Features", href: "#features" },
10
- { name: "Pricing", href: "#pricing" },
11
- { name: "Documentation", href: "#documentation" },
12
- { name: "FAQ", href: "#faq" },
13
- ],
14
- },
15
- {
16
- heading: "Company",
17
- links: [
18
- { name: "About", href: "#about" },
19
- { name: "Careers", href: "#careers" },
20
- { name: "Blog", href: "#blog" },
21
- { name: "Contact", href: "#contact" },
22
- ],
23
- },
24
- {
25
- heading: "Resources",
26
- links: [
27
- { name: "Help Center", href: "#help" },
28
- { name: "Terms of Service", href: "#terms" },
29
- { name: "Privacy Policy", href: "#privacy" },
30
- { name: "Status", href: "#status" },
31
- ],
32
- },
33
- ];
34
- export function Footer() {
35
- return (_jsx(SharedFooter, { footerBrandName: "Dash Flow", footerNavLinks: defaultNavLinks, className: cn("w-full"), section: {
36
- className: "w-full bg-blue-50 dark:bg-gray-900 text-gray-800 dark:text-white",
37
- }, container: { className: "max-w-7xl mx-auto px-6" }, brand: {
38
- className: "text-xl font-bold text-blue-600 dark:text-blue-400 font-outfit",
39
- }, brandWrapper: {
40
- className: "flex flex-col items-start text-left lg:pr-8",
41
- }, navSection: {
42
- className: "flex flex-col lg:flex-row items-start lg:items-start justify-center gap-8 lg:gap-12 pt-6.5 pb-8",
43
- }, navGroup: { className: "flex flex-col items-start text-left pt-1.5" }, navHeading: {
44
- className: "font-semibold text-gray-800 dark:text-white mb-3 text-xs uppercase tracking-wider font-inter",
45
- }, navLink: {
46
- className: "text-gray-600 dark:text-gray-300 hover:text-blue-500 dark:hover:text-blue-400 transition-colors duration-200 text-xs mb-2 block font-inter",
47
- }, socialSection: {
48
- className: "flex items-center justify-center gap-4 py-4",
49
- }, copyright: {
50
- className: "text-center text-xs text-gray-500 dark:text-gray-400 py-4 border-t border-gray-200 dark:border-gray-700 font-inter",
51
- }, ariaLabel: "Footer section" }));
52
- }
@@ -1,2 +0,0 @@
1
- export declare function Hero(): import("react").JSX.Element;
2
- //# sourceMappingURL=Hero.d.ts.map
@@ -1,65 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { HeroSplit as SharedHeroSplit } from "@nextworks/blocks-sections";
4
- import { Dashboard } from "./Dashboard";
5
- import { cn } from "@nextworks/blocks-core";
6
- const stats = [
7
- { value: "$124K", label: "Monthly Revenue" },
8
- { value: "+23%", label: "Growth Rate" },
9
- { value: "847", label: "Active Users" },
10
- ];
11
- const projects = ["Website Redesign", "Mobile App v2.0", "Marketing Campaign"];
12
- const floatingCards = [
13
- { position: "card-1", icon: "📊", text: "Real-time Analytics" },
14
- { position: "card-2", icon: "👥", text: "Team Collaboration" },
15
- ];
16
- const activeTab = "Analytics";
17
- const navItems = ["Analytics", "Projects", "Team"];
18
- export function Hero() {
19
- return (_jsx("div", { className: "relative", children: _jsx(SharedHeroSplit, { className: cn("relative"), heading: {
20
- text: "Manage Your Entire Business From One Powerful Dashboard",
21
- className: "text-3xl md:text-4xl lg:text-5xl font-bold leading-tight font-inter text-[var(--heading-fg)]",
22
- }, subheading: {
23
- text: "Stop switching between 12 different apps. DashFlow combines project management, analytics, team chat, and customer insights in one beautiful interface.",
24
- className: "text-base md:text-lg mt-6 mb-8 max-w-2xl font-inter font-normal text-[var(--subheading-fg)]",
25
- }, section: {
26
- className: "relative pt-1 px-8 pb-8 bg-[var(--hero-bg)] dark:bg-[var(--hero-bg)]",
27
- }, cta1: {
28
- label: "Start Free Trial",
29
- href: "#contact",
30
- variant: "default",
31
- size: "lg",
32
- className: [
33
- "text-base font-semibold font-inter shadow-lg hover:shadow-xl hover:-translate-y-0.5 transition-all duration-200 px-8 py-3",
34
- "[--btn-bg:theme(colors.sky.600)]",
35
- "hover:[--btn-hover-bg:theme(colors.sky.700)]",
36
- "[--btn-fg:theme(colors.white)]",
37
- "hover:[--btn-hover-fg:theme(colors.white)]",
38
- ].join(" "),
39
- }, cta2: {
40
- label: "Watch demo",
41
- href: "#demo",
42
- variant: "outline",
43
- size: "lg",
44
- className: [
45
- "text-base font-semibold font-inter shadow-lg hover:shadow-xl hover:-translate-y-0.5 transition-all duration-200 px-8 py-3",
46
- "[--btn-fg:theme(colors.sky.600)]",
47
- "[--btn-border:theme(colors.sky.600)]",
48
- "hover:[--btn-hover-bg:theme(colors.sky.50)]",
49
- "hover:[--btn-hover-fg:theme(colors.sky.600)]",
50
- "dark:[--btn-fg:theme(colors.sky.500)]",
51
- "dark:[--btn-border:theme(colors.sky.500)]",
52
- "dark:hover:[--btn-hover-bg:theme(colors.sky.950)]",
53
- "dark:hover:[--btn-hover-fg:theme(colors.sky.500)]",
54
- ].join(" "),
55
- }, image: { src: undefined, alt: "Dashboard preview" }, imageLayout: "padded", fallback: _jsx("div", { className: "flex h-full w-full items-center justify-center", children: _jsx("div", { className: "relative w-[min(100%,720px)] overflow-hidden rounded-xl bg-white p-0 p-1 opacity-100 md:pt-8 lg:pt-1 dark:bg-blue-950", children: _jsx(Dashboard, { stats: stats, projects: projects, floatingCards: floatingCards, navItems: navItems, activeTab: activeTab }) }) }), imageContainer: {
56
- className: "pl-0 relative self-start md:self-start md:flex-none md:shrink-0 w-full h-[24rem] sm:h-[32rem] md:h-[34rem] lg:h-[33rem] md:w-1/2 mb-0 md:mb-0 lg:mb-0 opacity-100",
57
- // "relative self-start md:self-start md:flex-none md:shrink-0 w-full h-[24rem] sm:h-[26rem] md:h-[28rem] md:w-1/2 mb-6 md:mb-0",
58
- }, textContainer: { className: "flex-1 p-5 lg:p-8" }, buttonsContainer: {
59
- className: [
60
- "flex flex-col sm:flex-row gap-4 mt-8 justify-center lg:justify-start",
61
- "[--btn-ring:theme(colors.sky.500)]",
62
- "dark:[--btn-ring:theme(colors.sky.400)]",
63
- ].join(" "),
64
- }, textAlign: "center", ariaLabel: "DashFlow hero section" }) }));
65
- }
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- export declare function Hero(): React.JSX.Element;
3
- //# sourceMappingURL=Hero_mask.d.ts.map
@@ -1,73 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import React from "react";
4
- import { HeroSplit as SharedHeroSplit } from "@nextworks/blocks-sections";
5
- import { Dashboard } from "./Dashboard";
6
- import { cn } from "@nextworks/blocks-core";
7
- const stats = [
8
- { value: "$124K", label: "Monthly Revenue" },
9
- { value: "+23%", label: "Growth Rate" },
10
- { value: "847", label: "Active Users" },
11
- ];
12
- const projects = ["Website Redesign", "Mobile App v2.0", "Marketing Campaign"];
13
- const floatingCards = [
14
- { position: "card-1", icon: "📊", text: "Real-time Analytics" },
15
- { position: "card-2", icon: "👥", text: "Team Collaboration" },
16
- ];
17
- const activeTab = "Analytics";
18
- const navItems = ["Analytics", "Projects", "Team"];
19
- export function Hero() {
20
- const sectionRef = React.useRef(null);
21
- const dashRef = React.useRef(null);
22
- React.useLayoutEffect(() => {
23
- const measure = () => {
24
- const sec = sectionRef.current;
25
- const dash = dashRef.current;
26
- if (!sec || !dash)
27
- return;
28
- const sr = sec.getBoundingClientRect();
29
- const dr = dash.getBoundingClientRect();
30
- sec.style.setProperty("--hole-x", `${dr.left - sr.left}px`);
31
- sec.style.setProperty("--hole-y", `${dr.top - sr.top}px`);
32
- sec.style.setProperty("--hole-w", `${dr.width}px`);
33
- sec.style.setProperty("--hole-h", `${dr.height}px`);
34
- };
35
- measure();
36
- const ro = new ResizeObserver(measure);
37
- if (sectionRef.current)
38
- ro.observe(sectionRef.current);
39
- if (dashRef.current)
40
- ro.observe(dashRef.current);
41
- window.addEventListener("resize", measure);
42
- return () => {
43
- ro.disconnect();
44
- window.removeEventListener("resize", measure);
45
- };
46
- }, []);
47
- return (_jsxs("div", { className: "relative", children: [_jsxs("div", { className: "pointer-events-none absolute inset-0 -z-20 overflow-hidden", children: [_jsx("div", { className: "absolute -top-10 -left-10 h-72 w-72 rounded-full bg-blue-500/20 blur-3xl" }), _jsx("div", { className: "absolute right-0 bottom-0 h-72 w-72 rounded-full bg-purple-500/20 blur-3xl" })] }), _jsx("div", { ref: sectionRef, className: "relative before:absolute before:inset-0 before:-z-10 before:bg-gradient-to-br before:from-white before:via-blue-50 before:to-white before:[mask-image:linear-gradient(#000,#000),linear-gradient(#000,#000)] before:[mask-composite:exclude] before:[mask-size:auto,var(--hole-w)_var(--hole-h)] before:[mask-position:0_0,var(--hole-x)_var(--hole-y)] before:[mask-repeat:no-repeat] before:content-[''] before:[-webkit-mask-composite:xor] dark:before:from-gray-900 dark:before:via-blue-950/20 dark:before:to-gray-900", children: _jsx(SharedHeroSplit, { className: cn("relative"), heading: {
48
- text: "Manage Your Entire Business From One Powerful Dashboard",
49
- className: "text-3xl md:text-4xl lg:text-5xl font-bold leading-tight text-black dark:text-white font-inter",
50
- }, subheading: {
51
- text: "Stop switching between 12 different apps. DashFlow combines project management, analytics, team chat, and customer insights in one beautiful interface.",
52
- className: "text-base md:text-lg text-gray-700 dark:text-gray-100 mt-6 mb-8 max-w-2xl font-inter font-normal",
53
- }, section: {
54
- className: "relative bg-none bg-transparent pt-0 px-8 pb-8",
55
- }, cta1: {
56
- label: "Start Free Trial",
57
- href: "#contact",
58
- variant: "default",
59
- size: "lg",
60
- className: "bg-blue-600 hover:bg-blue-700 text-white text-base font-semibold font-inter shadow-lg hover:shadow-xl hover:-translate-y-0.5 transition-all duration-200 border-0 px-8 py-3",
61
- }, cta2: {
62
- label: "Watch demo",
63
- href: "#demo",
64
- variant: "outline",
65
- size: "lg",
66
- className: "border-blue-600 text-blue-600 hover:bg-blue-50 dark:border-blue-500 dark:text-blue-500 dark:hover:bg-blue-950 text-base font-semibold font-inter shadow-lg hover:shadow-xl hover:-translate-y-0.5 transition-all duration-200 px-8 py-3",
67
- }, image: { src: undefined, alt: "Dashboard preview" }, imageLayout: "padded", fallback: _jsx("div", { ref: dashRef, className: "relative z-10 flex h-full w-full items-center justify-center pl-0", children: _jsx("div", { className: "relative h-full w-[min(100%,720px)] overflow-hidden p-2", children: _jsx(Dashboard, { stats: stats, projects: projects, floatingCards: floatingCards, navItems: navItems, activeTab: activeTab }) }) }), imageContainer: {
68
- className: "relative self-start md:self-start md:flex-none md:shrink-0 w-full h-[24rem] sm:h-[26rem] md:h-[31rem] md:w-1/2 mb-6 md:mb-0",
69
- // "relative self-start md:self-start md:flex-none md:shrink-0 w-full h-[24rem] sm:h-[26rem] md:h-[28rem] md:w-1/2 mb-6 md:mb-0",
70
- }, textContainer: { className: "flex-1 p-5 lg:p-8" }, buttonsContainer: {
71
- className: "flex flex-col sm:flex-row gap-4 mt-8 justify-center lg:justify-start",
72
- }, textAlign: "center", ariaLabel: "DashFlow hero section" }) })] }));
73
- }
@@ -1,83 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { Navbar as SharedNavbar } from "@nextworks/blocks-sections";
4
- const defaultProps = {
5
- brand: "DashFlow",
6
- // Preserve custom gradient logo block
7
- brandNode: (_jsx("div", { className: "flex h-8 w-8 items-center justify-center rounded-md bg-gradient-to-br from-blue-600 to-purple-600 font-bold text-white shadow-sm ring-1 ring-white/40", children: "DF" })),
8
- menuItems: [
9
- { label: "Home", href: "#home" },
10
- { label: "Features", href: "#features" },
11
- { label: "Pricing", href: "#pricing" },
12
- { label: "Contact", href: "#contact" },
13
- ],
14
- ctaButton: null,
15
- showColorModeToggle: true,
16
- navHeight: "h-16",
17
- sticky: true,
18
- ariaLabel: "DashFlow main navigation",
19
- // Allow layout constraints to be added at page-level
20
- className: "",
21
- // Style slots tuned for the blue SaaS theme
22
- nav: {
23
- className: "bg-white/60 dark:bg-gray-900/60 backdrop-blur supports-[backdrop-filter]:bg-white/60 supports-[backdrop-filter]:dark:bg-gray-900/60 text-gray-800 dark:text-white " +
24
- // Accent variables for this preset (read by toggle, links, mobile links)
25
- "[--navbar-accent:theme(colors.blue.700)] dark:[--navbar-accent:theme(colors.blue.400)] " +
26
- "[--navbar-toggle-bg:theme(colors.white)] dark:[--navbar-toggle-bg:theme(colors.gray.900)] " +
27
- "[--navbar-hover-bg:theme(colors.blue.50)] dark:[--navbar-hover-bg:color-mix(in oklab,oklch(0.23 0.05 264) 20%, transparent)] " +
28
- "[--navbar-ring:theme(colors.blue.500)] dark:[--navbar-ring:theme(colors.blue.400)] " +
29
- "[--navbar-border:theme(colors.gray.200)] dark:[--navbar-border:theme(colors.gray.800)]",
30
- },
31
- brandText: {
32
- className: "text-xl font-bold font-inter text-blue-700 dark:text-blue-500",
33
- },
34
- links: {
35
- className: "text-sm font-medium font-inter text-gray-800 dark:text-white hover:text-blue-700 dark:hover:text-blue-400 " +
36
- "focus:ring-[var(--navbar-ring)]",
37
- },
38
- // Preset keeps CTA hidden; if enabled, provide subtle interactive defaults
39
- ctaButtonStyle: {
40
- variant: "default",
41
- size: "default",
42
- className: "shadow-lg hover:shadow-xl transition-all duration-200 hover:-translate-y-0.5",
43
- },
44
- // Additional slots that weren't styled before, now aligned to the theme
45
- mobileMenu: {
46
- className: "border-t border-gray-200/80 dark:border-gray-800/80",
47
- },
48
- container: {
49
- className: "max-w-7xl mx-auto",
50
- },
51
- brandWrapper: {
52
- className: "",
53
- },
54
- desktopMenu: {
55
- className: "hidden items-center space-x-1 md:flex lg:space-x-6",
56
- },
57
- toggleButton: {
58
- className: "md:hidden flex items-center justify-center rounded-md p-2 transition-colors " +
59
- "hover:bg-blue-50 dark:hover:bg-blue-900/20 " +
60
- "focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400",
61
- },
62
- colorModeWrapper: {
63
- className: "ml-2",
64
- },
65
- // With variables above, ThemeToggle can rely on them; explicit override optional
66
- // themeToggle: { ... }
67
- ctaButtonWrapper: {
68
- className: "ml-2",
69
- },
70
- mobileMenuInner: {
71
- className: "space-y-2 px-4 pt-2 pb-4",
72
- },
73
- // Mobile links will read --navbar-hover-bg; explicit class optional
74
- mobileLinks: {
75
- className: "hover:bg-[var(--navbar-hover-bg)]",
76
- },
77
- };
78
- export function Navbar(overrides = {}) {
79
- // Shallow-merge: passing a style-slot object (e.g., links, nav, etc.)
80
- // replaces the default for that slot. Keeps the API simple and predictable.
81
- const props = Object.assign(Object.assign({}, defaultProps), overrides);
82
- return _jsx(SharedNavbar, Object.assign({}, props));
83
- }
@@ -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
- }