nextworks 0.2.0-alpha.11 → 0.2.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.
- package/README.md +283 -282
- package/dist/cli_manifests/blocks_manifest.json +198 -175
- package/dist/kits/blocks/.nextworks/docs/BLOCKS_QUICKSTART.md +101 -100
- package/dist/kits/blocks/.nextworks/docs/BLOCKS_README.md +105 -104
- package/dist/kits/blocks/.nextworks/docs/THEME_GUIDE.md +1 -1
- package/dist/kits/blocks/app/templates/aiworkflow/PresetThemeVars.tsx +58 -0
- package/dist/kits/blocks/app/templates/aiworkflow/README.md +46 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/CTA.tsx +44 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/Contact.tsx +105 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/FAQ.tsx +63 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/Features.tsx +65 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/Footer.tsx +109 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/Hero.tsx +636 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/Navbar.tsx +90 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/Pricing.tsx +86 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/ProcessTimeline.tsx +103 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/Testimonials.tsx +56 -0
- package/dist/kits/blocks/app/templates/aiworkflow/components/TrustBadges.tsx +59 -0
- package/dist/kits/blocks/app/templates/aiworkflow/page.tsx +43 -0
- package/dist/kits/blocks/app/templates/digitalagency/PresetThemeVars.tsx +80 -80
- package/dist/kits/blocks/app/templates/digitalagency/README.md +42 -42
- package/dist/kits/blocks/app/templates/digitalagency/components/Pricing.tsx +114 -114
- package/dist/kits/blocks/app/templates/digitalagency/components/Process.tsx +59 -59
- package/dist/kits/blocks/app/templates/digitalagency/components/Services.tsx +55 -55
- package/dist/kits/blocks/app/templates/digitalagency/components/Team.tsx +28 -28
- package/dist/kits/blocks/app/templates/digitalagency/components/Testimonials.tsx +65 -65
- package/dist/kits/blocks/app/templates/digitalagency/page.tsx +38 -38
- package/dist/kits/blocks/app/templates/gallery/PresetThemeVars.tsx +84 -84
- package/dist/kits/blocks/app/templates/productlaunch/PresetThemeVars.tsx +75 -75
- package/dist/kits/blocks/app/templates/productlaunch/README.md +62 -62
- package/dist/kits/blocks/app/templates/productlaunch/components/About.tsx +84 -84
- package/dist/kits/blocks/app/templates/productlaunch/components/CTA.tsx +50 -50
- package/dist/kits/blocks/app/templates/productlaunch/components/Contact.tsx +231 -231
- package/dist/kits/blocks/app/templates/productlaunch/components/FAQ.tsx +86 -86
- package/dist/kits/blocks/app/templates/productlaunch/components/Features.tsx +83 -83
- package/dist/kits/blocks/app/templates/productlaunch/components/Footer.tsx +132 -132
- package/dist/kits/blocks/app/templates/productlaunch/components/Hero.tsx +88 -88
- package/dist/kits/blocks/app/templates/productlaunch/components/Navbar.tsx +116 -116
- package/dist/kits/blocks/app/templates/productlaunch/components/Pricing.tsx +106 -106
- package/dist/kits/blocks/app/templates/productlaunch/components/ProcessTimeline.tsx +110 -110
- package/dist/kits/blocks/app/templates/productlaunch/components/ServicesGrid.tsx +68 -68
- package/dist/kits/blocks/app/templates/productlaunch/components/Team.tsx +104 -104
- package/dist/kits/blocks/app/templates/productlaunch/components/Testimonials.tsx +90 -90
- package/dist/kits/blocks/app/templates/productlaunch/components/TrustBadges.tsx +76 -76
- package/dist/kits/blocks/app/templates/productlaunch/page.tsx +43 -43
- package/dist/kits/blocks/app/templates/saasdashboard/PresetThemeVars.tsx +80 -80
- package/dist/kits/blocks/app/templates/saasdashboard/README.md +44 -44
- package/dist/kits/blocks/app/templates/saasdashboard/components/Contact.tsx +129 -129
- package/dist/kits/blocks/app/templates/saasdashboard/components/Dashboard.tsx +293 -293
- package/dist/kits/blocks/app/templates/saasdashboard/components/FAQ.tsx +55 -55
- package/dist/kits/blocks/app/templates/saasdashboard/components/Features.tsx +90 -90
- package/dist/kits/blocks/app/templates/saasdashboard/components/Footer.tsx +77 -77
- package/dist/kits/blocks/app/templates/saasdashboard/components/Hero.tsx +104 -104
- package/dist/kits/blocks/app/templates/saasdashboard/components/Hero_mask.tsx +126 -126
- package/dist/kits/blocks/app/templates/saasdashboard/components/Navbar.tsx +117 -117
- package/dist/kits/blocks/app/templates/saasdashboard/components/Pricing.tsx +90 -90
- package/dist/kits/blocks/app/templates/saasdashboard/components/SmoothScroll.tsx +96 -96
- package/dist/kits/blocks/app/templates/saasdashboard/components/Testimonials.tsx +72 -72
- package/dist/kits/blocks/app/templates/saasdashboard/components/TrustBadges.tsx +53 -53
- package/dist/kits/blocks/app/templates/saasdashboard/page.tsx +39 -39
- package/dist/kits/blocks/components/enhanced-theme-provider.tsx +195 -195
- package/dist/kits/blocks/components/providers/BlocksAppProviders.tsx +27 -27
- package/dist/kits/blocks/components/sections/About.tsx +291 -291
- package/dist/kits/blocks/components/sections/CTA.tsx +257 -257
- package/dist/kits/blocks/components/sections/Contact.tsx +267 -267
- package/dist/kits/blocks/components/sections/FAQ.tsx +214 -214
- package/dist/kits/blocks/components/sections/Features.tsx +268 -268
- package/dist/kits/blocks/components/sections/Footer.tsx +302 -302
- package/dist/kits/blocks/components/sections/HeroMotion.tsx +308 -308
- package/dist/kits/blocks/components/sections/HeroOverlay.tsx +358 -358
- package/dist/kits/blocks/components/sections/HeroProductDemo.tsx +236 -0
- package/dist/kits/blocks/components/sections/HeroSplit.tsx +352 -352
- package/dist/kits/blocks/components/sections/Navbar.tsx +350 -350
- package/dist/kits/blocks/components/sections/PortfolioSimple.tsx +549 -549
- package/dist/kits/blocks/components/sections/Pricing.tsx +264 -264
- package/dist/kits/blocks/components/sections/ProcessTimeline.tsx +325 -325
- package/dist/kits/blocks/components/sections/ServicesGrid.tsx +210 -210
- package/dist/kits/blocks/components/sections/Team.tsx +309 -309
- package/dist/kits/blocks/components/sections/Testimonials.tsx +158 -158
- package/dist/kits/blocks/components/sections/TrustBadges.tsx +162 -162
- package/dist/kits/blocks/components/sections/product-demo/ApprovalInboxPanel.tsx +125 -0
- package/dist/kits/blocks/components/sections/product-demo/DemoStage.tsx +397 -0
- package/dist/kits/blocks/components/sections/product-demo/DemoWindow.tsx +128 -0
- package/dist/kits/blocks/components/sections/product-demo/KnowledgePanel.tsx +127 -0
- package/dist/kits/blocks/components/sections/product-demo/RunConsolePanel.tsx +150 -0
- package/dist/kits/blocks/components/sections/product-demo/WorkflowStudioPanel.tsx +191 -0
- package/dist/kits/blocks/components/sections/product-demo/types.ts +193 -0
- package/dist/kits/blocks/components/theme-provider.tsx +1 -1
- package/dist/kits/blocks/components/ui/alert-dialog.tsx +134 -134
- package/dist/kits/blocks/components/ui/brand-node.tsx +121 -121
- package/dist/kits/blocks/components/ui/button.tsx +122 -122
- package/dist/kits/blocks/components/ui/card.tsx +95 -95
- package/dist/kits/blocks/components/ui/checkbox.tsx +30 -30
- package/dist/kits/blocks/components/ui/cta-button.tsx +125 -125
- package/dist/kits/blocks/components/ui/dropdown-menu.tsx +201 -201
- package/dist/kits/blocks/components/ui/feature-card.tsx +91 -91
- package/dist/kits/blocks/components/ui/input.tsx +27 -27
- package/dist/kits/blocks/components/ui/label.tsx +29 -29
- package/dist/kits/blocks/components/ui/pricing-card.tsx +120 -120
- package/dist/kits/blocks/components/ui/select.tsx +25 -25
- package/dist/kits/blocks/components/ui/skeleton.tsx +13 -13
- package/dist/kits/blocks/components/ui/table.tsx +98 -98
- package/dist/kits/blocks/components/ui/testimonial-card.tsx +108 -108
- package/dist/kits/blocks/components/ui/textarea.tsx +26 -26
- package/dist/kits/blocks/components/ui/theme-selector.tsx +243 -243
- package/dist/kits/blocks/components/ui/theme-toggle.tsx +74 -74
- package/dist/kits/blocks/components/ui/toaster.tsx +7 -7
- package/dist/kits/blocks/lib/themes.ts +400 -400
- package/dist/kits/blocks/lib/utils.ts +6 -6
- package/dist/kits/blocks/package-deps.json +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import Link from "next/link";
|
|
5
|
+
import { Button } from "@/components/ui/button";
|
|
6
|
+
import { cn } from "@/lib/utils";
|
|
7
|
+
import { DemoStage } from "./product-demo/DemoStage";
|
|
8
|
+
import type { ProductDemoScenario } from "./product-demo/types";
|
|
9
|
+
|
|
10
|
+
export interface HeroProductDemoTextContent {
|
|
11
|
+
text?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface HeroProductDemoCta {
|
|
16
|
+
label?: string;
|
|
17
|
+
href?: string;
|
|
18
|
+
variant?:
|
|
19
|
+
| "default"
|
|
20
|
+
| "destructive"
|
|
21
|
+
| "outline"
|
|
22
|
+
| "secondary"
|
|
23
|
+
| "ghost"
|
|
24
|
+
| "link";
|
|
25
|
+
size?: "default" | "sm" | "lg" | "icon";
|
|
26
|
+
className?: string;
|
|
27
|
+
unstyled?: boolean;
|
|
28
|
+
style?: React.CSSProperties;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface HeroProductDemoStageConfig {
|
|
32
|
+
scenarios?: ProductDemoScenario[];
|
|
33
|
+
initialScenarioIndex?: number;
|
|
34
|
+
activeScenarioKey?: string;
|
|
35
|
+
autoCycle?: boolean;
|
|
36
|
+
cycleIntervalMs?: number;
|
|
37
|
+
className?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface HeroProductDemoSlots {
|
|
41
|
+
section?: { className?: string };
|
|
42
|
+
container?: { className?: string };
|
|
43
|
+
textContainer?: { className?: string };
|
|
44
|
+
demoContainer?: { className?: string };
|
|
45
|
+
buttonsContainer?: { className?: string };
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface HeroProductDemoProps extends HeroProductDemoSlots {
|
|
49
|
+
id?: string;
|
|
50
|
+
className?: string;
|
|
51
|
+
heading?: string | HeroProductDemoTextContent;
|
|
52
|
+
subheading?: string | HeroProductDemoTextContent;
|
|
53
|
+
cta1?: HeroProductDemoCta;
|
|
54
|
+
cta2?: HeroProductDemoCta;
|
|
55
|
+
stage?: HeroProductDemoStageConfig;
|
|
56
|
+
demo?: React.ReactNode;
|
|
57
|
+
ariaLabel?: string;
|
|
58
|
+
enableMotion?: boolean;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
function normalizeTextContent(
|
|
62
|
+
value: string | HeroProductDemoTextContent | undefined,
|
|
63
|
+
defaults: Required<HeroProductDemoTextContent>,
|
|
64
|
+
) {
|
|
65
|
+
if (typeof value === "string") {
|
|
66
|
+
return { text: value, className: defaults.className };
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
text: value?.text ?? defaults.text,
|
|
71
|
+
className: cn(defaults.className, value?.className),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function HeroProductDemo({
|
|
76
|
+
id,
|
|
77
|
+
className,
|
|
78
|
+
heading,
|
|
79
|
+
subheading,
|
|
80
|
+
cta1,
|
|
81
|
+
cta2,
|
|
82
|
+
stage,
|
|
83
|
+
demo,
|
|
84
|
+
section,
|
|
85
|
+
container,
|
|
86
|
+
textContainer,
|
|
87
|
+
demoContainer,
|
|
88
|
+
buttonsContainer,
|
|
89
|
+
ariaLabel = "Product demo hero section",
|
|
90
|
+
enableMotion = true,
|
|
91
|
+
}: HeroProductDemoProps) {
|
|
92
|
+
const defaultHeading = {
|
|
93
|
+
text: "Show your product in motion",
|
|
94
|
+
className:
|
|
95
|
+
"text-4xl font-bold leading-tight tracking-tight text-foreground sm:text-5xl lg:text-6xl",
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const defaultSubheading = {
|
|
99
|
+
text: "Pair clear positioning with a layered product demo that makes the workflow feel real before anyone clicks.",
|
|
100
|
+
className:
|
|
101
|
+
"mt-6 max-w-2xl text-base text-muted-foreground sm:text-lg lg:text-xl",
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const normalizedHeading = normalizeTextContent(heading, defaultHeading);
|
|
105
|
+
const normalizedSubheading = normalizeTextContent(
|
|
106
|
+
subheading,
|
|
107
|
+
defaultSubheading,
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
const buttonLift = enableMotion
|
|
111
|
+
? "transition-all duration-200 hover:-translate-y-0.5"
|
|
112
|
+
: "transition-none hover:!translate-y-0";
|
|
113
|
+
|
|
114
|
+
const defaultCta1 = {
|
|
115
|
+
label: "Get Started",
|
|
116
|
+
href: "#contact",
|
|
117
|
+
variant: "default" as const,
|
|
118
|
+
size: "lg" as const,
|
|
119
|
+
className: "shadow-lg hover:shadow-xl",
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
const mergedCta1 = {
|
|
123
|
+
...defaultCta1,
|
|
124
|
+
...(cta1 ?? {}),
|
|
125
|
+
className: cn(defaultCta1.className, cta1?.className, buttonLift),
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
const defaultCta2 = {
|
|
129
|
+
label: "Learn More",
|
|
130
|
+
href: "#",
|
|
131
|
+
variant: "outline" as const,
|
|
132
|
+
size: "lg" as const,
|
|
133
|
+
className: "",
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const mergedCta2 = cta2
|
|
137
|
+
? {
|
|
138
|
+
...defaultCta2,
|
|
139
|
+
...cta2,
|
|
140
|
+
className: cn(defaultCta2.className, cta2.className, buttonLift),
|
|
141
|
+
}
|
|
142
|
+
: undefined;
|
|
143
|
+
|
|
144
|
+
return (
|
|
145
|
+
<section
|
|
146
|
+
id={id}
|
|
147
|
+
className={cn(
|
|
148
|
+
"relative overflow-hidden px-6 py-16 sm:px-8 lg:px-10 lg:py-24",
|
|
149
|
+
section?.className,
|
|
150
|
+
className,
|
|
151
|
+
)}
|
|
152
|
+
aria-label={ariaLabel}
|
|
153
|
+
>
|
|
154
|
+
<div
|
|
155
|
+
className={cn(
|
|
156
|
+
"mx-auto grid max-w-7xl items-center gap-12 lg:grid-cols-[minmax(0,0.84fr)_minmax(0,1.16fr)] lg:gap-12 xl:grid-cols-[minmax(0,0.8fr)_minmax(0,1.2fr)]",
|
|
157
|
+
|
|
158
|
+
container?.className,
|
|
159
|
+
)}
|
|
160
|
+
>
|
|
161
|
+
<div
|
|
162
|
+
className={cn(
|
|
163
|
+
"relative z-10 flex flex-col items-start",
|
|
164
|
+
textContainer?.className,
|
|
165
|
+
)}
|
|
166
|
+
>
|
|
167
|
+
<h1 className={cn(normalizedHeading.className)}>
|
|
168
|
+
{normalizedHeading.text}
|
|
169
|
+
</h1>
|
|
170
|
+
|
|
171
|
+
<p className={cn(normalizedSubheading.className)}>
|
|
172
|
+
{normalizedSubheading.text}
|
|
173
|
+
</p>
|
|
174
|
+
|
|
175
|
+
<div
|
|
176
|
+
className={cn(
|
|
177
|
+
"mt-8 flex flex-col items-start gap-4 sm:flex-row sm:items-center",
|
|
178
|
+
buttonsContainer?.className,
|
|
179
|
+
)}
|
|
180
|
+
>
|
|
181
|
+
{mergedCta1.label && (
|
|
182
|
+
<Button
|
|
183
|
+
asChild
|
|
184
|
+
variant={mergedCta1.variant}
|
|
185
|
+
size={mergedCta1.size}
|
|
186
|
+
className={mergedCta1.className}
|
|
187
|
+
unstyled={mergedCta1.unstyled}
|
|
188
|
+
style={mergedCta1.style}
|
|
189
|
+
>
|
|
190
|
+
<Link
|
|
191
|
+
href={mergedCta1.href || "#"}
|
|
192
|
+
aria-label={mergedCta1.label}
|
|
193
|
+
>
|
|
194
|
+
{mergedCta1.label}
|
|
195
|
+
</Link>
|
|
196
|
+
</Button>
|
|
197
|
+
)}
|
|
198
|
+
|
|
199
|
+
{mergedCta2?.label && (
|
|
200
|
+
<Button
|
|
201
|
+
asChild
|
|
202
|
+
variant={mergedCta2.variant}
|
|
203
|
+
size={mergedCta2.size}
|
|
204
|
+
className={mergedCta2.className}
|
|
205
|
+
unstyled={mergedCta2.unstyled}
|
|
206
|
+
style={mergedCta2.style}
|
|
207
|
+
>
|
|
208
|
+
<Link
|
|
209
|
+
href={mergedCta2.href || "#"}
|
|
210
|
+
aria-label={mergedCta2.label}
|
|
211
|
+
>
|
|
212
|
+
{mergedCta2.label}
|
|
213
|
+
</Link>
|
|
214
|
+
</Button>
|
|
215
|
+
)}
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
|
|
219
|
+
<div className={cn("relative", demoContainer?.className)}>
|
|
220
|
+
{demo ?? (
|
|
221
|
+
<DemoStage
|
|
222
|
+
scenarios={stage?.scenarios}
|
|
223
|
+
initialScenarioIndex={stage?.initialScenarioIndex}
|
|
224
|
+
activeScenarioKey={stage?.activeScenarioKey}
|
|
225
|
+
autoCycle={stage?.autoCycle}
|
|
226
|
+
cycleIntervalMs={stage?.cycleIntervalMs}
|
|
227
|
+
className={stage?.className}
|
|
228
|
+
enableMotion={enableMotion}
|
|
229
|
+
ariaLabel="Layered product demo"
|
|
230
|
+
/>
|
|
231
|
+
)}
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
</section>
|
|
235
|
+
);
|
|
236
|
+
}
|