@nextworks/blocks-templates 0.2.0-alpha.0 → 0.2.0-alpha.11

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 (106) hide show
  1. package/README.md +15 -3
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/templates/digitalagency/Page.d.ts.map +1 -0
  4. package/dist/templates/digitalagency/Page.jsx +32 -0
  5. package/dist/templates/digitalagency/PresetThemeVars.d.ts.map +1 -0
  6. package/dist/templates/digitalagency/PresetThemeVars.jsx +31 -0
  7. package/dist/templates/digitalagency/components/About.d.ts.map +1 -0
  8. package/dist/templates/digitalagency/components/About.jsx +43 -0
  9. package/dist/templates/digitalagency/components/CTA.d.ts.map +1 -0
  10. package/dist/templates/digitalagency/components/CTA.jsx +31 -0
  11. package/dist/templates/digitalagency/components/Contact.d.ts.map +1 -0
  12. package/dist/templates/digitalagency/components/Contact.jsx +89 -0
  13. package/dist/templates/digitalagency/components/Footer.d.ts +8 -0
  14. package/dist/templates/digitalagency/components/Footer.d.ts.map +1 -0
  15. package/dist/templates/digitalagency/components/Footer.jsx +58 -0
  16. package/dist/templates/digitalagency/components/Hero.d.ts +7 -0
  17. package/dist/templates/digitalagency/components/Hero.d.ts.map +1 -0
  18. package/dist/templates/digitalagency/components/Hero.jsx +71 -0
  19. package/dist/templates/digitalagency/components/Navbar.d.ts +20 -0
  20. package/dist/templates/digitalagency/components/Navbar.d.ts.map +1 -0
  21. package/dist/templates/digitalagency/components/Navbar.jsx +85 -0
  22. package/dist/templates/digitalagency/components/NetworkPattern.d.ts +7 -0
  23. package/dist/templates/digitalagency/components/NetworkPattern.d.ts.map +1 -0
  24. package/dist/templates/digitalagency/components/NetworkPattern.jsx +125 -0
  25. package/dist/templates/digitalagency/components/Portfolio.d.ts.map +1 -0
  26. package/dist/templates/digitalagency/components/Portfolio.jsx +104 -0
  27. package/dist/templates/digitalagency/components/Pricing.d.ts.map +1 -0
  28. package/dist/templates/digitalagency/components/Process.d.ts.map +1 -0
  29. package/dist/templates/digitalagency/components/Services.d.ts.map +1 -0
  30. package/dist/templates/digitalagency/components/Team.d.ts.map +1 -0
  31. package/dist/templates/digitalagency/components/Testimonials.d.ts.map +1 -0
  32. package/dist/templates/gallery/PresetThemeVars.d.ts +15 -0
  33. package/dist/templates/gallery/PresetThemeVars.d.ts.map +1 -0
  34. package/dist/templates/gallery/PresetThemeVars.jsx +33 -0
  35. package/dist/templates/gallery/page.d.ts.map +1 -0
  36. package/dist/templates/gallery/page.jsx +215 -0
  37. package/dist/templates/productlaunch/Page.d.ts.map +1 -0
  38. package/dist/templates/productlaunch/PresetThemeVars.d.ts.map +1 -0
  39. package/dist/templates/productlaunch/PresetThemeVars.jsx +30 -0
  40. package/dist/templates/productlaunch/components/About.d.ts.map +1 -0
  41. package/dist/templates/productlaunch/components/About.jsx +55 -0
  42. package/dist/templates/productlaunch/components/CTA.d.ts.map +1 -0
  43. package/dist/templates/productlaunch/components/CTA.jsx +37 -0
  44. package/dist/templates/productlaunch/components/Contact.d.ts.map +1 -0
  45. package/dist/templates/productlaunch/components/Contact.jsx +91 -0
  46. package/dist/templates/productlaunch/components/FAQ.d.ts +5 -0
  47. package/dist/templates/productlaunch/components/FAQ.d.ts.map +1 -0
  48. package/dist/templates/productlaunch/components/FAQ.jsx +55 -0
  49. package/dist/templates/productlaunch/components/Features.d.ts +5 -0
  50. package/dist/templates/productlaunch/components/Features.d.ts.map +1 -0
  51. package/dist/templates/productlaunch/components/Features.jsx +50 -0
  52. package/dist/templates/productlaunch/components/Footer.d.ts +5 -0
  53. package/dist/templates/productlaunch/components/Footer.d.ts.map +1 -0
  54. package/dist/templates/productlaunch/components/Footer.jsx +102 -0
  55. package/dist/templates/productlaunch/components/Hero.d.ts +5 -0
  56. package/dist/templates/productlaunch/components/Hero.d.ts.map +1 -0
  57. package/dist/templates/productlaunch/components/Hero.jsx +68 -0
  58. package/dist/templates/productlaunch/components/Navbar.d.ts +25 -0
  59. package/dist/templates/productlaunch/components/Navbar.d.ts.map +1 -0
  60. package/dist/templates/productlaunch/components/Navbar.jsx +85 -0
  61. package/dist/templates/productlaunch/components/Pricing.d.ts +5 -0
  62. package/dist/templates/productlaunch/components/Pricing.d.ts.map +1 -0
  63. package/dist/templates/productlaunch/components/Pricing.jsx +76 -0
  64. package/dist/templates/productlaunch/components/ProcessTimeline.d.ts +5 -0
  65. package/dist/templates/productlaunch/components/ProcessTimeline.d.ts.map +1 -0
  66. package/dist/templates/productlaunch/components/ProcessTimeline.jsx +62 -0
  67. package/dist/templates/productlaunch/components/ServicesGrid.d.ts +5 -0
  68. package/dist/templates/productlaunch/components/ServicesGrid.d.ts.map +1 -0
  69. package/dist/templates/productlaunch/components/ServicesGrid.jsx +40 -0
  70. package/dist/templates/productlaunch/components/Team.d.ts +5 -0
  71. package/dist/templates/productlaunch/components/Team.d.ts.map +1 -0
  72. package/dist/templates/productlaunch/components/Team.jsx +71 -0
  73. package/dist/templates/productlaunch/components/Testimonials.d.ts +5 -0
  74. package/dist/templates/productlaunch/components/Testimonials.d.ts.map +1 -0
  75. package/dist/templates/productlaunch/components/Testimonials.jsx +54 -0
  76. package/dist/templates/productlaunch/components/TrustBadges.d.ts +5 -0
  77. package/dist/templates/productlaunch/components/TrustBadges.d.ts.map +1 -0
  78. package/dist/templates/productlaunch/components/TrustBadges.jsx +49 -0
  79. package/dist/templates/saasdashboard/Page.d.ts.map +1 -0
  80. package/dist/templates/saasdashboard/PresetThemeVars.d.ts.map +1 -0
  81. package/dist/templates/saasdashboard/PresetThemeVars.jsx +29 -0
  82. package/dist/templates/saasdashboard/components/Contact.d.ts.map +1 -0
  83. package/dist/templates/saasdashboard/components/Contact.jsx +89 -0
  84. package/dist/templates/saasdashboard/components/Dashboard.d.ts.map +1 -0
  85. package/dist/templates/saasdashboard/components/Dashboard.jsx +168 -0
  86. package/dist/templates/saasdashboard/components/FAQ.d.ts.map +1 -0
  87. package/dist/templates/saasdashboard/components/Features.d.ts.map +1 -0
  88. package/dist/templates/saasdashboard/components/Features.jsx +54 -0
  89. package/dist/templates/saasdashboard/components/Footer.d.ts.map +1 -0
  90. package/dist/templates/saasdashboard/components/Footer.jsx +51 -0
  91. package/dist/templates/saasdashboard/components/Hero.d.ts.map +1 -0
  92. package/dist/templates/saasdashboard/components/Hero.jsx +69 -0
  93. package/dist/templates/saasdashboard/components/Hero_mask.d.ts.map +1 -0
  94. package/dist/templates/saasdashboard/components/Hero_mask.jsx +84 -0
  95. package/dist/templates/saasdashboard/components/Navbar.d.ts +25 -0
  96. package/dist/templates/saasdashboard/components/Navbar.d.ts.map +1 -0
  97. package/dist/templates/saasdashboard/components/Navbar.jsx +83 -0
  98. package/dist/templates/saasdashboard/components/Pricing.d.ts.map +1 -0
  99. package/dist/templates/saasdashboard/components/Pricing.jsx +64 -0
  100. package/dist/templates/saasdashboard/components/SmoothScroll.d.ts.map +1 -0
  101. package/dist/templates/saasdashboard/components/SmoothScroll.jsx +86 -0
  102. package/dist/templates/saasdashboard/components/Testimonials.d.ts.map +1 -0
  103. package/dist/templates/saasdashboard/components/Testimonials.jsx +39 -0
  104. package/dist/templates/saasdashboard/components/TrustBadges.d.ts.map +1 -0
  105. package/dist/templates/saasdashboard/components/TrustBadges.jsx +36 -0
  106. package/package.json +34 -34
