nextworks 0.0.1 → 0.1.0-alpha.0

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 (277) hide show
  1. package/README.md +209 -30
  2. package/dist/.gitkeep +0 -0
  3. package/dist/cli_manifests/auth_manifest.json +86 -0
  4. package/dist/cli_manifests/blocks_manifest.json +185 -0
  5. package/dist/cli_manifests/data_manifest.json +51 -0
  6. package/dist/cli_manifests/forms_manifest.json +61 -0
  7. package/dist/commands/admin-posts.d.ts +2 -0
  8. package/dist/commands/admin-posts.d.ts.map +1 -0
  9. package/dist/commands/admin-posts.js +15 -0
  10. package/dist/commands/admin-posts.js.map +1 -0
  11. package/dist/commands/admin-users.d.ts +2 -0
  12. package/dist/commands/admin-users.d.ts.map +1 -0
  13. package/dist/commands/admin-users.js +15 -0
  14. package/dist/commands/admin-users.js.map +1 -0
  15. package/dist/commands/auth-core.d.ts +2 -0
  16. package/dist/commands/auth-core.d.ts.map +1 -0
  17. package/dist/commands/auth-core.js +83 -0
  18. package/dist/commands/auth-core.js.map +1 -0
  19. package/dist/commands/auth-forms.d.ts +2 -0
  20. package/dist/commands/auth-forms.d.ts.map +1 -0
  21. package/dist/commands/auth-forms.js +15 -0
  22. package/dist/commands/auth-forms.js.map +1 -0
  23. package/dist/commands/blocks-options.d.ts +7 -0
  24. package/dist/commands/blocks-options.d.ts.map +1 -0
  25. package/dist/commands/blocks-options.js +19 -0
  26. package/dist/commands/blocks-options.js.map +1 -0
  27. package/dist/commands/blocks.d.ts +7 -0
  28. package/dist/commands/blocks.d.ts.map +1 -0
  29. package/dist/commands/blocks.js +140 -0
  30. package/dist/commands/blocks.js.map +1 -0
  31. package/dist/commands/data.d.ts +3 -0
  32. package/dist/commands/data.d.ts.map +1 -0
  33. package/dist/commands/data.js +88 -0
  34. package/dist/commands/data.js.map +1 -0
  35. package/dist/commands/forms.d.ts +6 -0
  36. package/dist/commands/forms.d.ts.map +1 -0
  37. package/dist/commands/forms.js +107 -0
  38. package/dist/commands/forms.js.map +1 -0
  39. package/dist/commands/remove-auth-core.d.ts +2 -0
  40. package/dist/commands/remove-auth-core.d.ts.map +1 -0
  41. package/dist/commands/remove-auth-core.js +69 -0
  42. package/dist/commands/remove-auth-core.js.map +1 -0
  43. package/dist/commands/remove-blocks.d.ts +2 -0
  44. package/dist/commands/remove-blocks.d.ts.map +1 -0
  45. package/dist/commands/remove-blocks.js +36 -0
  46. package/dist/commands/remove-blocks.js.map +1 -0
  47. package/dist/index.d.ts +3 -0
  48. package/dist/index.d.ts.map +1 -0
  49. package/dist/index.js +109 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/kits/auth-core/README.md +82 -0
  52. package/dist/kits/auth-core/app/(protected)/dashboard/page.tsx +8 -0
  53. package/dist/kits/auth-core/app/(protected)/layout.tsx +18 -0
  54. package/dist/kits/auth-core/app/(protected)/settings/profile/page.tsx +15 -0
  55. package/dist/kits/auth-core/app/(protected)/settings/profile/profile-form.tsx +114 -0
  56. package/dist/kits/auth-core/app/api/auth/[...nextauth]/route.ts +1 -0
  57. package/dist/kits/auth-core/app/api/auth/forgot-password/route.ts +114 -0
  58. package/dist/kits/auth-core/app/api/auth/providers/route.ts +6 -0
  59. package/dist/kits/auth-core/app/api/auth/reset-password/route.ts +63 -0
  60. package/dist/kits/auth-core/app/api/auth/send-verify-email/route.ts +6 -0
  61. package/dist/kits/auth-core/app/api/signup/route.ts +41 -0
  62. package/dist/kits/auth-core/app/auth/forgot-password/page.tsx +21 -0
  63. package/dist/kits/auth-core/app/auth/login/page.tsx +5 -0
  64. package/dist/kits/auth-core/app/auth/reset-password/page.tsx +187 -0
  65. package/dist/kits/auth-core/app/auth/signup/page.tsx +5 -0
  66. package/dist/kits/auth-core/app/auth/verify-email/page.tsx +11 -0
  67. package/dist/kits/auth-core/components/admin/admin-header.tsx +57 -0
  68. package/dist/kits/auth-core/components/auth/dashboard.tsx +237 -0
  69. package/dist/kits/auth-core/components/auth/forgot-password-form.tsx +90 -0
  70. package/dist/kits/auth-core/components/auth/login-form.tsx +467 -0
  71. package/dist/kits/auth-core/components/auth/logout-button.tsx +50 -0
  72. package/dist/kits/auth-core/components/auth/minimal-logout-button.tsx +40 -0
  73. package/dist/kits/auth-core/components/auth/signup-form.tsx +468 -0
  74. package/dist/kits/auth-core/components/require-auth.tsx +59 -0
  75. package/dist/kits/auth-core/components/session-provider.tsx +11 -0
  76. package/dist/kits/auth-core/components/ui/README.txt +1 -0
  77. package/dist/kits/auth-core/components/ui/button.tsx +55 -0
  78. package/dist/kits/auth-core/components/ui/input.tsx +25 -0
  79. package/dist/kits/auth-core/components/ui/label.tsx +23 -0
  80. package/dist/kits/auth-core/lib/api/errors.ts +14 -0
  81. package/dist/kits/auth-core/lib/auth-helpers.ts +29 -0
  82. package/dist/kits/auth-core/lib/auth.ts +142 -0
  83. package/dist/kits/auth-core/lib/email/dev-transport.ts +42 -0
  84. package/dist/kits/auth-core/lib/email/index.ts +28 -0
  85. package/dist/kits/auth-core/lib/email/provider-smtp.ts +36 -0
  86. package/dist/kits/auth-core/lib/forms/map-errors.ts +11 -0
  87. package/dist/kits/auth-core/lib/hash.ts +6 -0
  88. package/dist/kits/auth-core/lib/prisma.ts +15 -0
  89. package/dist/kits/auth-core/lib/server/result.ts +45 -0
  90. package/dist/kits/auth-core/lib/utils.ts +6 -0
  91. package/dist/kits/auth-core/lib/validation/forms.ts +88 -0
  92. package/dist/kits/auth-core/package-deps.json +19 -0
  93. package/dist/kits/auth-core/prisma/auth-models.prisma +81 -0
  94. package/dist/kits/auth-core/prisma/schema.prisma +81 -0
  95. package/dist/kits/auth-core/scripts/populate-tokenhash.mjs +26 -0
  96. package/dist/kits/auth-core/scripts/promote-admin.mjs +33 -0
  97. package/dist/kits/auth-core/scripts/seed-demo.mjs +40 -0
  98. package/dist/kits/auth-core/types/next-auth.d.ts +25 -0
  99. package/dist/kits/blocks/README.md +53 -0
  100. package/dist/kits/blocks/app/globals.css +175 -0
  101. package/dist/kits/blocks/app/templates/digitalagency/PresetThemeVars.tsx +80 -0
  102. package/dist/kits/blocks/app/templates/digitalagency/README.md +36 -0
  103. package/dist/kits/blocks/app/templates/digitalagency/components/About.tsx +99 -0
  104. package/dist/kits/blocks/app/templates/digitalagency/components/CTA.tsx +74 -0
  105. package/dist/kits/blocks/app/templates/digitalagency/components/Contact.tsx +227 -0
  106. package/dist/kits/blocks/app/templates/digitalagency/components/Footer.tsx +89 -0
  107. package/dist/kits/blocks/app/templates/digitalagency/components/Hero.tsx +90 -0
  108. package/dist/kits/blocks/app/templates/digitalagency/components/Navbar.tsx +168 -0
  109. package/dist/kits/blocks/app/templates/digitalagency/components/NetworkPattern.tsx +297 -0
  110. package/dist/kits/blocks/app/templates/digitalagency/components/Portfolio.tsx +157 -0
  111. package/dist/kits/blocks/app/templates/digitalagency/components/Pricing.tsx +114 -0
  112. package/dist/kits/blocks/app/templates/digitalagency/components/Process.tsx +59 -0
  113. package/dist/kits/blocks/app/templates/digitalagency/components/Services.tsx +55 -0
  114. package/dist/kits/blocks/app/templates/digitalagency/components/Team.tsx +28 -0
  115. package/dist/kits/blocks/app/templates/digitalagency/components/Testimonials.tsx +65 -0
  116. package/dist/kits/blocks/app/templates/digitalagency/page.tsx +38 -0
  117. package/dist/kits/blocks/app/templates/gallery/PresetThemeVars.tsx +85 -0
  118. package/dist/kits/blocks/app/templates/gallery/page.tsx +303 -0
  119. package/dist/kits/blocks/app/templates/productlaunch/PresetThemeVars.tsx +74 -0
  120. package/dist/kits/blocks/app/templates/productlaunch/README.md +55 -0
  121. package/dist/kits/blocks/app/templates/productlaunch/components/About.tsx +178 -0
  122. package/dist/kits/blocks/app/templates/productlaunch/components/CTA.tsx +93 -0
  123. package/dist/kits/blocks/app/templates/productlaunch/components/Contact.tsx +231 -0
  124. package/dist/kits/blocks/app/templates/productlaunch/components/FAQ.tsx +93 -0
  125. package/dist/kits/blocks/app/templates/productlaunch/components/Features.tsx +84 -0
  126. package/dist/kits/blocks/app/templates/productlaunch/components/Footer.tsx +132 -0
  127. package/dist/kits/blocks/app/templates/productlaunch/components/Hero.tsx +89 -0
  128. package/dist/kits/blocks/app/templates/productlaunch/components/Navbar.tsx +162 -0
  129. package/dist/kits/blocks/app/templates/productlaunch/components/Pricing.tsx +106 -0
  130. package/dist/kits/blocks/app/templates/productlaunch/components/ProcessTimeline.tsx +110 -0
  131. package/dist/kits/blocks/app/templates/productlaunch/components/ServicesGrid.tsx +68 -0
  132. package/dist/kits/blocks/app/templates/productlaunch/components/Team.tsx +104 -0
  133. package/dist/kits/blocks/app/templates/productlaunch/components/Testimonials.tsx +89 -0
  134. package/dist/kits/blocks/app/templates/productlaunch/components/TrustBadges.tsx +76 -0
  135. package/dist/kits/blocks/app/templates/productlaunch/page.tsx +45 -0
  136. package/dist/kits/blocks/app/templates/saasdashboard/PresetThemeVars.tsx +80 -0
  137. package/dist/kits/blocks/app/templates/saasdashboard/README.md +38 -0
  138. package/dist/kits/blocks/app/templates/saasdashboard/components/Contact.tsx +176 -0
  139. package/dist/kits/blocks/app/templates/saasdashboard/components/Dashboard.tsx +293 -0
  140. package/dist/kits/blocks/app/templates/saasdashboard/components/FAQ.tsx +55 -0
  141. package/dist/kits/blocks/app/templates/saasdashboard/components/Features.tsx +91 -0
  142. package/dist/kits/blocks/app/templates/saasdashboard/components/Footer.tsx +77 -0
  143. package/dist/kits/blocks/app/templates/saasdashboard/components/Hero.tsx +105 -0
  144. package/dist/kits/blocks/app/templates/saasdashboard/components/Hero_mask.tsx +127 -0
  145. package/dist/kits/blocks/app/templates/saasdashboard/components/Navbar.tsx +159 -0
  146. package/dist/kits/blocks/app/templates/saasdashboard/components/Pricing.tsx +90 -0
  147. package/dist/kits/blocks/app/templates/saasdashboard/components/SmoothScroll.tsx +97 -0
  148. package/dist/kits/blocks/app/templates/saasdashboard/components/Testimonials.tsx +72 -0
  149. package/dist/kits/blocks/app/templates/saasdashboard/components/TrustBadges.tsx +53 -0
  150. package/dist/kits/blocks/app/templates/saasdashboard/page.tsx +39 -0
  151. package/dist/kits/blocks/components/app-providers.tsx +1 -0
  152. package/dist/kits/blocks/components/enhanced-theme-provider.tsx +195 -0
  153. package/dist/kits/blocks/components/sections/About.tsx +291 -0
  154. package/dist/kits/blocks/components/sections/CTA.tsx +258 -0
  155. package/dist/kits/blocks/components/sections/Contact.tsx +267 -0
  156. package/dist/kits/blocks/components/sections/FAQ.tsx +226 -0
  157. package/dist/kits/blocks/components/sections/Features.tsx +269 -0
  158. package/dist/kits/blocks/components/sections/Footer.tsx +302 -0
  159. package/dist/kits/blocks/components/sections/HeroMotion.tsx +307 -0
  160. package/dist/kits/blocks/components/sections/HeroOverlay.tsx +358 -0
  161. package/dist/kits/blocks/components/sections/HeroSplit.tsx +352 -0
  162. package/dist/kits/blocks/components/sections/Navbar.tsx +353 -0
  163. package/dist/kits/blocks/components/sections/Newsletter.tsx +156 -0
  164. package/dist/kits/blocks/components/sections/PortfolioSimple.tsx +550 -0
  165. package/dist/kits/blocks/components/sections/Pricing.tsx +264 -0
  166. package/dist/kits/blocks/components/sections/ProcessTimeline.tsx +325 -0
  167. package/dist/kits/blocks/components/sections/ServicesGrid.tsx +210 -0
  168. package/dist/kits/blocks/components/sections/Team.tsx +309 -0
  169. package/dist/kits/blocks/components/sections/Testimonials.tsx +158 -0
  170. package/dist/kits/blocks/components/sections/TrustBadges.tsx +162 -0
  171. package/dist/kits/blocks/components/theme-provider.tsx +34 -0
  172. package/dist/kits/blocks/components/ui/alert-dialog.tsx +134 -0
  173. package/dist/kits/blocks/components/ui/brand-node.tsx +121 -0
  174. package/dist/kits/blocks/components/ui/button.tsx +122 -0
  175. package/dist/kits/blocks/components/ui/button_bck.tsx +93 -0
  176. package/dist/kits/blocks/components/ui/card.tsx +95 -0
  177. package/dist/kits/blocks/components/ui/checkbox.tsx +30 -0
  178. package/dist/kits/blocks/components/ui/cta-button.tsx +125 -0
  179. package/dist/kits/blocks/components/ui/dropdown-menu.tsx +201 -0
  180. package/dist/kits/blocks/components/ui/feature-card.tsx +91 -0
  181. package/dist/kits/blocks/components/ui/input.tsx +27 -0
  182. package/dist/kits/blocks/components/ui/label.tsx +29 -0
  183. package/dist/kits/blocks/components/ui/pricing-card.tsx +120 -0
  184. package/dist/kits/blocks/components/ui/select.tsx +25 -0
  185. package/dist/kits/blocks/components/ui/skeleton.tsx +13 -0
  186. package/dist/kits/blocks/components/ui/switch.tsx +78 -0
  187. package/dist/kits/blocks/components/ui/table.tsx +98 -0
  188. package/dist/kits/blocks/components/ui/testimonial-card.tsx +108 -0
  189. package/dist/kits/blocks/components/ui/textarea.tsx +26 -0
  190. package/dist/kits/blocks/components/ui/theme-selector.tsx +247 -0
  191. package/dist/kits/blocks/components/ui/theme-toggle.tsx +74 -0
  192. package/dist/kits/blocks/components/ui/toaster.tsx +7 -0
  193. package/dist/kits/blocks/lib/themes.ts +399 -0
  194. package/dist/kits/blocks/lib/themes_old.ts +37 -0
  195. package/dist/kits/blocks/lib/utils.ts +9 -0
  196. package/dist/kits/blocks/next.config.ts +11 -0
  197. package/dist/kits/blocks/notes/THEME_GUIDE.md +29 -0
  198. package/dist/kits/blocks/notes/THEMING_CONVERSION_SUMMARY.md +14 -0
  199. package/dist/kits/blocks/package-deps.json +22 -0
  200. package/dist/kits/blocks/public/placeholders/gallery/hero-pexels-broken-9945014.avif +0 -0
  201. package/dist/kits/blocks/public/placeholders/gallery/pexels-googledeepmind-25626431.jpg +0 -0
  202. package/dist/kits/blocks/public/placeholders/gallery/pexels-googledeepmind-25626432.jpg +0 -0
  203. package/dist/kits/blocks/public/placeholders/gallery/pexels-googledeepmind-25626434.jpg +0 -0
  204. package/dist/kits/blocks/public/placeholders/gallery/pexels-googledeepmind-25626436.jpg +0 -0
  205. package/dist/kits/blocks/public/placeholders/product_launch/feature_1.png +0 -0
  206. package/dist/kits/blocks/public/placeholders/product_launch/feature_2.png +0 -0
  207. package/dist/kits/blocks/public/placeholders/product_launch/feature_3.png +0 -0
  208. package/dist/kits/blocks/public/placeholders/product_launch/feature_4.png +0 -0
  209. package/dist/kits/blocks/public/placeholders/product_launch/hero.png +0 -0
  210. package/dist/kits/blocks/public/placeholders/saas_dashboard/analytics.png +0 -0
  211. package/dist/kits/blocks/public/placeholders/saas_dashboard/chat.png +0 -0
  212. package/dist/kits/blocks/public/placeholders/saas_dashboard/projectBoard.png +0 -0
  213. package/dist/kits/data/.gitkeep +0 -0
  214. package/dist/kits/data/README.md +80 -0
  215. package/dist/kits/data/app/(protected)/admin/posts/page.tsx +5 -0
  216. package/dist/kits/data/app/(protected)/admin/users/page.tsx +5 -0
  217. package/dist/kits/data/app/api/posts/[id]/route.ts +83 -0
  218. package/dist/kits/data/app/api/posts/route.ts +138 -0
  219. package/dist/kits/data/app/api/seed-demo/route.ts +45 -0
  220. package/dist/kits/data/app/api/users/[id]/route.ts +127 -0
  221. package/dist/kits/data/app/api/users/check-email/route.ts +18 -0
  222. package/dist/kits/data/app/api/users/check-unique/route.ts +27 -0
  223. package/dist/kits/data/app/api/users/route.ts +79 -0
  224. package/dist/kits/data/app/examples/demo/README.md +4 -0
  225. package/dist/kits/data/app/examples/demo/create-post-form.tsx +106 -0
  226. package/dist/kits/data/app/examples/demo/page.tsx +118 -0
  227. package/dist/kits/data/app/examples/demo/seed-demo-button.tsx +37 -0
  228. package/dist/kits/data/components/admin/posts-manager.tsx +719 -0
  229. package/dist/kits/data/components/admin/users-manager.tsx +432 -0
  230. package/dist/kits/data/lib/prisma.ts +15 -0
  231. package/dist/kits/data/lib/server/result.ts +90 -0
  232. package/dist/kits/data/package-deps.json +11 -0
  233. package/dist/kits/data/scripts/seed-demo.mjs +41 -0
  234. package/dist/kits/forms/.gitkeep +0 -0
  235. package/dist/kits/forms/README.md +49 -0
  236. package/dist/kits/forms/app/.gitkeep +0 -0
  237. package/dist/kits/forms/app/api/wizard/route.ts +71 -0
  238. package/dist/kits/forms/app/examples/forms/basic/page.tsx +124 -0
  239. package/dist/kits/forms/app/examples/forms/server-action/form-client.tsx +28 -0
  240. package/dist/kits/forms/app/examples/forms/server-action/page.tsx +71 -0
  241. package/dist/kits/forms/app/examples/forms/wizard/page.tsx +15 -0
  242. package/dist/kits/forms/app/examples/forms/wizard/wizard-client.tsx +2 -0
  243. package/dist/kits/forms/components/.gitkeep +0 -0
  244. package/dist/kits/forms/components/examples/wizard-client.tsx +231 -0
  245. package/dist/kits/forms/components/hooks/useCheckUnique.ts +79 -0
  246. package/dist/kits/forms/components/ui/button.tsx +122 -0
  247. package/dist/kits/forms/components/ui/checkbox.tsx +30 -0
  248. package/dist/kits/forms/components/ui/form/context.ts +33 -0
  249. package/dist/kits/forms/components/ui/form/form-control.tsx +28 -0
  250. package/dist/kits/forms/components/ui/form/form-description.tsx +22 -0
  251. package/dist/kits/forms/components/ui/form/form-field.tsx +36 -0
  252. package/dist/kits/forms/components/ui/form/form-item.tsx +21 -0
  253. package/dist/kits/forms/components/ui/form/form-label.tsx +24 -0
  254. package/dist/kits/forms/components/ui/form/form-message.tsx +29 -0
  255. package/dist/kits/forms/components/ui/form/form.tsx +26 -0
  256. package/dist/kits/forms/components/ui/input.tsx +27 -0
  257. package/dist/kits/forms/components/ui/label.tsx +29 -0
  258. package/dist/kits/forms/components/ui/select.tsx +25 -0
  259. package/dist/kits/forms/components/ui/switch.tsx +78 -0
  260. package/dist/kits/forms/components/ui/textarea.tsx +26 -0
  261. package/dist/kits/forms/lib/.gitkeep +0 -0
  262. package/dist/kits/forms/lib/forms/map-errors.ts +29 -0
  263. package/dist/kits/forms/lib/prisma.ts +16 -0
  264. package/dist/kits/forms/lib/utils.ts +9 -0
  265. package/dist/kits/forms/lib/validation/forms.ts +88 -0
  266. package/dist/kits/forms/lib/validation/wizard.ts +32 -0
  267. package/dist/kits/forms/package-deps.json +17 -0
  268. package/dist/utils/file-operations.d.ts +18 -0
  269. package/dist/utils/file-operations.d.ts.map +1 -0
  270. package/dist/utils/file-operations.js +327 -0
  271. package/dist/utils/file-operations.js.map +1 -0
  272. package/dist/utils/installation-tracker.d.ts +26 -0
  273. package/dist/utils/installation-tracker.d.ts.map +1 -0
  274. package/dist/utils/installation-tracker.js +98 -0
  275. package/dist/utils/installation-tracker.js.map +1 -0
  276. package/package.json +51 -21
  277. package/index.js +0 -1
