nextworks 0.2.0-alpha.2 → 0.2.0-alpha.21
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 +280 -228
- package/dist/cli_manifests/blocks_manifest.json +193 -194
- package/dist/commands/blocks.d.ts +3 -0
- package/dist/commands/blocks.d.ts.map +1 -1
- package/dist/commands/blocks.js +128 -19
- package/dist/commands/blocks.js.map +1 -1
- package/dist/commands/doctor.d.ts +136 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +696 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/remove-blocks.d.ts +4 -1
- package/dist/commands/remove-blocks.d.ts.map +1 -1
- package/dist/commands/remove-blocks.js +24 -6
- package/dist/commands/remove-blocks.js.map +1 -1
- package/dist/index.js +125 -4
- package/dist/index.js.map +1 -1
- package/dist/kits/blocks/.nextworks/docs/BLOCKS_QUICKSTART.md +104 -194
- package/dist/kits/blocks/.nextworks/docs/BLOCKS_README.md +115 -75
- package/dist/kits/blocks/.nextworks/docs/THEME_GUIDE.md +269 -251
- package/dist/kits/blocks/app/templates/digitalagency/PresetThemeVars.tsx +80 -80
- package/dist/kits/blocks/app/templates/digitalagency/README.md +42 -36
- package/dist/kits/blocks/app/templates/digitalagency/components/About.tsx +71 -99
- package/dist/kits/blocks/app/templates/digitalagency/components/CTA.tsx +40 -74
- package/dist/kits/blocks/app/templates/digitalagency/components/Contact.tsx +123 -227
- package/dist/kits/blocks/app/templates/digitalagency/components/Footer.tsx +89 -89
- package/dist/kits/blocks/app/templates/digitalagency/components/Hero.tsx +83 -90
- package/dist/kits/blocks/app/templates/digitalagency/components/Navbar.tsx +121 -168
- package/dist/kits/blocks/app/templates/digitalagency/components/NetworkPattern.tsx +288 -297
- package/dist/kits/blocks/app/templates/digitalagency/components/Portfolio.tsx +157 -157
- 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 +130 -85
- package/dist/kits/blocks/app/templates/gallery/page.tsx +357 -303
- package/dist/kits/blocks/app/templates/productlaunch/PresetThemeVars.tsx +75 -74
- package/dist/kits/blocks/app/templates/productlaunch/README.md +62 -55
- package/dist/kits/blocks/app/templates/productlaunch/components/About.tsx +84 -178
- package/dist/kits/blocks/app/templates/productlaunch/components/CTA.tsx +50 -93
- package/dist/kits/blocks/app/templates/productlaunch/components/Contact.tsx +231 -231
- package/dist/kits/blocks/app/templates/productlaunch/components/FAQ.tsx +86 -93
- package/dist/kits/blocks/app/templates/productlaunch/components/Features.tsx +83 -84
- package/dist/kits/blocks/app/templates/productlaunch/components/Footer.tsx +132 -132
- package/dist/kits/blocks/app/templates/productlaunch/components/Hero.tsx +88 -89
- package/dist/kits/blocks/app/templates/productlaunch/components/Navbar.tsx +116 -162
- 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 -89
- 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 -38
- package/dist/kits/blocks/app/templates/saasdashboard/components/Contact.tsx +129 -176
- 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 -91
- package/dist/kits/blocks/app/templates/saasdashboard/components/Footer.tsx +77 -77
- package/dist/kits/blocks/app/templates/saasdashboard/components/Hero.tsx +104 -105
- package/dist/kits/blocks/app/templates/saasdashboard/components/Hero_mask.tsx +126 -127
- package/dist/kits/blocks/app/templates/saasdashboard/components/Navbar.tsx +117 -159
- package/dist/kits/blocks/app/templates/saasdashboard/components/Pricing.tsx +90 -90
- package/dist/kits/blocks/app/templates/saasdashboard/components/SmoothScroll.tsx +96 -97
- 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 -183
- 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 -258
- package/dist/kits/blocks/components/sections/CommandShowcase.tsx +517 -0
- package/dist/kits/blocks/components/sections/Contact.tsx +267 -267
- package/dist/kits/blocks/components/sections/FAQ.tsx +214 -225
- package/dist/kits/blocks/components/sections/FeaturedProjectShowcase.tsx +687 -0
- package/dist/kits/blocks/components/sections/Features.tsx +268 -270
- 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 +246 -0
- package/dist/kits/blocks/components/sections/HeroSplit.tsx +352 -352
- package/dist/kits/blocks/components/sections/HeroWithVideo.tsx +495 -0
- package/dist/kits/blocks/components/sections/Navbar.tsx +352 -353
- package/dist/kits/blocks/components/sections/PortfolioSimple.tsx +549 -550
- 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/ProjectDeepDive.tsx +805 -0
- package/dist/kits/blocks/components/sections/SelectedWorkRail.tsx +485 -0
- 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 +128 -0
- package/dist/kits/blocks/components/sections/product-demo/DemoStage.tsx +519 -0
- package/dist/kits/blocks/components/sections/product-demo/DemoWindow.tsx +140 -0
- package/dist/kits/blocks/components/sections/product-demo/KnowledgePanel.tsx +130 -0
- package/dist/kits/blocks/components/sections/product-demo/RunConsolePanel.tsx +430 -0
- package/dist/kits/blocks/components/sections/product-demo/TaskListPanel.tsx +302 -0
- package/dist/kits/blocks/components/sections/product-demo/WorkflowStudioPanel.tsx +744 -0
- package/dist/kits/blocks/components/sections/product-demo/types.ts +262 -0
- package/dist/kits/blocks/components/theme-provider.tsx +1 -34
- 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 -247
- 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 -9
- package/dist/kits/blocks/package-deps.json +40 -28
- package/dist/kits/blocks/tsconfig.json +11 -0
- package/dist/kits/blocks/tsconfig.tsbuildinfo +1 -0
- package/dist/utils/file-operations.d.ts +3 -1
- package/dist/utils/file-operations.d.ts.map +1 -1
- package/dist/utils/file-operations.js +84 -12
- package/dist/utils/file-operations.js.map +1 -1
- package/dist/utils/installation-tracker.d.ts +2 -2
- package/dist/utils/installation-tracker.d.ts.map +1 -1
- package/dist/utils/installation-tracker.js +11 -11
- package/dist/utils/installation-tracker.js.map +1 -1
- package/dist/utils/package-manager.d.ts +6 -0
- package/dist/utils/package-manager.d.ts.map +1 -0
- package/dist/utils/package-manager.js +58 -0
- package/dist/utils/package-manager.js.map +1 -0
- package/dist/utils/yarn-pnp.d.ts +6 -0
- package/dist/utils/yarn-pnp.d.ts.map +1 -0
- package/dist/utils/yarn-pnp.js +39 -0
- package/dist/utils/yarn-pnp.js.map +1 -0
- package/package.json +5 -2
- package/dist/kits/blocks/notes/THEME_GUIDE.md +0 -29
|
@@ -1,90 +1,83 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { HeroSplit } from "@/components/sections/HeroSplit";
|
|
5
|
-
import { NetworkPattern } from "./NetworkPattern";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"[--btn-bg:theme(colors.fuchsia.
|
|
37
|
-
"
|
|
38
|
-
"[--btn-fg:theme(colors.white)]",
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"[--btn-
|
|
52
|
-
"[--btn-
|
|
53
|
-
"[--btn-bg:oklch(
|
|
54
|
-
"hover:[--btn-hover-
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
"dark:[--btn-
|
|
58
|
-
"dark:[--btn-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
// buttonsContainer={{ className: "flex gap-4 mt-8" }}
|
|
85
|
-
textAlign="center"
|
|
86
|
-
ariaLabel="Digital innovation that drives growth hero section"
|
|
87
|
-
/>
|
|
88
|
-
</section>
|
|
89
|
-
);
|
|
90
|
-
}
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { HeroSplit } from "@/components/sections/HeroSplit";
|
|
5
|
+
import { NetworkPattern } from "./NetworkPattern";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Hero preset for the digital agency template
|
|
9
|
+
*/
|
|
10
|
+
export function Hero() {
|
|
11
|
+
return (
|
|
12
|
+
<section id="home" className="bg-white dark:bg-black">
|
|
13
|
+
<HeroSplit
|
|
14
|
+
section={{
|
|
15
|
+
className:
|
|
16
|
+
"relative bg-gradient-to-br from-violet-600 to-fuchsia-600 px-6 pt-8 pb-16 md:pt-12 md:pb-20 text-white hero-pattern",
|
|
17
|
+
}}
|
|
18
|
+
heading={{
|
|
19
|
+
text: "Digital Innovation That Drives Growth",
|
|
20
|
+
className:
|
|
21
|
+
"text-5xl md:text-5xl lg:text-7xl font-extrabold leading-tight text-white font-poppins",
|
|
22
|
+
}}
|
|
23
|
+
subheading={{
|
|
24
|
+
text: "We craft exceptional digital experiences that transform businesses. From cutting-edge web applications to AI-powered solutions, we turn your vision into reality.",
|
|
25
|
+
className:
|
|
26
|
+
"mt-6 text-xl md:text-1xl text-white/90 max-w-3xl font-inter font-medium leading-relaxed",
|
|
27
|
+
}}
|
|
28
|
+
cta1={{
|
|
29
|
+
label: "Start Your Project",
|
|
30
|
+
href: "#contact",
|
|
31
|
+
variant: "default",
|
|
32
|
+
size: "lg",
|
|
33
|
+
className: [
|
|
34
|
+
"font-poppins font-semibold px-8 py-3 shadow-lg hover:shadow-xl transition-all duration-200 hover:-translate-y-0.5 text-lg",
|
|
35
|
+
"[--btn-bg:theme(colors.fuchsia.600)]",
|
|
36
|
+
"hover:[--btn-hover-bg:theme(colors.fuchsia.700)]",
|
|
37
|
+
"[--btn-fg:theme(colors.white)]",
|
|
38
|
+
"hover:[--btn-hover-fg:theme(colors.white)]",
|
|
39
|
+
].join(" "),
|
|
40
|
+
}}
|
|
41
|
+
cta2={{
|
|
42
|
+
label: "Explore Solutions",
|
|
43
|
+
href: "#services",
|
|
44
|
+
variant: "outline",
|
|
45
|
+
size: "lg",
|
|
46
|
+
className: [
|
|
47
|
+
"font-poppins font-semibold px-8 py-3 text-lg shadow-lg hover:shadow-xl transition-all duration-200 hover:-translate-y-0.5",
|
|
48
|
+
"border-2",
|
|
49
|
+
// set colors via vars
|
|
50
|
+
"[--btn-fg:oklch(0.51_0.18_341)]",
|
|
51
|
+
"[--btn-border:oklch(0.97_0.01_0)]",
|
|
52
|
+
"[--btn-bg:oklch(0.97_0.01_0_/0.9)]",
|
|
53
|
+
"hover:[--btn-hover-bg:oklch(1_0_0)]",
|
|
54
|
+
"hover:[--btn-hover-fg:oklch(0.51_0.18_341)]",
|
|
55
|
+
"dark:[--btn-fg:oklch(1_0_0)]",
|
|
56
|
+
"dark:[--btn-border:oklch(1_0_0_/0.9)]",
|
|
57
|
+
"dark:[--btn-bg:transparent]",
|
|
58
|
+
"dark:hover:[--btn-hover-bg:oklch(1_0_0))]",
|
|
59
|
+
].join(" "),
|
|
60
|
+
}}
|
|
61
|
+
image={{
|
|
62
|
+
src: undefined,
|
|
63
|
+
alt: "Digital innovation network visualization",
|
|
64
|
+
className: "object-contain",
|
|
65
|
+
}}
|
|
66
|
+
imageLayout="full-bleed"
|
|
67
|
+
fallback={<NetworkPattern />}
|
|
68
|
+
imageContainer={{ className: "mt-10 sm:mt-10 md:mt-0 md:mr-0 lg:mr-7" }}
|
|
69
|
+
textContainer={{
|
|
70
|
+
className: "flex-1 px-5 lg:px-8 lg:self-start pt-0 md:pt-2 lg:pt-4",
|
|
71
|
+
}}
|
|
72
|
+
buttonsContainer={{
|
|
73
|
+
className: [
|
|
74
|
+
"gap-4 mt-8 sm:flex-col lg:flex-row",
|
|
75
|
+
"[--btn-ring:oklch(1_0_0)]",
|
|
76
|
+
].join(" "),
|
|
77
|
+
}}
|
|
78
|
+
textAlign="center"
|
|
79
|
+
ariaLabel="Digital innovation that drives growth hero section"
|
|
80
|
+
/>
|
|
81
|
+
</section>
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -1,168 +1,121 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import type { ComponentProps } from "react";
|
|
4
|
-
import { Navbar as SharedNavbar } from "@/components/sections/Navbar";
|
|
5
|
-
import { BrandNodeGradientRing } from "@/components/ui/brand-node";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Digital Agency preset Navbar
|
|
9
|
-
*
|
|
10
|
-
* -
|
|
11
|
-
* -
|
|
12
|
-
* -
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
{ label: "
|
|
32
|
-
{ label: "
|
|
33
|
-
{ label: "
|
|
34
|
-
{ label: "
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"[--navbar-
|
|
53
|
-
"[--navbar-
|
|
54
|
-
"[--navbar-
|
|
55
|
-
"[--navbar-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
// themeToggle
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
...
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// "use client";
|
|
123
|
-
|
|
124
|
-
// import React from "react";
|
|
125
|
-
// import { Navbar as SharedNavbar } from "@/components/sections/Navbar";
|
|
126
|
-
// import { BrandNodeGradientRing } from "@/components/ui/brand-node";
|
|
127
|
-
|
|
128
|
-
// export function Navbar() {
|
|
129
|
-
// return (
|
|
130
|
-
// <SharedNavbar
|
|
131
|
-
// brand="Nexus Digital"
|
|
132
|
-
// brandNode={
|
|
133
|
-
// <BrandNodeGradientRing gradient="conic-gradient(#7c3aed, #ec4899, #7c3aed)" />
|
|
134
|
-
// }
|
|
135
|
-
// // brandNode={
|
|
136
|
-
// // <div className="grid h-8 w-8 place-items-center rounded-md bg-gradient-to-br from-blue-600 to-purple-600 text-xs font-extrabold text-white shadow-sm">
|
|
137
|
-
// // ND
|
|
138
|
-
// // </div>
|
|
139
|
-
// // }
|
|
140
|
-
// menuItems={[
|
|
141
|
-
// { label: "Home", href: "#home" },
|
|
142
|
-
// { label: "Services", href: "#services" },
|
|
143
|
-
// { label: "Portfolio", href: "#portfolio" },
|
|
144
|
-
// { label: "Pricing", href: "#pricing" },
|
|
145
|
-
// { label: "Contact", href: "#contact" },
|
|
146
|
-
// ]}
|
|
147
|
-
// ctaButton={null}
|
|
148
|
-
// showColorModeToggle={true}
|
|
149
|
-
// nav={{
|
|
150
|
-
// className:
|
|
151
|
-
// "bg-white/80 dark:bg-gray-900/80 backdrop-blur border-b border-gray-200 dark:border-gray-800 text-gray-800 dark:text-white",
|
|
152
|
-
// }}
|
|
153
|
-
// brandText={{
|
|
154
|
-
// className:
|
|
155
|
-
// "text-2xl font-bold font-poppins text-fuchsia-600 dark:text-fuchsia-400",
|
|
156
|
-
// }}
|
|
157
|
-
// links={{
|
|
158
|
-
// className:
|
|
159
|
-
// "text-sm font-inter font-medium text-gray-700 dark:text-gray-200 hover:text-fuchsia-600 dark:hover:text-fuchsia-400",
|
|
160
|
-
// }}
|
|
161
|
-
// mobileMenu={{
|
|
162
|
-
// className: "border-t border-gray-200 dark:border-gray-800",
|
|
163
|
-
// }}
|
|
164
|
-
// />
|
|
165
|
-
// );
|
|
166
|
-
// }
|
|
167
|
-
|
|
168
|
-
// export default Navbar;
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import type { ComponentProps } from "react";
|
|
4
|
+
import { Navbar as SharedNavbar } from "@/components/sections/Navbar";
|
|
5
|
+
import { BrandNodeGradientRing } from "@/components/ui/brand-node";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Digital Agency preset Navbar
|
|
9
|
+
*
|
|
10
|
+
* - No CTA button (ctaButton = null)
|
|
11
|
+
* - Fuchsia hover/focus accents for links and toggles
|
|
12
|
+
* - Exposes the full Shared Navbar API via shallow-merge overrides
|
|
13
|
+
*
|
|
14
|
+
* This preset exposes the Shared Navbar API, allowing full customization of any prop or slot.
|
|
15
|
+
*
|
|
16
|
+
* Example overrides:
|
|
17
|
+
* <Navbar
|
|
18
|
+
* links={{ className: "hover:text-emerald-600" }}
|
|
19
|
+
* container={{ className: "max-w-6xl mx-auto" }}
|
|
20
|
+
* />
|
|
21
|
+
*/
|
|
22
|
+
type SharedNavbarProps = ComponentProps<typeof SharedNavbar>;
|
|
23
|
+
type PresetOverrides = Partial<SharedNavbarProps>;
|
|
24
|
+
|
|
25
|
+
const defaultProps: SharedNavbarProps = {
|
|
26
|
+
brand: "Nexus Digital",
|
|
27
|
+
brandNode: (
|
|
28
|
+
<BrandNodeGradientRing gradient="conic-gradient(#7c3aed, #ec4899, #7c3aed)" />
|
|
29
|
+
),
|
|
30
|
+
menuItems: [
|
|
31
|
+
{ label: "Home", href: "#home" },
|
|
32
|
+
{ label: "Services", href: "#services" },
|
|
33
|
+
{ label: "Portfolio", href: "#portfolio" },
|
|
34
|
+
{ label: "Pricing", href: "#pricing" },
|
|
35
|
+
{ label: "Contact", href: "#contact" },
|
|
36
|
+
],
|
|
37
|
+
ctaButton: null,
|
|
38
|
+
showColorModeToggle: true,
|
|
39
|
+
navHeight: "h-16",
|
|
40
|
+
sticky: true,
|
|
41
|
+
ariaLabel: "Nexus Digital main navigation",
|
|
42
|
+
|
|
43
|
+
// Allow page-level layout overrides if needed
|
|
44
|
+
className: "",
|
|
45
|
+
|
|
46
|
+
// Style slots
|
|
47
|
+
nav: {
|
|
48
|
+
className:
|
|
49
|
+
"bg-white/80 dark:bg-gray-900/80 backdrop-blur border-b border-gray-200 dark:border-gray-800 " +
|
|
50
|
+
"text-gray-800 dark:text-white " +
|
|
51
|
+
// Accent variables for this preset (read by toggle, links, mobile links)
|
|
52
|
+
"[--navbar-accent:theme(colors.fuchsia.600)] dark:[--navbar-accent:theme(colors.fuchsia.400)] " +
|
|
53
|
+
"[--navbar-toggle-bg:theme(colors.white)] dark:[--navbar-toggle-bg:theme(colors.gray.900)] " +
|
|
54
|
+
"[--navbar-hover-bg:theme(colors.fuchsia.50)] dark:[--navbar-hover-bg:color-mix(in oklab,oklch(0.24 0.07 330) 20%, transparent)] " +
|
|
55
|
+
"[--navbar-ring:theme(colors.fuchsia.500)] dark:[--navbar-ring:theme(colors.fuchsia.400)] " +
|
|
56
|
+
"[--navbar-border:theme(colors.gray.200)] dark:[--navbar-border:theme(colors.gray.800)]",
|
|
57
|
+
},
|
|
58
|
+
brandText: {
|
|
59
|
+
className:
|
|
60
|
+
"text-2xl font-bold font-poppins text-fuchsia-600 dark:text-fuchsia-400",
|
|
61
|
+
},
|
|
62
|
+
links: {
|
|
63
|
+
className:
|
|
64
|
+
"text-sm font-inter font-medium text-gray-700 dark:text-gray-200 " +
|
|
65
|
+
"hover:text-fuchsia-600 dark:hover:text-fuchsia-400 " +
|
|
66
|
+
"focus:ring-[var(--navbar-ring)]",
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
// CTA hidden by default; styled to match theme if enabled later
|
|
70
|
+
ctaButtonStyle: {
|
|
71
|
+
variant: "default",
|
|
72
|
+
size: "default",
|
|
73
|
+
className:
|
|
74
|
+
"shadow-lg hover:shadow-xl transition-all duration-200 hover:-translate-y-0.5 " +
|
|
75
|
+
"bg-fuchsia-600 text-white hover:bg-fuchsia-700 " +
|
|
76
|
+
"dark:bg-fuchsia-500 dark:hover:bg-fuchsia-400",
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
mobileMenu: {
|
|
80
|
+
className: "border-t border-gray-200 dark:border-gray-800",
|
|
81
|
+
},
|
|
82
|
+
container: {
|
|
83
|
+
className: "max-w-7xl mx-auto",
|
|
84
|
+
},
|
|
85
|
+
brandWrapper: {
|
|
86
|
+
className: "",
|
|
87
|
+
},
|
|
88
|
+
desktopMenu: {
|
|
89
|
+
className: "hidden items-center space-x-1 md:flex lg:space-x-6",
|
|
90
|
+
},
|
|
91
|
+
toggleButton: {
|
|
92
|
+
className:
|
|
93
|
+
"md:hidden flex items-center justify-center rounded-md p-2 transition-colors " +
|
|
94
|
+
"hover:bg-fuchsia-50 dark:hover:bg-fuchsia-900/20 " +
|
|
95
|
+
"focus:outline-none focus:ring-2 focus:ring-fuchsia-500 dark:focus:ring-fuchsia-400",
|
|
96
|
+
},
|
|
97
|
+
colorModeWrapper: {
|
|
98
|
+
className: "ml-2",
|
|
99
|
+
},
|
|
100
|
+
// ThemeToggle reads the CSS vars defined in `nav.className`; override via `themeToggle` if needed.
|
|
101
|
+
// themeToggle: { ... }
|
|
102
|
+
ctaButtonWrapper: {
|
|
103
|
+
className: "ml-2",
|
|
104
|
+
},
|
|
105
|
+
mobileMenuInner: {
|
|
106
|
+
className: "space-y-2 px-4 pt-2 pb-4",
|
|
107
|
+
},
|
|
108
|
+
// Mobile links will read --navbar-hover-bg; explicit class optional
|
|
109
|
+
mobileLinks: {
|
|
110
|
+
className: "hover:bg-[var(--navbar-hover-bg)]",
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export function Navbar(overrides: PresetOverrides = {}) {
|
|
115
|
+
// Shallow-merge: providing a slot object replaces that slot entirely.
|
|
116
|
+
const props: SharedNavbarProps = {
|
|
117
|
+
...defaultProps,
|
|
118
|
+
...overrides,
|
|
119
|
+
};
|
|
120
|
+
return <SharedNavbar {...props} />;
|
|
121
|
+
}
|