@@ -0,0 +1,168 @@
1
+ "use client";
2
+ import React, { useEffect, useRef, useState } from "react";
3
+ export function Dashboard({ stats, projects, floatingCards, activeTab = "Analytics", navItems = ["Analytics", "Projects", "Team"], }) {
4
+ return (<div className="relative isolate">
5
+ <DashboardMockup stats={stats} projects={projects} activeTab={activeTab} navItems={navItems}/>
6
+
7
+ {floatingCards.map(({ position, icon, text }) => (<FloatingCard key={position} position={position} icon={icon} text={text}/>))}
8
+
9
+ <style>{`
10
+ .dashboard-mockup {
11
+ transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
12
+ transition: transform 0.3s ease;
13
+ box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
14
+ }
15
+ .dashboard-mockup:hover {
16
+ transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
17
+ }
18
+ .trend-line {
19
+ clip-path: polygon(
20
+ 0 100%,
21
+ 20% 80%,
22
+ 40% 85%,
23
+ 60% 60%,
24
+ 80% 50%,
25
+ 100% 20%
26
+ );
27
+ }
28
+ @keyframes growUp {
29
+ 0% {
30
+ height: 0;
31
+ opacity: 0;
32
+ }
33
+ 100% {
34
+ opacity: 1;
35
+ }
36
+ }
37
+ @keyframes floatAnim {
38
+ 0%,
39
+ 100% {
40
+ transform: translateY(0px);
41
+ }
42
+ 50% {
43
+ transform: translateY(-20px);
44
+ }
45
+ }
46
+ `}</style>
47
+ </div>);
48
+ }
49
+ function DashboardMockup({ stats, projects, activeTab, navItems, }) {
50
+ const [tilt, setTilt] = useState({ rx: 0, ry: 0 });
51
+ const targetTilt = useRef({ rx: 0, ry: 0 });
52
+ const rafId = useRef(null);
53
+ const animate = () => {
54
+ setTilt((prev) => {
55
+ const smoothing = 0.15;
56
+ const nextRx = prev.rx + (targetTilt.current.rx - prev.rx) * smoothing;
57
+ const nextRy = prev.ry + (targetTilt.current.ry - prev.ry) * smoothing;
58
+ return { rx: nextRx, ry: nextRy };
59
+ });
60
+ rafId.current = requestAnimationFrame(animate);
61
+ };
62
+ const handleMove = (e) => {
63
+ const rect = e.currentTarget.getBoundingClientRect();
64
+ const x = e.clientX - rect.left;
65
+ const y = e.clientY - rect.top;
66
+ const rx = (y / rect.height - 0.5) * -6;
67
+ const ry = (x / rect.width - 0.5) * 6;
68
+ targetTilt.current = { rx, ry };
69
+ if (rafId.current == null)
70
+ rafId.current = requestAnimationFrame(animate);
71
+ };
72
+ const handleLeave = () => {
73
+ targetTilt.current = { rx: 0, ry: 0 };
74
+ };
75
+ useEffect(() => {
76
+ return () => {
77
+ if (rafId.current != null)
78
+ cancelAnimationFrame(rafId.current);
79
+ };
80
+ }, []);
81
+ return (<div className={"dashboard-mockup transform-gpu rounded-2xl border border-blue-500/20 p-6 shadow-2xl ring-1 ring-blue-500/10 backdrop-blur transition-transform duration-150 ease-out motion-reduce:transition-none " +
82
+ "bg-slate-900/80 dark:bg-slate-900/80"} style={{
83
+ willChange: "transform",
84
+ transform: `perspective(1000px) rotateX(${tilt.rx}deg) rotateY(${tilt.ry}deg)`,
85
+ }} onMouseMove={handleMove} onMouseLeave={handleLeave}>
86
+ <DashboardHeader activeTab={activeTab} navItems={navItems}/>
87
+ <DashboardGrid stats={stats} projects={projects}/>
88
+ </div>);
89
+ }
90
+ function DashboardHeader({ activeTab = "Analytics", navItems = ["Analytics", "Projects", "Team"], }) {
91
+ return (<div className="mb-6 flex items-center justify-between border-b border-blue-500/10 pb-4">
92
+ <div className="text-[1.1rem] font-semibold text-slate-200">
93
+ Business Overview
94
+ </div>
95
+ <div className="hidden gap-3 md:flex">
96
+ {navItems.map((item) => (<div key={item} className={"rounded-md px-3 py-2 text-sm " +
97
+ (item === activeTab
98
+ ? "bg-gradient-to-br from-blue-500 to-purple-500 text-white"
99
+ : "bg-blue-500/10 text-blue-400")}>
100
+ {item}
101
+ </div>))}
102
+ </div>
103
+ </div>);
104
+ }
105
+ function DashboardGrid({ stats, projects, }) {
106
+ return (<div className="mb-4 grid grid-cols-[2fr_1fr] gap-4">
107
+ <ChartArea />
108
+ <StatsPanel stats={stats}/>
109
+ <ProjectList projects={projects}/>
110
+ </div>);
111
+ }
112
+ function ChartArea() {
113
+ const barHeights = [30, 45, 35, 60, 55, 75, 70, 85, 90, 100];
114
+ return (<div className="relative overflow-hidden rounded-lg border border-blue-500/10 bg-slate-900/50 p-4">
115
+ <div className="mb-2 text-sm text-slate-300">Revenue Growth</div>
116
+ <div className="relative h-32 overflow-hidden rounded-md" style={{
117
+ background: "linear-gradient(45deg, transparent 20%, rgba(59,130,246,0.1) 20%, rgba(59,130,246,0.1) 40%, transparent 40%, transparent 60%, rgba(139,92,246,0.1) 60%, rgba(139,92,246,0.1) 80%, transparent 80%)",
118
+ }}>
119
+ <div className="absolute inset-[10px] flex items-end gap-[3px]">
120
+ {barHeights.map((h, i) => (<div key={i} className="flex-1 rounded-t bg-gradient-to-b from-blue-500 to-purple-500" style={{
121
+ minHeight: "20px",
122
+ height: `${h}%`,
123
+ animation: "growUp 2s ease-out both",
124
+ animationDelay: `${(i + 1) * 0.1}s`,
125
+ }}/>))}
126
+ </div>
127
+ <div className="trend-line absolute top-5 right-[5%] left-[5%] h-[2px] rounded bg-gradient-to-r from-emerald-500 to-blue-500 opacity-80"/>
128
+ </div>
129
+ </div>);
130
+ }
131
+ function StatsPanel({ stats }) {
132
+ return (<div className="flex flex-col gap-2">
133
+ {stats.map((s, i) => (<div key={i} className="rounded-lg border border-blue-500/10 bg-slate-900/50 p-3">
134
+ <div className="text-lg font-bold text-blue-500">{s.value}</div>
135
+ <div className="text-[0.7rem] text-slate-400 uppercase">
136
+ {s.label}
137
+ </div>
138
+ </div>))}
139
+ </div>);
140
+ }
141
+ function ProjectList({ projects }) {
142
+ return (<div className="col-span-2 rounded-lg border border-blue-500/10 bg-slate-900/50 p-4">
143
+ <div className="mb-2 text-sm text-slate-300">Active Projects</div>
144
+ <div className="flex flex-wrap gap-2">
145
+ {projects.map((p, i) => (<div key={i} className="rounded border border-blue-500/30 bg-gradient-to-br from-blue-500/20 to-purple-500/10 px-2 py-2 text-[0.8rem] text-slate-200">
146
+ {p}
147
+ </div>))}
148
+ </div>
149
+ </div>);
150
+ }
151
+ function FloatingCard({ position, icon, text }) {
152
+ const positionClasses = position === "card-1"
153
+ ? "top-[10%] right-[6%]"
154
+ : position === "card-2"
155
+ ? "bottom-[20%] left-[2%]"
156
+ : "top-0 left-0";
157
+ return (<div className={[
158
+ "absolute z-10 transform-gpu rounded-lg border border-blue-500/20 p-4 shadow-lg",
159
+ "animate-[floatAnim_6s_ease-in-out_infinite]",
160
+ "bg-slate-800 dark:bg-slate-900",
161
+ positionClasses,
162
+ ].join(" ")} style={{ willChange: "transform" }}>
163
+ <div className="mb-2 flex h-[30px] w-[30px] items-center justify-center rounded-md bg-gradient-to-br from-blue-500 to-purple-500 text-sm text-white">
164
+ {icon}
165
+ </div>
166
+ <div className="text-sm text-slate-300">{text}</div>
167
+ </div>);
168
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FAQ.d.ts","sourceRoot":"","sources":["../../../../src/templates/saasdashboard/components/FAQ.tsx"],"names":[],"mappings":"AA6BA,wBAAgB,GAAG,gCAyBlB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../../../src/templates/saasdashboard/components/Features.tsx"],"names":[],"mappings":"AA6BA,wBAAgB,QAAQ,gCA6DvB"}
@@ -0,0 +1,54 @@
1
+ "use client";
2
+ import { Features as SharedFeatures } from "@nextworks/blocks-sections";
3
+ import { cn } from "@nextworks/blocks-core";
4
+ const defaultFeaturesData = [
5
+ {
6
+ imageSrc: "/placeholders/saas_dashboard/projectBoard.png",
7
+ imageAlt: "Project Management Dashboard",
8
+ headingText: "Track Every Project",
9
+ subheadingText: "Kanban boards, Gantt charts, and timeline views keep your team aligned and deadlines met",
10
+ },
11
+ {
12
+ imageSrc: "/placeholders/saas_dashboard/analytics.png",
13
+ imageAlt: "Analytics Dashboard",
14
+ headingText: "Data-Driven Insights",
15
+ subheadingText: "Real-time metrics, custom reports, and forecasting tools to make smarter business decisions",
16
+ },
17
+ {
18
+ imageSrc: "/placeholders/saas_dashboard/chat.png",
19
+ imageAlt: "Team Collaboration Tools",
20
+ headingText: "Seamless Teamwork",
21
+ subheadingText: "Built-in chat, file sharing, and @mentions keep everyone connected and productive",
22
+ },
23
+ ];
24
+ export function Features() {
25
+ return (<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={{
26
+ className: cn("font-inter mb-4 text-3xl font-bold text-[var(--heading-fg)] md:text-4xl lg:text-5xl"),
27
+ }} subheading={{
28
+ className: cn("font-inter mx-auto max-w-3xl text-lg leading-relaxed text-[var(--subheading-fg)] md:text-xl"),
29
+ }} grid={{
30
+ className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8",
31
+ }} cardWrapper={{
32
+ className: "group motion-reduce:transform-none motion-reduce:transition-none",
33
+ }} card={{
34
+ 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",
35
+ }} image={{
36
+ className: "w-full h-48 md:h-56 object-cover transition-transform duration-300 group-hover:scale-[1.03]",
37
+ }} cardHeading={{
38
+ className: cn("font-inter mb-3 text-xl leading-tight font-semibold text-[var(--card-title-fg)] md:text-2xl"),
39
+ }} cardSubheading={{
40
+ className: cn("font-inter text-sm leading-relaxed text-[var(--card-muted-fg)] md:text-base"),
41
+ }}
42
+ // Motion config showcasing upgraded API
43
+ motionConfig={{
44
+ initial: { opacity: 0, y: 12 },
45
+ whileInView: { opacity: 1, y: 0 },
46
+ viewport: { once: true, amount: 0.2 },
47
+ transition: {
48
+ type: "spring",
49
+ stiffness: 125,
50
+ damping: 50,
51
+ delay: 0.12,
52
+ },
53
+ }} ariaLabel="Features section"/>);
54
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/templates/saasdashboard/components/Footer.tsx"],"names":[],"mappings":"AAmCA,wBAAgB,MAAM,gCAyCrB"}
@@ -0,0 +1,51 @@
1
+ "use client";
2
+ import { Footer as SharedFooter } from "@nextworks/blocks-sections";
3
+ import { cn } from "@nextworks/blocks-core";
4
+ const defaultNavLinks = [
5
+ {
6
+ heading: "Product",
7
+ links: [
8
+ { name: "Features", href: "#features" },
9
+ { name: "Pricing", href: "#pricing" },
10
+ { name: "Documentation", href: "#documentation" },
11
+ { name: "FAQ", href: "#faq" },
12
+ ],
13
+ },
14
+ {
15
+ heading: "Company",
16
+ links: [
17
+ { name: "About", href: "#about" },
18
+ { name: "Careers", href: "#careers" },
19
+ { name: "Blog", href: "#blog" },
20
+ { name: "Contact", href: "#contact" },
21
+ ],
22
+ },
23
+ {
24
+ heading: "Resources",
25
+ links: [
26
+ { name: "Help Center", href: "#help" },
27
+ { name: "Terms of Service", href: "#terms" },
28
+ { name: "Privacy Policy", href: "#privacy" },
29
+ { name: "Status", href: "#status" },
30
+ ],
31
+ },
32
+ ];
33
+ export function Footer() {
34
+ return (<SharedFooter footerBrandName="Dash Flow" footerNavLinks={defaultNavLinks} className={cn("w-full")} section={{
35
+ className: "w-full bg-blue-50 dark:bg-gray-900 text-gray-800 dark:text-white",
36
+ }} container={{ className: "max-w-7xl mx-auto px-6" }} brand={{
37
+ className: "text-xl font-bold text-blue-600 dark:text-blue-400 font-outfit",
38
+ }} brandWrapper={{
39
+ className: "flex flex-col items-start text-left lg:pr-8",
40
+ }} navSection={{
41
+ className: "flex flex-col lg:flex-row items-start lg:items-start justify-center gap-8 lg:gap-12 pt-6.5 pb-8",
42
+ }} navGroup={{ className: "flex flex-col items-start text-left pt-1.5" }} navHeading={{
43
+ className: "font-semibold text-gray-800 dark:text-white mb-3 text-xs uppercase tracking-wider font-inter",
44
+ }} navLink={{
45
+ 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",
46
+ }} socialSection={{
47
+ className: "flex items-center justify-center gap-4 py-4",
48
+ }} copyright={{
49
+ 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",
50
+ }} ariaLabel="Footer section"/>);
51
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../../../src/templates/saasdashboard/components/Hero.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,IAAI,gCAiFnB"}
@@ -0,0 +1,69 @@
1
+ "use client";
2
+ import { HeroSplit as SharedHeroSplit } from "@nextworks/blocks-sections";
3
+ import { Dashboard } from "./Dashboard";
4
+ import { cn } from "@nextworks/blocks-core";
5
+ const stats = [
6
+ { value: "$124K", label: "Monthly Revenue" },
7
+ { value: "+23%", label: "Growth Rate" },
8
+ { value: "847", label: "Active Users" },
9
+ ];
10
+ const projects = ["Website Redesign", "Mobile App v2.0", "Marketing Campaign"];
11
+ const floatingCards = [
12
+ { position: "card-1", icon: "📊", text: "Real-time Analytics" },
13
+ { position: "card-2", icon: "👥", text: "Team Collaboration" },
14
+ ];
15
+ const activeTab = "Analytics";
16
+ const navItems = ["Analytics", "Projects", "Team"];
17
+ export function Hero() {
18
+ return (<div className="relative">
19
+ <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={<div className="flex h-full w-full items-center justify-center">
56
+ <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">
57
+ <Dashboard stats={stats} projects={projects} floatingCards={floatingCards} navItems={navItems} activeTab={activeTab}/>
58
+ </div>
59
+ </div>} imageContainer={{
60
+ 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",
61
+ }} textContainer={{ className: "flex-1 p-5 lg:p-8" }} buttonsContainer={{
62
+ className: [
63
+ "flex flex-col sm:flex-row gap-4 mt-8 justify-center lg:justify-start",
64
+ "[--btn-ring:theme(colors.sky.500)]",
65
+ "dark:[--btn-ring:theme(colors.sky.400)]",
66
+ ].join(" "),
67
+ }} textAlign="center" ariaLabel="DashFlow hero section"/>
68
+ </div>);
69
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hero_mask.d.ts","sourceRoot":"","sources":["../../../../src/templates/saasdashboard/components/Hero_mask.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqB1B,wBAAgB,IAAI,sBAsGnB"}
@@ -0,0 +1,84 @@
1
+ "use client";
2
+ import React from "react";
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
+ const sectionRef = React.useRef(null);
20
+ const dashRef = React.useRef(null);
21
+ React.useLayoutEffect(() => {
22
+ const measure = () => {
23
+ const sec = sectionRef.current;
24
+ const dash = dashRef.current;
25
+ if (!sec || !dash)
26
+ return;
27
+ const sr = sec.getBoundingClientRect();
28
+ const dr = dash.getBoundingClientRect();
29
+ sec.style.setProperty("--hole-x", `${dr.left - sr.left}px`);
30
+ sec.style.setProperty("--hole-y", `${dr.top - sr.top}px`);
31
+ sec.style.setProperty("--hole-w", `${dr.width}px`);
32
+ sec.style.setProperty("--hole-h", `${dr.height}px`);
33
+ };
34
+ measure();
35
+ const ro = new ResizeObserver(measure);
36
+ if (sectionRef.current)
37
+ ro.observe(sectionRef.current);
38
+ if (dashRef.current)
39
+ ro.observe(dashRef.current);
40
+ window.addEventListener("resize", measure);
41
+ return () => {
42
+ ro.disconnect();
43
+ window.removeEventListener("resize", measure);
44
+ };
45
+ }, []);
46
+ return (<div className="relative">
47
+ {/* Ambient gradient blobs behind hero */}
48
+ <div className="pointer-events-none absolute inset-0 -z-20 overflow-hidden">
49
+ <div className="absolute -top-10 -left-10 h-72 w-72 rounded-full bg-blue-500/20 blur-3xl"/>
50
+ <div className="absolute right-0 bottom-0 h-72 w-72 rounded-full bg-purple-500/20 blur-3xl"/>
51
+ </div>
52
+ <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">
53
+ <SharedHeroSplit className={cn("relative")} heading={{
54
+ text: "Manage Your Entire Business From One Powerful Dashboard",
55
+ className: "text-3xl md:text-4xl lg:text-5xl font-bold leading-tight text-black dark:text-white font-inter",
56
+ }} subheading={{
57
+ text: "Stop switching between 12 different apps. DashFlow combines project management, analytics, team chat, and customer insights in one beautiful interface.",
58
+ className: "text-base md:text-lg text-gray-700 dark:text-gray-100 mt-6 mb-8 max-w-2xl font-inter font-normal",
59
+ }} section={{
60
+ className: "relative bg-none bg-transparent pt-0 px-8 pb-8",
61
+ }} cta1={{
62
+ label: "Start Free Trial",
63
+ href: "#contact",
64
+ variant: "default",
65
+ size: "lg",
66
+ 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",
67
+ }} cta2={{
68
+ label: "Watch demo",
69
+ href: "#demo",
70
+ variant: "outline",
71
+ size: "lg",
72
+ 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",
73
+ }} image={{ src: undefined, alt: "Dashboard preview" }} imageLayout="padded" fallback={<div ref={dashRef} className="relative z-10 flex h-full w-full items-center justify-center pl-0">
74
+ <div className="relative h-full w-[min(100%,720px)] overflow-hidden p-2">
75
+ <Dashboard stats={stats} projects={projects} floatingCards={floatingCards} navItems={navItems} activeTab={activeTab}/>
76
+ </div>
77
+ </div>} imageContainer={{
78
+ 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",
79
+ }} textContainer={{ className: "flex-1 p-5 lg:p-8" }} buttonsContainer={{
80
+ className: "flex flex-col sm:flex-row gap-4 mt-8 justify-center lg:justify-start",
81
+ }} textAlign="center" ariaLabel="DashFlow hero section"/>
82
+ </div>
83
+ </div>);
84
+ }
@@ -0,0 +1,25 @@
1
+ import type { ComponentProps } from "react";
2
+ import { Navbar as SharedNavbar } from "@nextworks/blocks-sections";
3
+ /**
4
+ * SaaS Dashboard preset Navbar
5
+ *
6
+ * - DashFlow branding with blue/purple gradient logo square (brandNode)
7
+ * - Inter font for brand and links
8
+ * - No CTA button (ctaButton = null)
9
+ * - Blue hover states for links and theme toggle
10
+ * - Glassy background with backdrop blur (light/dark)
11
+ *
12
+ * This preset exposes the Shared Navbar API so any prop/slot can be overridden.
13
+ *
14
+ * Example:
15
+ * <Navbar
16
+ * brand="My SaaS"
17
+ * links={{ className: "hover:text-emerald-600" }}
18
+ * container={{ className: "max-w-6xl mx-auto" }}
19
+ * />
20
+ */
21
+ type SharedNavbarProps = ComponentProps<typeof SharedNavbar>;
22
+ type PresetOverrides = Partial<SharedNavbarProps>;
23
+ export declare function Navbar(overrides?: PresetOverrides): import("react").JSX.Element;
24
+ export {};
25
+ //# sourceMappingURL=Navbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Navbar.d.ts","sourceRoot":"","sources":["../../../../src/templates/saasdashboard/components/Navbar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAEpE;;;;;;;;;;;;;;;;;GAiBG;AACH,KAAK,iBAAiB,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAC7D,KAAK,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAqFlD,wBAAgB,MAAM,CAAC,SAAS,GAAE,eAAoB,+BAQrD"}
@@ -0,0 +1,83 @@
1
+ "use client";
2
+ import { Navbar as SharedNavbar } from "@nextworks/blocks-sections";
3
+ const defaultProps = {
4
+ brand: "DashFlow",
5
+ // Preserve custom gradient logo block
6
+ brandNode: (<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">
7
+ DF
8
+ </div>),
9
+ menuItems: [
10
+ { label: "Home", href: "#home" },
11
+ { label: "Features", href: "#features" },
12
+ { label: "Pricing", href: "#pricing" },
13
+ { label: "Contact", href: "#contact" },
14
+ ],
15
+ ctaButton: null,
16
+ showColorModeToggle: true,
17
+ navHeight: "h-16",
18
+ sticky: true,
19
+ ariaLabel: "DashFlow main navigation",
20
+ // Allow layout constraints to be added at page-level
21
+ className: "",
22
+ // Style slots tuned for the blue SaaS theme
23
+ nav: {
24
+ 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 " +
25
+ // Accent variables for this preset (read by toggle, links, mobile links)
26
+ "[--navbar-accent:theme(colors.blue.700)] dark:[--navbar-accent:theme(colors.blue.400)] " +
27
+ "[--navbar-toggle-bg:theme(colors.white)] dark:[--navbar-toggle-bg:theme(colors.gray.900)] " +
28
+ "[--navbar-hover-bg:theme(colors.blue.50)] dark:[--navbar-hover-bg:color-mix(in oklab,oklch(0.23 0.05 264) 20%, transparent)] " +
29
+ "[--navbar-ring:theme(colors.blue.500)] dark:[--navbar-ring:theme(colors.blue.400)] " +
30
+ "[--navbar-border:theme(colors.gray.200)] dark:[--navbar-border:theme(colors.gray.800)]",
31
+ },
32
+ brandText: {
33
+ className: "text-xl font-bold font-inter text-blue-700 dark:text-blue-500",
34
+ },
35
+ links: {
36
+ className: "text-sm font-medium font-inter text-gray-800 dark:text-white hover:text-blue-700 dark:hover:text-blue-400 " +
37
+ "focus:ring-[var(--navbar-ring)]",
38
+ },
39
+ // Preset keeps CTA hidden; if enabled, provide subtle interactive defaults
40
+ ctaButtonStyle: {
41
+ variant: "default",
42
+ size: "default",
43
+ className: "shadow-lg hover:shadow-xl transition-all duration-200 hover:-translate-y-0.5",
44
+ },
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.
81
+ const props = Object.assign(Object.assign({}, defaultProps), overrides);
82
+ return <SharedNavbar {...props}/>;
83
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pricing.d.ts","sourceRoot":"","sources":["../../../../src/templates/saasdashboard/components/Pricing.tsx"],"names":[],"mappings":"AA8CA,wBAAgB,OAAO,gCA2CtB"}
@@ -0,0 +1,64 @@
1
+ "use client";
2
+ import { Pricing as SharedPricing } from "@nextworks/blocks-sections";
3
+ import { cn } from "@nextworks/blocks-core";
4
+ const DefaultPricingData = [
5
+ {
6
+ pricingPlanHeaderText: "Starter Plan",
7
+ pricingPlanPrice: "$29/month",
8
+ pricingPlanFeatures: [
9
+ "Up to 5 users",
10
+ "3 projects",
11
+ "Basic analytics",
12
+ "email support",
13
+ ],
14
+ pricingPlanCTALabel: "Select Plan",
15
+ pricingPlanCTAHref: "#contact",
16
+ },
17
+ {
18
+ pricingPlanHeaderText: "Professional Plan",
19
+ pricingPlanPrice: "$79.99/month",
20
+ pricingPlanFeatures: [
21
+ "Up to 25 users",
22
+ "Unlimited projects",
23
+ "Advanced analytics",
24
+ "Priority support",
25
+ "Api access",
26
+ ],
27
+ pricingPlanCTALabel: "Select Plan",
28
+ pricingPlanCTAHref: "#contact",
29
+ isPopular: true,
30
+ },
31
+ {
32
+ pricingPlanHeaderText: "Enterprise Plan",
33
+ pricingPlanPrice: "$199.99/month",
34
+ pricingPlanFeatures: [
35
+ "Unlimited users",
36
+ "Custom integrations",
37
+ "Dedicated account manager",
38
+ "SLA guarantee",
39
+ ],
40
+ pricingPlanCTALabel: "Select Plan",
41
+ pricingPlanCTAHref: "#contact",
42
+ },
43
+ ];
44
+ export function Pricing() {
45
+ return (<SharedPricing pricingPlans={DefaultPricingData} pricingHeadingText="Simple Pricing That Scales With You" className={cn("relative")} section={{
46
+ className: "pt-20 pb-5 bg-[var(--section-bg,theme(colors.white))] dark:bg-[var(--section-bg,theme(colors.gray.900))]",
47
+ }} heading={{
48
+ className: "text-3xl font-bold font-inter text-center mb-8 text-[var(--heading-fg)]",
49
+ }} card={{
50
+ 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)]",
51
+ }} title={{
52
+ className: "text-xl font-bold font-inter mb-2 text-[var(--card-title-fg)]",
53
+ }} price={{
54
+ className: "text-2xl font-bold font-inter mb-4 text-[var(--card-title-fg)]",
55
+ }} featureItem={{
56
+ className: "flex items-center text-base font-inter text-[var(--card-muted-fg)]",
57
+ }} cta={{
58
+ variant: "default",
59
+ size: "lg",
60
+ 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)]",
61
+ }} popularBadge={{
62
+ 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)]",
63
+ }} ariaLabel="Pricing section"/>);
64
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SmoothScroll.d.ts","sourceRoot":"","sources":["../../../../src/templates/saasdashboard/components/SmoothScroll.tsx"],"names":[],"mappings":"AAKA,wBAAgB,YAAY,SA0F3B"}