@@ -0,0 +1,210 @@
1
+ "use client";
2
+
3
+ import React from "react";
4
+ import { motion } from "motion/react";
5
+ import { cn } from "@/lib/utils";
6
+
7
+ /**
8
+ * Data structure representing a single service card.
9
+ */
10
+ export interface ServiceCardData {
11
+ icon: string;
12
+ title: string;
13
+ description: string;
14
+ }
15
+
16
+ /**
17
+ * Props to configure the ServicesGrid component (upgraded slots + cn).
18
+ */
19
+ export interface ServicesGridProps {
20
+ /** Optional id on root */
21
+ id?: string;
22
+ /** Root className merged into section slot */
23
+ className?: string;
24
+ sectionHeading?: string;
25
+ servicesData?: ServiceCardData[];
26
+ /** When false, disables entrance animations and hover transitions */
27
+ enableMotion?: boolean;
28
+ /** Styling configuration objects */
29
+ section?: {
30
+ className?: string;
31
+ };
32
+ container?: {
33
+ className?: string;
34
+ };
35
+ heading?: {
36
+ className?: string;
37
+ };
38
+ grid?: {
39
+ className?: string;
40
+ };
41
+ card?: {
42
+ className?: string;
43
+ };
44
+ cardContent?: {
45
+ className?: string;
46
+ };
47
+ icon?: {
48
+ className?: string;
49
+ };
50
+ title?: {
51
+ className?: string;
52
+ };
53
+ description?: {
54
+ className?: string;
55
+ };
56
+ /** ARIA label for the services section */
57
+ ariaLabel?: string;
58
+ }
59
+
60
+ /**
61
+ * Default services data for digital agency
62
+ */
63
+ const defaultServicesData: ServiceCardData[] = [
64
+ {
65
+ icon: "💻",
66
+ title: "Web Design & Development",
67
+ description:
68
+ "Custom websites that capture your brand and convert visitors into customers",
69
+ },
70
+ {
71
+ icon: "📈",
72
+ title: "SEO & Digital Marketing",
73
+ description:
74
+ "Get found on Google and drive qualified traffic to your website",
75
+ },
76
+ {
77
+ icon: "🛒",
78
+ title: "E-commerce Solutions",
79
+ description: "Online stores that maximize sales and customer experience",
80
+ },
81
+ {
82
+ icon: "🎨",
83
+ title: "Brand Identity & Design",
84
+ description: "Logo, branding, and visual identity that makes you stand out",
85
+ },
86
+ ];
87
+
88
+ /**
89
+ * Responsive services grid with subtle motion and slot-style overrides.
90
+ *
91
+ * @remarks
92
+ * - Motion can be disabled globally with enableMotion.
93
+ * - Each card uses simple emoji icons by default; replace with real icons if preferred.
94
+ *
95
+ * @example
96
+ * <ServicesGrid servicesData={[{ icon: '⚙️', title: 'Automation', description: '...' }]} />
97
+ */
98
+ export function ServicesGrid({
99
+ id,
100
+ className,
101
+ sectionHeading = "Our Services",
102
+ servicesData = defaultServicesData,
103
+ enableMotion = true,
104
+ section = {
105
+ className: "py-16 md:py-20 lg:py-24 bg-muted",
106
+ },
107
+ container = {
108
+ className: "max-w-6xl mx-auto px-4 md:px-6 lg:px-8",
109
+ },
110
+ heading = {
111
+ className:
112
+ "text-3xl md:text-4xl lg:text-5xl font-bold font-poppins text-foreground text-center mb-8 md:mb-12",
113
+ },
114
+ grid = {
115
+ className: "grid grid-cols-1 md:grid-cols-2 gap-6 md:gap-8 items-stretch",
116
+ },
117
+ card = {
118
+ className:
119
+ "bg-card/90 backdrop-blur p-6 md:p-8 rounded-lg border border-border shadow-sm hover:shadow-md transition-all duration-300 bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] shadow-[var(--card-shadow)]",
120
+ },
121
+ cardContent = {
122
+ className: "flex flex-col h-full space-y-4",
123
+ },
124
+ icon = {
125
+ className: "text-4xl",
126
+ },
127
+ title = {
128
+ className:
129
+ "text-lg md:text-xl font-semibold font-poppins text-card-foreground leading-tight text-[var(--card-title-fg)]",
130
+ },
131
+ description = {
132
+ className:
133
+ "text-sm md:text-base font-inter leading-relaxed flex-1 text-[var(--card-muted-fg)]",
134
+ },
135
+ ariaLabel = "Services section",
136
+ }: ServicesGridProps) {
137
+ return (
138
+ <section
139
+ id={id}
140
+ className={cn(section.className, className)}
141
+ aria-label={ariaLabel}
142
+ >
143
+ <div className={container.className}>
144
+ {/* Section Heading */}
145
+ <h2 className={heading.className}>{sectionHeading}</h2>
146
+
147
+ {/* Services Grid */}
148
+ <div className={grid.className}>
149
+ {servicesData.map((service, index) => (
150
+ <motion.div
151
+ key={index}
152
+ initial={
153
+ enableMotion ? { opacity: 0, y: 12 } : { opacity: 1, y: 0 }
154
+ }
155
+ whileInView={
156
+ enableMotion ? { opacity: 1, y: 0 } : { opacity: 1, y: 0 }
157
+ }
158
+ viewport={
159
+ enableMotion
160
+ ? { once: true, amount: 0.2 }
161
+ : { once: true, amount: 0 }
162
+ }
163
+ transition={
164
+ enableMotion
165
+ ? {
166
+ type: "spring",
167
+ stiffness: 125,
168
+ damping: 50,
169
+ mass: 1,
170
+ delay: 0.12 + index * 0.05,
171
+ }
172
+ : { type: "tween", duration: 0 }
173
+ }
174
+ className={cn(
175
+ "h-full motion-reduce:transform-none motion-reduce:transition-none",
176
+ )}
177
+ >
178
+ <div
179
+ className={cn(
180
+ card.className,
181
+ "flex h-full flex-col",
182
+ enableMotion
183
+ ? "transition-transform duration-200 hover:-translate-y-1"
184
+ : "transition-none hover:!translate-y-0 hover:shadow-none",
185
+ )}
186
+ >
187
+ <div className={cardContent.className}>
188
+ {/* Service Icon */}
189
+ <div
190
+ className={icon.className}
191
+ role="img"
192
+ aria-label={service.title}
193
+ >
194
+ {service.icon}
195
+ </div>
196
+
197
+ {/* Service Title */}
198
+ <h3 className={title.className}>{service.title}</h3>
199
+
200
+ {/* Service Description */}
201
+ <p className={description.className}>{service.description}</p>
202
+ </div>
203
+ </div>
204
+ </motion.div>
205
+ ))}
206
+ </div>
207
+ </div>
208
+ </section>
209
+ );
210
+ }
@@ -0,0 +1,309 @@
1
+ "use client";
2
+
3
+ import React from "react";
4
+ import Link from "next/link";
5
+ import { cn } from "@/lib/utils";
6
+
7
+ /**
8
+ * A social link shown on a team member card.
9
+ * @public
10
+ */
11
+ export interface SocialLink {
12
+ /** Platform name (e.g., "LinkedIn") */
13
+ platform: string;
14
+ /** Destination URL */
15
+ url: string;
16
+ /** Icon identifier or emoji; replace with SVGs in real usage */
17
+ icon: string;
18
+ }
19
+
20
+ /**
21
+ * Team member data rendered by Team.
22
+ * @public
23
+ */
24
+ export interface TeamMemberData {
25
+ /** Member name */
26
+ name?: string;
27
+ /** Job role or title */
28
+ role?: string;
29
+ /** Short bio or description */
30
+ bio?: string;
31
+ /** Avatar content (emoji or image URL if swapped out) */
32
+ avatar?: string;
33
+ /** Optional social links */
34
+ socialLinks?: SocialLink[];
35
+ }
36
+
37
+ /**
38
+ * Props for the Team section component.
39
+ *
40
+ * @remarks
41
+ * - Styling: slot-style className overrides are merged after defaults via cn().
42
+ * - Motion: enableMotion controls hover lift on cards.
43
+ * - Accessibility: semantic <section> with aria-label.
44
+ */
45
+ export interface TeamProps {
46
+ /** Optional id on root. @defaultValue "team" */
47
+ id?: string;
48
+ /** Top-level className override */
49
+ className?: string;
50
+ /** Section heading text or object. @defaultValue "Meet Our Team" */
51
+ teamHeadingText?: string | { text?: string; className?: string };
52
+ /** Optional subheading text or object. @defaultValue "The talented people behind your success" */
53
+ teamSubheadingText?: string | { text?: string; className?: string };
54
+ /** Members to render. @defaultValue DefaultTeamData */
55
+ teamMembers?: TeamMemberData[];
56
+
57
+ /** Slot-style overrides */
58
+ section?: { className?: string };
59
+ container?: { className?: string };
60
+ header?: { className?: string };
61
+ heading?: { className?: string };
62
+ subheading?: { className?: string };
63
+ grid?: { className?: string };
64
+ card?: { className?: string };
65
+ cardContent?: { className?: string };
66
+ avatar?: { className?: string };
67
+ name?: { className?: string };
68
+ role?: { className?: string };
69
+ bio?: { className?: string };
70
+ socialLinks?: { className?: string };
71
+ socialLink?: { className?: string };
72
+
73
+ /** When false, removes hover lift on cards */
74
+ enableMotion?: boolean;
75
+
76
+ /** ARIA label for the section. @defaultValue "Team section" */
77
+ ariaLabel?: string;
78
+ }
79
+
80
+ const DefaultTeamData: TeamMemberData[] = [
81
+ {
82
+ name: "Alex Chen",
83
+ role: "CEO & Founder",
84
+ bio: "Full-stack developer with 8+ years.",
85
+ avatar: "👨‍💼",
86
+ socialLinks: [{ platform: "LinkedIn", url: "#", icon: "💼" }],
87
+ },
88
+ {
89
+ name: "Sarah Martinez",
90
+ role: "Lead Designer",
91
+ bio: "UI/UX expert.",
92
+ avatar: "👩‍🎨",
93
+ socialLinks: [{ platform: "Dribbble", url: "#", icon: "🎨" }],
94
+ },
95
+ {
96
+ name: "Jordan Patel",
97
+ role: "DevOps Engineer",
98
+ bio: "Automates cloud infra and CI/CD pipelines.",
99
+ avatar: "🛠️",
100
+ socialLinks: [{ platform: "GitHub", url: "#", icon: "🐙" }],
101
+ },
102
+ {
103
+ name: "Maya Thompson",
104
+ role: "Product Manager",
105
+ bio: "Drives roadmap and aligns cross‑functional teams.",
106
+ avatar: "🧭",
107
+ socialLinks: [{ platform: "Twitter", url: "#", icon: "🐦" }],
108
+ },
109
+ ];
110
+
111
+ /**
112
+ * Internal presentational card for a single team member.
113
+ * Receives already-merged className strings from the parent.
114
+ */
115
+ function TeamCard({
116
+ member,
117
+ card = { className: "" },
118
+ cardContent = { className: "" },
119
+ avatar = { className: "" },
120
+ name = { className: "" },
121
+ role = { className: "" },
122
+ bio = { className: "" },
123
+ socialLinks = { className: "" },
124
+ socialLink = { className: "" },
125
+ }: {
126
+ member: TeamMemberData;
127
+ card?: { className?: string };
128
+ cardContent?: { className?: string };
129
+ avatar?: { className?: string };
130
+ name?: { className?: string };
131
+ role?: { className?: string };
132
+ bio?: { className?: string };
133
+ socialLinks?: { className?: string };
134
+ socialLink?: { className?: string };
135
+ }) {
136
+ return (
137
+ <div className={card.className}>
138
+ <div className={cardContent.className}>
139
+ <div className={avatar.className}>{member.avatar}</div>
140
+ <h3 className={name.className}>{member.name}</h3>
141
+ <p className={role.className}>{member.role}</p>
142
+ <p className={bio.className}>{member.bio}</p>
143
+ {member.socialLinks && member.socialLinks.length > 0 && (
144
+ <div className={socialLinks.className}>
145
+ {member.socialLinks.map((social, index) => (
146
+ <Link
147
+ key={index}
148
+ href={social.url}
149
+ className={socialLink.className}
150
+ title={social.platform}
151
+ aria-label={`${member.name}'s ${social.platform} profile`}
152
+ >
153
+ {social.icon}
154
+ </Link>
155
+ ))}
156
+ </div>
157
+ )}
158
+ </div>
159
+ </div>
160
+ );
161
+ }
162
+
163
+ /**
164
+ * Team section with heading, subheading, and a responsive member grid.
165
+ *
166
+ * @remarks
167
+ * - Uses a slot-style API for className overrides merged via cn().
168
+ * - Motion: enableMotion toggles hover lift on cards.
169
+ * - Accessibility: semantic <section> with aria-label.
170
+ *
171
+ * @example
172
+ * <Team teamMembers={[{ name: 'Alex', role: 'Engineer' }]} />
173
+ */
174
+ export function Team({
175
+ id,
176
+ className,
177
+ teamMembers = DefaultTeamData,
178
+ teamHeadingText = "Meet Our Team",
179
+ teamSubheadingText = "The talented people behind your success",
180
+ section,
181
+ container,
182
+ header,
183
+ heading,
184
+ subheading,
185
+ grid,
186
+ card,
187
+ cardContent,
188
+ avatar,
189
+ name,
190
+ role,
191
+ bio,
192
+ socialLinks,
193
+ socialLink,
194
+ enableMotion = true,
195
+ ariaLabel = "Team section",
196
+ }: TeamProps) {
197
+ // Defaults for slots
198
+ const defaultSection = "py-16 px-6 bg-muted";
199
+ const defaultContainer = "max-w-7xl mx-auto";
200
+ const defaultHeader = "space-y-12 items-center";
201
+ const defaultHeadingClass =
202
+ "text-3xl font-bold font-poppins text-foreground text-center text-[var(--heading-fg)]";
203
+ const defaultSubheadingClass =
204
+ "text-lg font-inter text-muted-foreground opacity-80 leading-relaxed text-center max-w-2xl text-[var(--subheading-fg)]";
205
+ const defaultGrid =
206
+ "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 w-full";
207
+ const defaultCardBase =
208
+ "bg-card p-6 rounded-lg shadow-md text-center border border-border bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] shadow-[var(--card-shadow)]";
209
+ const defaultCardContent = "flex flex-col items-center space-y-4";
210
+ const defaultAvatar = "text-4xl mb-2";
211
+ const defaultName =
212
+ "text-xl font-bold font-poppins text-card-foreground text-[var(--card-fg)]";
213
+ const defaultRole = "text-md font-semibold font-poppins text-primary";
214
+ const defaultBio =
215
+ "text-sm font-inter text-muted-foreground opacity-80 leading-relaxed text-[var(--card-muted-fg)]";
216
+ const defaultSocialLinks = "flex gap-3 mt-2";
217
+ const defaultSocialLink =
218
+ "text-lg text-primary hover:text-accent-foreground transition-colors duration-200";
219
+
220
+ // Motion control for card
221
+ const motionCard = enableMotion
222
+ ? "transition-transform duration-200 hover:-translate-y-1"
223
+ : "transition-none hover:!translate-y-0";
224
+
225
+ // Merge slot classes using cn (defaults first, then overrides)
226
+ const finalSectionClass = cn(defaultSection, section?.className, className);
227
+ const finalContainerClass = cn(defaultContainer, container?.className);
228
+ const finalHeaderClass = cn(defaultHeader, header?.className);
229
+ const finalGridClass = cn(defaultGrid, grid?.className);
230
+
231
+ const finalCardClass = cn(defaultCardBase, motionCard, card?.className);
232
+ const finalCardContentClass = cn(defaultCardContent, cardContent?.className);
233
+ const finalAvatarClass = cn(defaultAvatar, avatar?.className);
234
+ const finalNameClass = cn(defaultName, name?.className);
235
+ const finalRoleClass = cn(defaultRole, role?.className);
236
+ const finalBioClass = cn(defaultBio, bio?.className);
237
+ const finalSocialLinksClass = cn(defaultSocialLinks, socialLinks?.className);
238
+ const finalSocialLinkClass = cn(defaultSocialLink, socialLink?.className);
239
+
240
+ // Normalize heading/subheading allowing string or object, plus slot class merges
241
+ const normalizedHeading =
242
+ typeof teamHeadingText === "string"
243
+ ? {
244
+ text: teamHeadingText,
245
+ className: cn(defaultHeadingClass, heading?.className),
246
+ }
247
+ : {
248
+ text: teamHeadingText?.text ?? "Meet Our Team",
249
+ className: cn(
250
+ defaultHeadingClass,
251
+ teamHeadingText?.className,
252
+ heading?.className,
253
+ ),
254
+ };
255
+
256
+ const normalizedSubheading =
257
+ typeof teamSubheadingText === "string"
258
+ ? {
259
+ text: teamSubheadingText,
260
+ className: cn(defaultSubheadingClass, subheading?.className),
261
+ }
262
+ : {
263
+ text:
264
+ teamSubheadingText?.text ??
265
+ "The talented people behind your success",
266
+ className: cn(
267
+ defaultSubheadingClass,
268
+ teamSubheadingText?.className,
269
+ subheading?.className,
270
+ ),
271
+ };
272
+
273
+ return (
274
+ <section
275
+ id={id || "team"}
276
+ className={finalSectionClass}
277
+ aria-label={ariaLabel}
278
+ >
279
+ <div className={finalContainerClass}>
280
+ <div className={finalHeaderClass}>
281
+ <div className="mx-auto flex max-w-2xl flex-col items-center space-y-4 text-center">
282
+ <h2 className={normalizedHeading.className}>
283
+ {normalizedHeading.text}
284
+ </h2>
285
+ <p className={normalizedSubheading.className}>
286
+ {normalizedSubheading.text}
287
+ </p>
288
+ </div>
289
+ <div className={finalGridClass}>
290
+ {teamMembers.map((member, index) => (
291
+ <TeamCard
292
+ key={index}
293
+ member={member}
294
+ card={{ className: finalCardClass }}
295
+ cardContent={{ className: finalCardContentClass }}
296
+ avatar={{ className: finalAvatarClass }}
297
+ name={{ className: finalNameClass }}
298
+ role={{ className: finalRoleClass }}
299
+ bio={{ className: finalBioClass }}
300
+ socialLinks={{ className: finalSocialLinksClass }}
301
+ socialLink={{ className: finalSocialLinkClass }}
302
+ />
303
+ ))}
304
+ </div>
305
+ </div>
306
+ </div>
307
+ </section>
308
+ );
309
+ }
@@ -0,0 +1,158 @@
1
+ "use client";
2
+
3
+ import React from "react";
4
+ import { cn } from "@/lib/utils";
5
+ import { TestimonialCard } from "@/components/ui/testimonial-card";
6
+
7
+ /**
8
+ * Data used to render a TestimonialCard.
9
+ * @public
10
+ */
11
+ export interface TestimonialCardData {
12
+ /** The testimonial quote text */
13
+ testimonialText: string;
14
+ /** The author's display name (prefixed with hyphen in defaults) */
15
+ testimonialAuthor: string;
16
+ /** Author initials displayed in the avatar */
17
+ testimonialAuthorInitials: string;
18
+ }
19
+
20
+ /**
21
+ * Props for the Testimonials section component.
22
+ *
23
+ * @remarks
24
+ * - Styling: slot-style className overrides are merged after defaults via cn().
25
+ * - Motion: enableMotion toggles card hover transitions.
26
+ * - Accessibility: semantic <section> with aria-label.
27
+ */
28
+ export interface TestimonialsProps {
29
+ /** Optional id */
30
+ id?: string;
31
+ /** Root className merged into slots */
32
+ className?: string;
33
+
34
+ /** Testimonial items to render. @defaultValue defaultTestimonialData */
35
+ testimonials?: TestimonialCardData[];
36
+ /** Heading displayed above the grid. @defaultValue "What Our Customers Say" */
37
+ testimonialSectionHeader?: string;
38
+
39
+ /** When false, disables hover transitions on cards */
40
+ enableMotion?: boolean;
41
+
42
+ /** Slot-style overrides */
43
+ section?: { className?: string };
44
+ container?: { className?: string };
45
+ header?: { className?: string };
46
+ heading?: { className?: string };
47
+ grid?: { className?: string };
48
+ card?: { className?: string };
49
+ content?: { className?: string };
50
+ text?: { className?: string };
51
+ author?: { className?: string };
52
+ avatar?: { className?: string };
53
+ avatarText?: { className?: string };
54
+
55
+ /** ARIA label for the section. @defaultValue "Testimonials section" */
56
+ ariaLabel?: string;
57
+ }
58
+
59
+ const defaultTestimonialData: TestimonialCardData[] = [
60
+ {
61
+ testimonialText: "Lorem ipsum dolor sit amet! Consectetur adipiscing elit.",
62
+ testimonialAuthor: " - Cillum Dolore",
63
+ testimonialAuthorInitials: "CD",
64
+ },
65
+ {
66
+ testimonialText:
67
+ "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi!",
68
+ testimonialAuthor: " - Voluptate Velit",
69
+ testimonialAuthorInitials: "VV",
70
+ },
71
+ {
72
+ testimonialText: "Cillum dolore eu fugiat nulla pariatur!",
73
+ testimonialAuthor: " - Laboris Nisi",
74
+ testimonialAuthorInitials: "LN",
75
+ },
76
+ ];
77
+
78
+ /**
79
+ * Testimonials section that renders a grid of TestimonialCard items.
80
+ *
81
+ * @remarks
82
+ * - Slot-style overrides match TestimonialCard sub-slots (card, content, text, etc.).
83
+ * - Motion can be disabled via enableMotion.
84
+ *
85
+ * @example
86
+ * <Testimonials testimonials={[{ testimonialText: 'Great!', testimonialAuthor: ' - Jane', testimonialAuthorInitials: 'J' }]} />
87
+ */
88
+ export function Testimonials({
89
+ id,
90
+ className,
91
+ testimonials = defaultTestimonialData,
92
+ testimonialSectionHeader = "What Our Customers Say",
93
+ enableMotion = true,
94
+ section = { className: "py-16 px-6 bg-muted" },
95
+ container = { className: "max-w-7xl mx-auto" },
96
+ header = { className: "text-center mb-12" },
97
+ heading = {
98
+ className: "text-3xl md:text-4xl font-bold font-poppins text-foreground",
99
+ },
100
+ grid = { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8" },
101
+ card = {
102
+ className:
103
+ "bg-card/90 backdrop-blur p-6 rounded-lg shadow-md transition-transform duration-200 hover:-translate-y-1 border border-border bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] shadow-[var(--card-shadow)]",
104
+ },
105
+ content = { className: "flex flex-col space-y-4" },
106
+ text = {
107
+ className:
108
+ "text-card-foreground text-base leading-relaxed italic font-inter text-[var(--card-fg)]",
109
+ },
110
+ author = {
111
+ className:
112
+ "text-muted-foreground text-sm font-medium font-poppins text-[var(--card-muted-fg)]",
113
+ },
114
+ avatar = {
115
+ className:
116
+ "w-12 h-12 bg-primary text-primary-foreground rounded-full flex items-center justify-center text-lg font-bold bg-[var(--badge-bg)] text-[var(--badge-fg)] border-[var(--badge-border)]",
117
+ },
118
+ avatarText = { className: "text-primary-foreground font-bold" },
119
+ ariaLabel = "Testimonials section",
120
+ }: TestimonialsProps) {
121
+ return (
122
+ <section
123
+ id={id || "testimonials"}
124
+ className={cn(section.className, className)}
125
+ aria-label={ariaLabel}
126
+ >
127
+ <div className={container.className}>
128
+ {/* Section Header */}
129
+ <div className={header.className}>
130
+ <h2 className={heading.className}>{testimonialSectionHeader}</h2>
131
+ </div>
132
+
133
+ {/* Testimonials Grid */}
134
+ <div className={grid.className}>
135
+ {testimonials.map((testimonial, index) => (
136
+ <TestimonialCard
137
+ key={index}
138
+ testimonialText={testimonial.testimonialText}
139
+ testimonialAuthor={testimonial.testimonialAuthor}
140
+ testimonialAuthorInitials={testimonial.testimonialAuthorInitials}
141
+ card={{
142
+ className: cn(
143
+ card.className,
144
+ !enableMotion && "transition-none hover:!translate-y-0",
145
+ ),
146
+ }}
147
+ content={content}
148
+ text={text}
149
+ author={author}
150
+ avatar={avatar}
151
+ avatarText={avatarText}
152
+ />
153
+ ))}
154
+ </div>
155
+ </div>
156
+ </section>
157
+ );
158
+ }