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,550 @@
1
+ "use client";
2
+
3
+ import React, { useState } from "react";
4
+ import { motion } from "motion/react";
5
+ import { cn } from "@/lib/utils";
6
+ import { CTAButton } from "@/components/ui/cta-button";
7
+ import { ExternalLink, TrendingUp } from "lucide-react";
8
+ import Image from "next/image";
9
+
10
+ // TypeScript Interfaces
11
+ export interface PortfolioProject {
12
+ id: number;
13
+ title: string;
14
+ category: string;
15
+ industry: string;
16
+ result: string;
17
+ description: string;
18
+ image?: string;
19
+ tags: string[];
20
+ color: string;
21
+ url?: string;
22
+ }
23
+
24
+ /**
25
+ * Props for the PortfolioSimple section component.
26
+ *
27
+ * @remarks
28
+ * - Styling: slot-style className overrides are merged after defaults via cn().
29
+ * - Motion: entrance animations respect enableMotion; prefers-reduced-motion is supported.
30
+ *
31
+ * @public
32
+ */
33
+ interface PortfolioSimpleProps {
34
+ /** Optional id on root section */
35
+ id?: string;
36
+ /** Root className merged into section slot */
37
+ className?: string;
38
+
39
+ // Content
40
+ projects?: PortfolioProject[];
41
+ /**
42
+ * List of filter labels. Filtering matches project.category exactly.
43
+ * The first item is selected by default; a value of "All Projects" disables filtering.
44
+ */
45
+ filters?: string[];
46
+ /** When false, disables entrance animations and hover transitions. */
47
+ enableMotion?: boolean;
48
+
49
+ // Section Content
50
+ sectionTitle?: string;
51
+ sectionSubtitle?: string;
52
+ ctaTitle?: string;
53
+ ctaDescription?: string;
54
+
55
+ /** Label for the first call-to-action button */
56
+ cta1Label?: string;
57
+ /** URL or anchor target for the first CTA button */
58
+ cta1Href?: string;
59
+ /** Label for the second call-to-action button */
60
+ cta2Label?: string;
61
+ /** URL or anchor target for the second CTA button */
62
+ cta2Href?: string;
63
+
64
+ /** Styling configuration objects */
65
+ section?: {
66
+ className?: string;
67
+ };
68
+ container?: {
69
+ className?: string;
70
+ };
71
+ header?: {
72
+ className?: string;
73
+ };
74
+ title?: {
75
+ className?: string;
76
+ };
77
+ subtitle?: {
78
+ className?: string;
79
+ };
80
+ filterContainer?: {
81
+ className?: string;
82
+ };
83
+ filterButton?: {
84
+ className?: string;
85
+ };
86
+ activeFilterButton?: {
87
+ className?: string;
88
+ };
89
+ grid?: {
90
+ className?: string;
91
+ };
92
+ projectCard?: {
93
+ className?: string;
94
+ };
95
+ imageContainer?: {
96
+ className?: string;
97
+ };
98
+ projectInfo?: {
99
+ className?: string;
100
+ };
101
+ projectTitle?: {
102
+ className?: string;
103
+ };
104
+ projectDescription?: {
105
+ className?: string;
106
+ };
107
+ tagsContainer?: {
108
+ className?: string;
109
+ };
110
+ tagStyle?: {
111
+ className?: string;
112
+ };
113
+ result?: {
114
+ className?: string;
115
+ };
116
+ ctaSection?: {
117
+ className?: string;
118
+ };
119
+ ctaTitleStyle?: {
120
+ className?: string;
121
+ };
122
+ ctaDescriptionStyle?: {
123
+ className?: string;
124
+ };
125
+ ctaButtons?: {
126
+ className?: string;
127
+ };
128
+ cta1Button?: {
129
+ className?: string;
130
+ };
131
+ cta2Button?: {
132
+ className?: string;
133
+ };
134
+
135
+ // Callbacks
136
+ /** Called when a project image or card is clicked. */
137
+ onProjectClick?: (project: PortfolioProject) => void;
138
+ onPrimaryCtaClick?: () => void;
139
+ onSecondaryCtaClick?: () => void;
140
+
141
+ /** ARIA label for the portfolio section */
142
+ ariaLabel?: string;
143
+ }
144
+
145
+ // Simple project image component
146
+ interface ProjectImageProps {
147
+ project: PortfolioProject;
148
+ onClick?: () => void;
149
+ imageContainer?: {
150
+ className?: string;
151
+ };
152
+ }
153
+
154
+ const ProjectImage: React.FC<ProjectImageProps> = ({
155
+ project,
156
+ onClick,
157
+ imageContainer = {
158
+ className:
159
+ "relative rounded-lg overflow-hidden bg-muted shadow-lg transition-all duration-300 hover:-translate-y-2 hover:shadow-xl cursor-pointer aspect-[16/10]",
160
+ },
161
+ }) => {
162
+ const colorClasses = {
163
+ blue: "bg-blue-100 dark:bg-blue-900",
164
+ green: "bg-green-100 dark:bg-green-900",
165
+ purple: "bg-purple-100 dark:bg-purple-900",
166
+ red: "bg-red-100 dark:bg-red-900",
167
+ yellow: "bg-yellow-100 dark:bg-yellow-900",
168
+ indigo: "bg-indigo-100 dark:bg-indigo-900",
169
+ } as const;
170
+
171
+ const fallbackBg =
172
+ colorClasses[project.color as keyof typeof colorClasses] ||
173
+ colorClasses.blue;
174
+
175
+ return (
176
+ <div className={imageContainer.className} onClick={onClick}>
177
+ {project.image ? (
178
+ <Image
179
+ src={project.image}
180
+ alt={project.title}
181
+ fill
182
+ className="object-cover"
183
+ sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
184
+ />
185
+ ) : (
186
+ <div
187
+ className={`flex h-full w-full items-center justify-center ${fallbackBg}`}
188
+ >
189
+ <div className="p-8 text-center">
190
+ <div className="bg-background/20 dark:bg-foreground/20 mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full">
191
+ <ExternalLink className="h-8 w-8 text-[var(--card-muted-fg)]" />
192
+ </div>
193
+ <h3 className="mb-2 text-lg font-semibold text-[var(--card-title-fg)]">
194
+ {project.title}
195
+ </h3>
196
+ <p className="text-sm text-[var(--card-muted-fg)]">
197
+ {project.category}
198
+ </p>
199
+ </div>
200
+ </div>
201
+ )}
202
+ </div>
203
+ );
204
+ };
205
+
206
+ const defaultProjects = [
207
+ {
208
+ id: 1,
209
+ title: "TechStartup Growth Campaign",
210
+ category: "Digital Marketing",
211
+ industry: "Technology",
212
+ result: "+300% Leads",
213
+ description:
214
+ "Comprehensive digital marketing campaign that increased qualified leads by 300% through targeted SEO, social media marketing, and conversion optimization strategies.",
215
+ tags: ["SEO", "Social Media", "PPC", "Analytics"],
216
+ color: "blue",
217
+ url: "#",
218
+ },
219
+ {
220
+ id: 2,
221
+ title: "E-Commerce Brand Launch",
222
+ category: "Brand Marketing",
223
+ industry: "Retail",
224
+ result: "+250% Revenue",
225
+ description:
226
+ "Complete brand launch and digital marketing strategy for a new e-commerce platform, resulting in 250% revenue growth within the first 6 months.",
227
+ tags: ["Brand Strategy", "Content Marketing", "Influencer", "Email"],
228
+ color: "green",
229
+ url: "#",
230
+ },
231
+ {
232
+ id: 3,
233
+ title: "Healthcare Practice Expansion",
234
+ category: "Local Marketing",
235
+ industry: "Healthcare",
236
+ result: "+180% Patients",
237
+ description:
238
+ "Local SEO and digital marketing campaign that helped a healthcare practice expand to three new locations and increase patient acquisition by 180%.",
239
+ tags: ["Local SEO", "Google Ads", "Reputation", "Content"],
240
+ color: "purple",
241
+ url: "#",
242
+ },
243
+ {
244
+ id: 4,
245
+ title: "SaaS Product Launch",
246
+ category: "B2B Marketing",
247
+ industry: "Software",
248
+ result: "+400% Signups",
249
+ description:
250
+ "Strategic B2B marketing campaign for a SaaS product launch, achieving 400% increase in trial signups through targeted content marketing and account-based marketing.",
251
+ tags: ["B2B Strategy", "Content", "LinkedIn Ads", "Webinars"],
252
+ color: "indigo",
253
+ url: "#",
254
+ },
255
+ {
256
+ id: 5,
257
+ title: "Restaurant Chain Rebrand",
258
+ category: "Brand Marketing",
259
+ industry: "Food & Beverage",
260
+ result: "+220% Foot Traffic",
261
+ description:
262
+ "Complete rebrand and digital marketing transformation for a restaurant chain, resulting in 220% increase in foot traffic and 150% growth in online orders.",
263
+ tags: ["Rebranding", "Social Media", "Local SEO", "Delivery"],
264
+ color: "red",
265
+ url: "#",
266
+ },
267
+ {
268
+ id: 6,
269
+ title: "Fitness App User Acquisition",
270
+ category: "Mobile Marketing",
271
+ industry: "Health & Fitness",
272
+ result: "+500% Downloads",
273
+ description:
274
+ "Mobile-first marketing campaign that achieved 500% increase in app downloads through app store optimization, influencer partnerships, and targeted social media advertising.",
275
+ tags: ["ASO", "Influencer", "Social Ads", "Retention"],
276
+ color: "yellow",
277
+ url: "#",
278
+ },
279
+ ];
280
+
281
+ const defaultFilters = [
282
+ "All Projects",
283
+ "Digital Marketing",
284
+ "Brand Marketing",
285
+ "B2B Marketing",
286
+ "Local Marketing",
287
+ "Mobile Marketing",
288
+ ];
289
+
290
+ /**
291
+ * Responsive portfolio/gallery grid with simple category filtering and CTA block.
292
+ *
293
+ * @remarks
294
+ * - Filtering uses exact category match; include "All Projects" to disable filtering.
295
+ * - Accessibility: Renders a semantic <section> with aria-label; ensure images have informative titles or alt text.
296
+ *
297
+ * @example
298
+ * <PortfolioSimple sectionTitle="Our Work" />
299
+ */
300
+ export function PortfolioSimple({
301
+ id,
302
+ className,
303
+ projects = defaultProjects,
304
+ filters = defaultFilters,
305
+ enableMotion = true,
306
+ sectionTitle = "Our Recent Work",
307
+ sectionSubtitle = "Take a look at some of our successful projects that have helped businesses transform their digital presence and achieve remarkable growth.",
308
+ ctaTitle = "Ready to See Your Project Here?",
309
+ ctaDescription = "Let's discuss how we can help transform your business with a custom digital solution.",
310
+ cta1Label = "Get Free Quote",
311
+ cta1Href = "#contact",
312
+ cta2Label,
313
+ cta2Href,
314
+ section = {
315
+ className: "py-16 md:py-24 bg-background",
316
+ },
317
+ container = {
318
+ className: "max-w-7xl mx-auto px-6",
319
+ },
320
+ header = {
321
+ className: "space-y-6 text-center mb-12",
322
+ },
323
+ title = {
324
+ className:
325
+ "text-3xl md:text-4xl font-bold font-poppins text-foreground text-[var(--heading-fg)]",
326
+ },
327
+ subtitle = {
328
+ className:
329
+ "text-xl font-inter text-muted-foreground max-w-2xl mx-auto leading-relaxed text-[var(--subheading-fg)]",
330
+ },
331
+ filterContainer = {
332
+ className: "flex gap-4 flex-wrap justify-center mt-8",
333
+ },
334
+ filterButton = {
335
+ className:
336
+ "px-6 py-2 rounded-full transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md border-[var(--badge-border)] text-[var(--badge-fg)] bg-[var(--badge-bg)]",
337
+ },
338
+ activeFilterButton = {
339
+ className:
340
+ "px-6 py-2 rounded-full transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md bg-[var(--badge-active-bg)] text-[var(--badge-active-fg)] border-[var(--badge-active-border)]",
341
+ },
342
+ grid = {
343
+ className:
344
+ "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 md:gap-10 mt-12",
345
+ },
346
+ projectCard = {
347
+ className: "group cursor-pointer transition-all duration-300",
348
+ },
349
+ imageContainer = {
350
+ className:
351
+ "relative rounded-lg overflow-hidden bg-muted shadow-lg transition-all duration-300 hover:-translate-y-2 hover:shadow-xl cursor-pointer aspect-[16/10]",
352
+ },
353
+ projectInfo = {
354
+ className: "space-y-4 px-2 mt-4",
355
+ },
356
+ projectTitle = {
357
+ className:
358
+ "text-xl font-bold font-poppins transition-colors duration-200 text-[var(--card-title-fg)] group-hover:text-[var(--card-title-hover-fg)]",
359
+ },
360
+ projectDescription = {
361
+ className: "text-base font-inter text-[var(--card-muted-fg)]",
362
+ },
363
+ tagsContainer = {
364
+ className: "flex gap-2 flex-wrap",
365
+ },
366
+ tagStyle = {
367
+ className:
368
+ "px-2 py-1 text-xs border border-border rounded-full text-muted-foreground border-[var(--badge-border)] text-[var(--badge-fg)] bg-[var(--badge-bg)]",
369
+ },
370
+ result = {
371
+ className:
372
+ "font-bold text-[var(--metric-fg)] text-sm whitespace-nowrap ml-4",
373
+ },
374
+ ctaSection = {
375
+ className: "space-y-6 text-center mt-16 pt-12 border-t border-border",
376
+ },
377
+ ctaTitleStyle = {
378
+ className: "text-xl font-bold text-foreground text-[var(--heading-fg)]",
379
+ },
380
+ ctaDescriptionStyle = {
381
+ className:
382
+ "text-muted-foreground max-w-md mx-auto text-[var(--subheading-fg)]",
383
+ },
384
+ ctaButtons = {
385
+ className: "flex gap-4 justify-center",
386
+ },
387
+ cta1Button = {
388
+ className:
389
+ "bg-primary hover:bg-primary/90 dark:bg-primary dark:hover:bg-primary/90 text-primary-foreground font-medium shadow-md hover:shadow-lg transition-all duration-200 hover:-translate-y-0.5 border-[var(--btn-border)] focus-visible:ring-[var(--btn-ring)]",
390
+ },
391
+ cta2Button = {
392
+ className:
393
+ "border-primary text-primary hover:bg-primary/10 font-medium shadow-md hover:shadow-lg transition-all duration-200 hover:-translate-y-0.5 border-[var(--btn-border)] focus-visible:ring-[var(--btn-ring)]",
394
+ },
395
+ onProjectClick,
396
+ onPrimaryCtaClick,
397
+ onSecondaryCtaClick,
398
+ ariaLabel = "Portfolio showcase section",
399
+ }: PortfolioSimpleProps) {
400
+ const [activeFilter, setActiveFilter] = useState(
401
+ filters[0] || "All Projects",
402
+ );
403
+
404
+ const filteredProjects = projects.filter(
405
+ (project) =>
406
+ activeFilter === "All Projects" || project.category === activeFilter,
407
+ );
408
+
409
+ return (
410
+ <section
411
+ id={id}
412
+ className={cn(section.className, className)}
413
+ aria-label={ariaLabel}
414
+ >
415
+ <div className={container.className}>
416
+ {/* Section Header */}
417
+ <div className={header.className}>
418
+ <h2 className={title.className}>{sectionTitle}</h2>
419
+ <p className={subtitle.className}>{sectionSubtitle}</p>
420
+
421
+ {/* Filter Buttons */}
422
+ <div className={filterContainer.className}>
423
+ {filters.map((filter) => (
424
+ <button
425
+ key={filter}
426
+ className={
427
+ activeFilter === filter
428
+ ? activeFilterButton.className
429
+ : filterButton.className
430
+ }
431
+ onClick={() => setActiveFilter(filter)}
432
+ >
433
+ {filter}
434
+ </button>
435
+ ))}
436
+ </div>
437
+ </div>
438
+
439
+ {/* Portfolio Grid */}
440
+ <div className={grid.className}>
441
+ {filteredProjects.map((project, index) => (
442
+ <motion.div
443
+ key={project.id}
444
+ initial={
445
+ enableMotion ? { opacity: 0, y: 12 } : { opacity: 1, y: 0 }
446
+ }
447
+ whileInView={
448
+ enableMotion ? { opacity: 1, y: 0 } : { opacity: 1, y: 0 }
449
+ }
450
+ viewport={
451
+ enableMotion
452
+ ? { once: true, amount: 0.2 }
453
+ : { once: true, amount: 0 }
454
+ }
455
+ transition={
456
+ enableMotion
457
+ ? {
458
+ type: "spring",
459
+ stiffness: 125,
460
+ damping: 50,
461
+ mass: 1,
462
+ delay: 0.1 + index * 0.05,
463
+ }
464
+ : { type: "tween", duration: 0 }
465
+ }
466
+ className="motion-reduce:transform-none motion-reduce:transition-none"
467
+ >
468
+ <div
469
+ className={cn(
470
+ projectCard.className,
471
+ enableMotion
472
+ ? "transition-all duration-200 hover:-translate-y-1"
473
+ : "cursor-default transition-none hover:!translate-y-0 hover:shadow-none",
474
+ )}
475
+ >
476
+ <div className="space-y-4">
477
+ {/* Project Image */}
478
+ <ProjectImage
479
+ project={project}
480
+ onClick={() => onProjectClick?.(project)}
481
+ imageContainer={imageContainer}
482
+ />
483
+
484
+ {/* Project Info */}
485
+ <div className={projectInfo.className}>
486
+ <div className="flex w-full items-start justify-between">
487
+ <div className="flex-1 space-y-2">
488
+ <h3 className={projectTitle.className}>
489
+ {project.title}
490
+ </h3>
491
+ <p className={projectDescription.className}>
492
+ {project.description}
493
+ </p>
494
+ </div>
495
+ </div>
496
+
497
+ {/* Tags & Result */}
498
+ <div className="flex w-full items-center justify-between">
499
+ <div className={tagsContainer.className}>
500
+ {project.tags.map((tag, index) => (
501
+ <span key={index} className={tagStyle.className}>
502
+ {tag}
503
+ </span>
504
+ ))}
505
+ </div>
506
+ <div className="flex items-center gap-2">
507
+ <TrendingUp className="h-4 w-4 text-[var(--metric-fg)]" />
508
+ <span className={result.className}>
509
+ {project.result}
510
+ </span>
511
+ </div>
512
+ </div>
513
+ </div>
514
+ </div>
515
+ </div>
516
+ </motion.div>
517
+ ))}
518
+ </div>
519
+
520
+ {/* CTA Section */}
521
+ <div className={ctaSection.className}>
522
+ <h3 className={ctaTitleStyle.className}>{ctaTitle}</h3>
523
+ <p className={ctaDescriptionStyle.className}>{ctaDescription}</p>
524
+ <div className={ctaButtons.className}>
525
+ <CTAButton
526
+ ctaButtonLabel={cta1Label}
527
+ ctaButtonHref={cta1Href}
528
+ button={{
529
+ className: cta1Button.className,
530
+ }}
531
+ onClick={onPrimaryCtaClick}
532
+ />
533
+ {cta2Label && (
534
+ <CTAButton
535
+ ctaButtonLabel={cta2Label}
536
+ ctaButtonHref={cta2Href}
537
+ button={{
538
+ variant: "outline",
539
+ size: "lg",
540
+ className: cta2Button.className,
541
+ }}
542
+ onClick={onSecondaryCtaClick}
543
+ />
544
+ )}
545
+ </div>
546
+ </div>
547
+ </div>
548
+ </section>
549
+ );
550
+ }