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.
- package/README.md +209 -30
- package/dist/.gitkeep +0 -0
- package/dist/cli_manifests/auth_manifest.json +86 -0
- package/dist/cli_manifests/blocks_manifest.json +185 -0
- package/dist/cli_manifests/data_manifest.json +51 -0
- package/dist/cli_manifests/forms_manifest.json +61 -0
- package/dist/commands/admin-posts.d.ts +2 -0
- package/dist/commands/admin-posts.d.ts.map +1 -0
- package/dist/commands/admin-posts.js +15 -0
- package/dist/commands/admin-posts.js.map +1 -0
- package/dist/commands/admin-users.d.ts +2 -0
- package/dist/commands/admin-users.d.ts.map +1 -0
- package/dist/commands/admin-users.js +15 -0
- package/dist/commands/admin-users.js.map +1 -0
- package/dist/commands/auth-core.d.ts +2 -0
- package/dist/commands/auth-core.d.ts.map +1 -0
- package/dist/commands/auth-core.js +83 -0
- package/dist/commands/auth-core.js.map +1 -0
- package/dist/commands/auth-forms.d.ts +2 -0
- package/dist/commands/auth-forms.d.ts.map +1 -0
- package/dist/commands/auth-forms.js +15 -0
- package/dist/commands/auth-forms.js.map +1 -0
- package/dist/commands/blocks-options.d.ts +7 -0
- package/dist/commands/blocks-options.d.ts.map +1 -0
- package/dist/commands/blocks-options.js +19 -0
- package/dist/commands/blocks-options.js.map +1 -0
- package/dist/commands/blocks.d.ts +7 -0
- package/dist/commands/blocks.d.ts.map +1 -0
- package/dist/commands/blocks.js +140 -0
- package/dist/commands/blocks.js.map +1 -0
- package/dist/commands/data.d.ts +3 -0
- package/dist/commands/data.d.ts.map +1 -0
- package/dist/commands/data.js +88 -0
- package/dist/commands/data.js.map +1 -0
- package/dist/commands/forms.d.ts +6 -0
- package/dist/commands/forms.d.ts.map +1 -0
- package/dist/commands/forms.js +107 -0
- package/dist/commands/forms.js.map +1 -0
- package/dist/commands/remove-auth-core.d.ts +2 -0
- package/dist/commands/remove-auth-core.d.ts.map +1 -0
- package/dist/commands/remove-auth-core.js +69 -0
- package/dist/commands/remove-auth-core.js.map +1 -0
- package/dist/commands/remove-blocks.d.ts +2 -0
- package/dist/commands/remove-blocks.d.ts.map +1 -0
- package/dist/commands/remove-blocks.js +36 -0
- package/dist/commands/remove-blocks.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +109 -0
- package/dist/index.js.map +1 -0
- package/dist/kits/auth-core/README.md +82 -0
- package/dist/kits/auth-core/app/(protected)/dashboard/page.tsx +8 -0
- package/dist/kits/auth-core/app/(protected)/layout.tsx +18 -0
- package/dist/kits/auth-core/app/(protected)/settings/profile/page.tsx +15 -0
- package/dist/kits/auth-core/app/(protected)/settings/profile/profile-form.tsx +114 -0
- package/dist/kits/auth-core/app/api/auth/[...nextauth]/route.ts +1 -0
- package/dist/kits/auth-core/app/api/auth/forgot-password/route.ts +114 -0
- package/dist/kits/auth-core/app/api/auth/providers/route.ts +6 -0
- package/dist/kits/auth-core/app/api/auth/reset-password/route.ts +63 -0
- package/dist/kits/auth-core/app/api/auth/send-verify-email/route.ts +6 -0
- package/dist/kits/auth-core/app/api/signup/route.ts +41 -0
- package/dist/kits/auth-core/app/auth/forgot-password/page.tsx +21 -0
- package/dist/kits/auth-core/app/auth/login/page.tsx +5 -0
- package/dist/kits/auth-core/app/auth/reset-password/page.tsx +187 -0
- package/dist/kits/auth-core/app/auth/signup/page.tsx +5 -0
- package/dist/kits/auth-core/app/auth/verify-email/page.tsx +11 -0
- package/dist/kits/auth-core/components/admin/admin-header.tsx +57 -0
- package/dist/kits/auth-core/components/auth/dashboard.tsx +237 -0
- package/dist/kits/auth-core/components/auth/forgot-password-form.tsx +90 -0
- package/dist/kits/auth-core/components/auth/login-form.tsx +467 -0
- package/dist/kits/auth-core/components/auth/logout-button.tsx +50 -0
- package/dist/kits/auth-core/components/auth/minimal-logout-button.tsx +40 -0
- package/dist/kits/auth-core/components/auth/signup-form.tsx +468 -0
- package/dist/kits/auth-core/components/require-auth.tsx +59 -0
- package/dist/kits/auth-core/components/session-provider.tsx +11 -0
- package/dist/kits/auth-core/components/ui/README.txt +1 -0
- package/dist/kits/auth-core/components/ui/button.tsx +55 -0
- package/dist/kits/auth-core/components/ui/input.tsx +25 -0
- package/dist/kits/auth-core/components/ui/label.tsx +23 -0
- package/dist/kits/auth-core/lib/api/errors.ts +14 -0
- package/dist/kits/auth-core/lib/auth-helpers.ts +29 -0
- package/dist/kits/auth-core/lib/auth.ts +142 -0
- package/dist/kits/auth-core/lib/email/dev-transport.ts +42 -0
- package/dist/kits/auth-core/lib/email/index.ts +28 -0
- package/dist/kits/auth-core/lib/email/provider-smtp.ts +36 -0
- package/dist/kits/auth-core/lib/forms/map-errors.ts +11 -0
- package/dist/kits/auth-core/lib/hash.ts +6 -0
- package/dist/kits/auth-core/lib/prisma.ts +15 -0
- package/dist/kits/auth-core/lib/server/result.ts +45 -0
- package/dist/kits/auth-core/lib/utils.ts +6 -0
- package/dist/kits/auth-core/lib/validation/forms.ts +88 -0
- package/dist/kits/auth-core/package-deps.json +19 -0
- package/dist/kits/auth-core/prisma/auth-models.prisma +81 -0
- package/dist/kits/auth-core/prisma/schema.prisma +81 -0
- package/dist/kits/auth-core/scripts/populate-tokenhash.mjs +26 -0
- package/dist/kits/auth-core/scripts/promote-admin.mjs +33 -0
- package/dist/kits/auth-core/scripts/seed-demo.mjs +40 -0
- package/dist/kits/auth-core/types/next-auth.d.ts +25 -0
- package/dist/kits/blocks/README.md +53 -0
- package/dist/kits/blocks/app/globals.css +175 -0
- package/dist/kits/blocks/app/templates/digitalagency/PresetThemeVars.tsx +80 -0
- package/dist/kits/blocks/app/templates/digitalagency/README.md +36 -0
- package/dist/kits/blocks/app/templates/digitalagency/components/About.tsx +99 -0
- package/dist/kits/blocks/app/templates/digitalagency/components/CTA.tsx +74 -0
- package/dist/kits/blocks/app/templates/digitalagency/components/Contact.tsx +227 -0
- package/dist/kits/blocks/app/templates/digitalagency/components/Footer.tsx +89 -0
- package/dist/kits/blocks/app/templates/digitalagency/components/Hero.tsx +90 -0
- package/dist/kits/blocks/app/templates/digitalagency/components/Navbar.tsx +168 -0
- package/dist/kits/blocks/app/templates/digitalagency/components/NetworkPattern.tsx +297 -0
- package/dist/kits/blocks/app/templates/digitalagency/components/Portfolio.tsx +157 -0
- package/dist/kits/blocks/app/templates/digitalagency/components/Pricing.tsx +114 -0
- package/dist/kits/blocks/app/templates/digitalagency/components/Process.tsx +59 -0
- package/dist/kits/blocks/app/templates/digitalagency/components/Services.tsx +55 -0
- package/dist/kits/blocks/app/templates/digitalagency/components/Team.tsx +28 -0
- package/dist/kits/blocks/app/templates/digitalagency/components/Testimonials.tsx +65 -0
- package/dist/kits/blocks/app/templates/digitalagency/page.tsx +38 -0
- package/dist/kits/blocks/app/templates/gallery/PresetThemeVars.tsx +85 -0
- package/dist/kits/blocks/app/templates/gallery/page.tsx +303 -0
- package/dist/kits/blocks/app/templates/productlaunch/PresetThemeVars.tsx +74 -0
- package/dist/kits/blocks/app/templates/productlaunch/README.md +55 -0
- package/dist/kits/blocks/app/templates/productlaunch/components/About.tsx +178 -0
- package/dist/kits/blocks/app/templates/productlaunch/components/CTA.tsx +93 -0
- package/dist/kits/blocks/app/templates/productlaunch/components/Contact.tsx +231 -0
- package/dist/kits/blocks/app/templates/productlaunch/components/FAQ.tsx +93 -0
- package/dist/kits/blocks/app/templates/productlaunch/components/Features.tsx +84 -0
- package/dist/kits/blocks/app/templates/productlaunch/components/Footer.tsx +132 -0
- package/dist/kits/blocks/app/templates/productlaunch/components/Hero.tsx +89 -0
- package/dist/kits/blocks/app/templates/productlaunch/components/Navbar.tsx +162 -0
- package/dist/kits/blocks/app/templates/productlaunch/components/Pricing.tsx +106 -0
- package/dist/kits/blocks/app/templates/productlaunch/components/ProcessTimeline.tsx +110 -0
- package/dist/kits/blocks/app/templates/productlaunch/components/ServicesGrid.tsx +68 -0
- package/dist/kits/blocks/app/templates/productlaunch/components/Team.tsx +104 -0
- package/dist/kits/blocks/app/templates/productlaunch/components/Testimonials.tsx +89 -0
- package/dist/kits/blocks/app/templates/productlaunch/components/TrustBadges.tsx +76 -0
- package/dist/kits/blocks/app/templates/productlaunch/page.tsx +45 -0
- package/dist/kits/blocks/app/templates/saasdashboard/PresetThemeVars.tsx +80 -0
- package/dist/kits/blocks/app/templates/saasdashboard/README.md +38 -0
- package/dist/kits/blocks/app/templates/saasdashboard/components/Contact.tsx +176 -0
- package/dist/kits/blocks/app/templates/saasdashboard/components/Dashboard.tsx +293 -0
- package/dist/kits/blocks/app/templates/saasdashboard/components/FAQ.tsx +55 -0
- package/dist/kits/blocks/app/templates/saasdashboard/components/Features.tsx +91 -0
- package/dist/kits/blocks/app/templates/saasdashboard/components/Footer.tsx +77 -0
- package/dist/kits/blocks/app/templates/saasdashboard/components/Hero.tsx +105 -0
- package/dist/kits/blocks/app/templates/saasdashboard/components/Hero_mask.tsx +127 -0
- package/dist/kits/blocks/app/templates/saasdashboard/components/Navbar.tsx +159 -0
- package/dist/kits/blocks/app/templates/saasdashboard/components/Pricing.tsx +90 -0
- package/dist/kits/blocks/app/templates/saasdashboard/components/SmoothScroll.tsx +97 -0
- package/dist/kits/blocks/app/templates/saasdashboard/components/Testimonials.tsx +72 -0
- package/dist/kits/blocks/app/templates/saasdashboard/components/TrustBadges.tsx +53 -0
- package/dist/kits/blocks/app/templates/saasdashboard/page.tsx +39 -0
- package/dist/kits/blocks/components/app-providers.tsx +1 -0
- package/dist/kits/blocks/components/enhanced-theme-provider.tsx +195 -0
- package/dist/kits/blocks/components/sections/About.tsx +291 -0
- package/dist/kits/blocks/components/sections/CTA.tsx +258 -0
- package/dist/kits/blocks/components/sections/Contact.tsx +267 -0
- package/dist/kits/blocks/components/sections/FAQ.tsx +226 -0
- package/dist/kits/blocks/components/sections/Features.tsx +269 -0
- package/dist/kits/blocks/components/sections/Footer.tsx +302 -0
- package/dist/kits/blocks/components/sections/HeroMotion.tsx +307 -0
- package/dist/kits/blocks/components/sections/HeroOverlay.tsx +358 -0
- package/dist/kits/blocks/components/sections/HeroSplit.tsx +352 -0
- package/dist/kits/blocks/components/sections/Navbar.tsx +353 -0
- package/dist/kits/blocks/components/sections/Newsletter.tsx +156 -0
- package/dist/kits/blocks/components/sections/PortfolioSimple.tsx +550 -0
- package/dist/kits/blocks/components/sections/Pricing.tsx +264 -0
- package/dist/kits/blocks/components/sections/ProcessTimeline.tsx +325 -0
- package/dist/kits/blocks/components/sections/ServicesGrid.tsx +210 -0
- package/dist/kits/blocks/components/sections/Team.tsx +309 -0
- package/dist/kits/blocks/components/sections/Testimonials.tsx +158 -0
- package/dist/kits/blocks/components/sections/TrustBadges.tsx +162 -0
- package/dist/kits/blocks/components/theme-provider.tsx +34 -0
- package/dist/kits/blocks/components/ui/alert-dialog.tsx +134 -0
- package/dist/kits/blocks/components/ui/brand-node.tsx +121 -0
- package/dist/kits/blocks/components/ui/button.tsx +122 -0
- package/dist/kits/blocks/components/ui/button_bck.tsx +93 -0
- package/dist/kits/blocks/components/ui/card.tsx +95 -0
- package/dist/kits/blocks/components/ui/checkbox.tsx +30 -0
- package/dist/kits/blocks/components/ui/cta-button.tsx +125 -0
- package/dist/kits/blocks/components/ui/dropdown-menu.tsx +201 -0
- package/dist/kits/blocks/components/ui/feature-card.tsx +91 -0
- package/dist/kits/blocks/components/ui/input.tsx +27 -0
- package/dist/kits/blocks/components/ui/label.tsx +29 -0
- package/dist/kits/blocks/components/ui/pricing-card.tsx +120 -0
- package/dist/kits/blocks/components/ui/select.tsx +25 -0
- package/dist/kits/blocks/components/ui/skeleton.tsx +13 -0
- package/dist/kits/blocks/components/ui/switch.tsx +78 -0
- package/dist/kits/blocks/components/ui/table.tsx +98 -0
- package/dist/kits/blocks/components/ui/testimonial-card.tsx +108 -0
- package/dist/kits/blocks/components/ui/textarea.tsx +26 -0
- package/dist/kits/blocks/components/ui/theme-selector.tsx +247 -0
- package/dist/kits/blocks/components/ui/theme-toggle.tsx +74 -0
- package/dist/kits/blocks/components/ui/toaster.tsx +7 -0
- package/dist/kits/blocks/lib/themes.ts +399 -0
- package/dist/kits/blocks/lib/themes_old.ts +37 -0
- package/dist/kits/blocks/lib/utils.ts +9 -0
- package/dist/kits/blocks/next.config.ts +11 -0
- package/dist/kits/blocks/notes/THEME_GUIDE.md +29 -0
- package/dist/kits/blocks/notes/THEMING_CONVERSION_SUMMARY.md +14 -0
- package/dist/kits/blocks/package-deps.json +22 -0
- package/dist/kits/blocks/public/placeholders/gallery/hero-pexels-broken-9945014.avif +0 -0
- package/dist/kits/blocks/public/placeholders/gallery/pexels-googledeepmind-25626431.jpg +0 -0
- package/dist/kits/blocks/public/placeholders/gallery/pexels-googledeepmind-25626432.jpg +0 -0
- package/dist/kits/blocks/public/placeholders/gallery/pexels-googledeepmind-25626434.jpg +0 -0
- package/dist/kits/blocks/public/placeholders/gallery/pexels-googledeepmind-25626436.jpg +0 -0
- package/dist/kits/blocks/public/placeholders/product_launch/feature_1.png +0 -0
- package/dist/kits/blocks/public/placeholders/product_launch/feature_2.png +0 -0
- package/dist/kits/blocks/public/placeholders/product_launch/feature_3.png +0 -0
- package/dist/kits/blocks/public/placeholders/product_launch/feature_4.png +0 -0
- package/dist/kits/blocks/public/placeholders/product_launch/hero.png +0 -0
- package/dist/kits/blocks/public/placeholders/saas_dashboard/analytics.png +0 -0
- package/dist/kits/blocks/public/placeholders/saas_dashboard/chat.png +0 -0
- package/dist/kits/blocks/public/placeholders/saas_dashboard/projectBoard.png +0 -0
- package/dist/kits/data/.gitkeep +0 -0
- package/dist/kits/data/README.md +80 -0
- package/dist/kits/data/app/(protected)/admin/posts/page.tsx +5 -0
- package/dist/kits/data/app/(protected)/admin/users/page.tsx +5 -0
- package/dist/kits/data/app/api/posts/[id]/route.ts +83 -0
- package/dist/kits/data/app/api/posts/route.ts +138 -0
- package/dist/kits/data/app/api/seed-demo/route.ts +45 -0
- package/dist/kits/data/app/api/users/[id]/route.ts +127 -0
- package/dist/kits/data/app/api/users/check-email/route.ts +18 -0
- package/dist/kits/data/app/api/users/check-unique/route.ts +27 -0
- package/dist/kits/data/app/api/users/route.ts +79 -0
- package/dist/kits/data/app/examples/demo/README.md +4 -0
- package/dist/kits/data/app/examples/demo/create-post-form.tsx +106 -0
- package/dist/kits/data/app/examples/demo/page.tsx +118 -0
- package/dist/kits/data/app/examples/demo/seed-demo-button.tsx +37 -0
- package/dist/kits/data/components/admin/posts-manager.tsx +719 -0
- package/dist/kits/data/components/admin/users-manager.tsx +432 -0
- package/dist/kits/data/lib/prisma.ts +15 -0
- package/dist/kits/data/lib/server/result.ts +90 -0
- package/dist/kits/data/package-deps.json +11 -0
- package/dist/kits/data/scripts/seed-demo.mjs +41 -0
- package/dist/kits/forms/.gitkeep +0 -0
- package/dist/kits/forms/README.md +49 -0
- package/dist/kits/forms/app/.gitkeep +0 -0
- package/dist/kits/forms/app/api/wizard/route.ts +71 -0
- package/dist/kits/forms/app/examples/forms/basic/page.tsx +124 -0
- package/dist/kits/forms/app/examples/forms/server-action/form-client.tsx +28 -0
- package/dist/kits/forms/app/examples/forms/server-action/page.tsx +71 -0
- package/dist/kits/forms/app/examples/forms/wizard/page.tsx +15 -0
- package/dist/kits/forms/app/examples/forms/wizard/wizard-client.tsx +2 -0
- package/dist/kits/forms/components/.gitkeep +0 -0
- package/dist/kits/forms/components/examples/wizard-client.tsx +231 -0
- package/dist/kits/forms/components/hooks/useCheckUnique.ts +79 -0
- package/dist/kits/forms/components/ui/button.tsx +122 -0
- package/dist/kits/forms/components/ui/checkbox.tsx +30 -0
- package/dist/kits/forms/components/ui/form/context.ts +33 -0
- package/dist/kits/forms/components/ui/form/form-control.tsx +28 -0
- package/dist/kits/forms/components/ui/form/form-description.tsx +22 -0
- package/dist/kits/forms/components/ui/form/form-field.tsx +36 -0
- package/dist/kits/forms/components/ui/form/form-item.tsx +21 -0
- package/dist/kits/forms/components/ui/form/form-label.tsx +24 -0
- package/dist/kits/forms/components/ui/form/form-message.tsx +29 -0
- package/dist/kits/forms/components/ui/form/form.tsx +26 -0
- package/dist/kits/forms/components/ui/input.tsx +27 -0
- package/dist/kits/forms/components/ui/label.tsx +29 -0
- package/dist/kits/forms/components/ui/select.tsx +25 -0
- package/dist/kits/forms/components/ui/switch.tsx +78 -0
- package/dist/kits/forms/components/ui/textarea.tsx +26 -0
- package/dist/kits/forms/lib/.gitkeep +0 -0
- package/dist/kits/forms/lib/forms/map-errors.ts +29 -0
- package/dist/kits/forms/lib/prisma.ts +16 -0
- package/dist/kits/forms/lib/utils.ts +9 -0
- package/dist/kits/forms/lib/validation/forms.ts +88 -0
- package/dist/kits/forms/lib/validation/wizard.ts +32 -0
- package/dist/kits/forms/package-deps.json +17 -0
- package/dist/utils/file-operations.d.ts +18 -0
- package/dist/utils/file-operations.d.ts.map +1 -0
- package/dist/utils/file-operations.js +327 -0
- package/dist/utils/file-operations.js.map +1 -0
- package/dist/utils/installation-tracker.d.ts +26 -0
- package/dist/utils/installation-tracker.d.ts.map +1 -0
- package/dist/utils/installation-tracker.js +98 -0
- package/dist/utils/installation-tracker.js.map +1 -0
- package/package.json +51 -21
- package/index.js +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Team as SharedTeam } from "@/components/sections/Team";
|
|
5
|
+
|
|
6
|
+
export function Team() {
|
|
7
|
+
return (
|
|
8
|
+
<SharedTeam
|
|
9
|
+
section={{
|
|
10
|
+
className: "py-16 md:py-20 lg:py-24 bg-fuchsia-50 dark:bg-gray-900",
|
|
11
|
+
}}
|
|
12
|
+
card={{ className: "dark:bg-gray-800" }}
|
|
13
|
+
heading={{
|
|
14
|
+
className:
|
|
15
|
+
"text-4xl md:text-5xl lg:text-6xl font-bold text-[var(--heading-fg)]",
|
|
16
|
+
}}
|
|
17
|
+
subheading={{
|
|
18
|
+
className:
|
|
19
|
+
"text-xl md:text-2xl text-[var(--subheading-fg)] max-w-2xl mx-auto leading-relaxed",
|
|
20
|
+
}}
|
|
21
|
+
role={{
|
|
22
|
+
className:
|
|
23
|
+
"text-md font-semibold font-poppins text-fuchsia-600 dark:text-fuchsia-400",
|
|
24
|
+
}}
|
|
25
|
+
ariaLabel="Team section"
|
|
26
|
+
/>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Testimonials as SharedTestimonials } from "@/components/sections/Testimonials";
|
|
5
|
+
|
|
6
|
+
export function Testimonials() {
|
|
7
|
+
return (
|
|
8
|
+
<section id="testimonials">
|
|
9
|
+
<SharedTestimonials
|
|
10
|
+
testimonialSectionHeader="What Our Customers Say"
|
|
11
|
+
section={{
|
|
12
|
+
className: "py-16 md:py-20 lg:py-24 bg-fuchsia-50 dark:bg-gray-800",
|
|
13
|
+
}}
|
|
14
|
+
container={{ className: "max-w-7xl mx-auto px-6" }}
|
|
15
|
+
header={{ className: "text-center mb-12 md:mb-16" }}
|
|
16
|
+
heading={{
|
|
17
|
+
className:
|
|
18
|
+
"text-4xl md:text-5xl lg:text-6xl font-bold font-poppins text-gray-800 dark:text-white",
|
|
19
|
+
}}
|
|
20
|
+
grid={{
|
|
21
|
+
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",
|
|
22
|
+
}}
|
|
23
|
+
card={{
|
|
24
|
+
className:
|
|
25
|
+
"bg-white dark:bg-gray-900 p-6 rounded-lg shadow-md transition-transform duration-200 hover:-translate-y-1 border border-fuchsia-200/60 dark:border-fuchsia-800/40",
|
|
26
|
+
}}
|
|
27
|
+
text={{
|
|
28
|
+
className:
|
|
29
|
+
"text-gray-700 dark:text-gray-300 text-base leading-relaxed italic font-inter",
|
|
30
|
+
}}
|
|
31
|
+
author={{
|
|
32
|
+
className:
|
|
33
|
+
"text-gray-600 dark:text-gray-400 text-sm font-medium font-poppins",
|
|
34
|
+
}}
|
|
35
|
+
avatar={{
|
|
36
|
+
className:
|
|
37
|
+
"w-12 h-12 bg-fuchsia-600 text-white rounded-full flex items-center justify-center text-lg font-bold",
|
|
38
|
+
}}
|
|
39
|
+
avatarText={{
|
|
40
|
+
className: "text-white font-bold",
|
|
41
|
+
}}
|
|
42
|
+
testimonials={[
|
|
43
|
+
{
|
|
44
|
+
testimonialText:
|
|
45
|
+
"Nexus Digital transformed our online presence completely.",
|
|
46
|
+
testimonialAuthor: "- Sarah Chen, CEO of TechFlow",
|
|
47
|
+
testimonialAuthorInitials: "SC",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
testimonialText: "The team delivered beyond expectations.",
|
|
51
|
+
testimonialAuthor: "- Marcus Rodriguez, GreenLeaf Wellness",
|
|
52
|
+
testimonialAuthorInitials: "MR",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
testimonialText:
|
|
56
|
+
"Professional, fast, and results-driven. They understood our vision and brought it to life perfectly.",
|
|
57
|
+
testimonialAuthor: "- Jennifer Walsh, UrbanFit",
|
|
58
|
+
testimonialAuthorInitials: "JW",
|
|
59
|
+
},
|
|
60
|
+
]}
|
|
61
|
+
ariaLabel="Testimonials section"
|
|
62
|
+
/>
|
|
63
|
+
</section>
|
|
64
|
+
);
|
|
65
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Navbar } from "./components/Navbar";
|
|
5
|
+
import { Hero } from "./components/Hero";
|
|
6
|
+
import { Services } from "./components/Services";
|
|
7
|
+
import { Testimonials } from "./components/Testimonials";
|
|
8
|
+
import { Process } from "./components/Process";
|
|
9
|
+
import { Portfolio } from "./components/Portfolio";
|
|
10
|
+
import { About } from "./components/About";
|
|
11
|
+
import { Team } from "./components/Team";
|
|
12
|
+
import { Pricing } from "./components/Pricing";
|
|
13
|
+
import { CTA } from "./components/CTA";
|
|
14
|
+
import { Contact } from "./components/Contact";
|
|
15
|
+
import { Footer } from "./components/Footer";
|
|
16
|
+
|
|
17
|
+
import { PresetThemeVars } from "./PresetThemeVars";
|
|
18
|
+
|
|
19
|
+
export default function Page() {
|
|
20
|
+
return (
|
|
21
|
+
<PresetThemeVars>
|
|
22
|
+
<main>
|
|
23
|
+
<Navbar />
|
|
24
|
+
<Hero />
|
|
25
|
+
<Services />
|
|
26
|
+
<Portfolio />
|
|
27
|
+
<Testimonials />
|
|
28
|
+
<Process />
|
|
29
|
+
<About />
|
|
30
|
+
<Team />
|
|
31
|
+
<Pricing />
|
|
32
|
+
<CTA />
|
|
33
|
+
<Contact />
|
|
34
|
+
<Footer />
|
|
35
|
+
</main>
|
|
36
|
+
</PresetThemeVars>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { cn } from "@/lib/utils";
|
|
3
|
+
|
|
4
|
+
type Props = React.PropsWithChildren<{ className?: string }>;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Gallery template token-bridge wrapper.
|
|
8
|
+
*
|
|
9
|
+
* Maps component-level CSS variables (btn, input, card, etc.) to the
|
|
10
|
+
* EnhancedThemeProvider token variables applied on :root (e.g., --primary,
|
|
11
|
+
* --foreground, --card, --ring). This preserves the original Gallery behavior:
|
|
12
|
+
* colors are driven by the selected Color Theme, not a fixed preset palette.
|
|
13
|
+
*/
|
|
14
|
+
export function PresetThemeVars({ className, children }: Props) {
|
|
15
|
+
return (
|
|
16
|
+
<div
|
|
17
|
+
className={cn(
|
|
18
|
+
// Buttons (leave bg/fg unset by default so tokenized variants can apply; set ring here)
|
|
19
|
+
"[--btn-ring:var(--ring)]",
|
|
20
|
+
|
|
21
|
+
// Inputs
|
|
22
|
+
"[--input-bg:var(--background)]",
|
|
23
|
+
"[--input-fg:var(--foreground)]",
|
|
24
|
+
"[--input-placeholder:var(--muted-foreground)]",
|
|
25
|
+
"[--input-border:var(--input)]",
|
|
26
|
+
"[--input-focus-ring:var(--ring)]",
|
|
27
|
+
"[--input-ring-offset:var(--background)]",
|
|
28
|
+
|
|
29
|
+
// Cards
|
|
30
|
+
"[--card-bg:var(--card)]",
|
|
31
|
+
"[--card-fg:var(--card-foreground)]",
|
|
32
|
+
"[--card-title-fg:var(--foreground)]",
|
|
33
|
+
"[--card-muted-fg:var(--muted-foreground)]",
|
|
34
|
+
"[--card-border:var(--border)]",
|
|
35
|
+
"[--card-shadow:0_6px_20px_rgba(0,0,0,0.06)]",
|
|
36
|
+
|
|
37
|
+
// Badges/Chips (align to accent; active uses primary)
|
|
38
|
+
"[--badge-bg:var(--accent)]",
|
|
39
|
+
"[--badge-fg:var(--accent-foreground)]",
|
|
40
|
+
"[--badge-border:var(--border)]",
|
|
41
|
+
"[--badge-active-bg:var(--primary)]",
|
|
42
|
+
"[--badge-active-fg:var(--primary-foreground)]",
|
|
43
|
+
"[--badge-active-border:var(--primary)]",
|
|
44
|
+
|
|
45
|
+
// Typography helpers
|
|
46
|
+
"[--heading-fg:var(--foreground)]",
|
|
47
|
+
"[--subheading-fg:var(--muted-foreground)]",
|
|
48
|
+
"[--description-fg:var(--foreground)]",
|
|
49
|
+
|
|
50
|
+
// Process timeline
|
|
51
|
+
"[--process-step-bg:var(--primary)]",
|
|
52
|
+
"[--process-step-fg:var(--primary-foreground)]",
|
|
53
|
+
"[--process-connector:var(--border)]",
|
|
54
|
+
|
|
55
|
+
// Footer
|
|
56
|
+
"[--footer-bg:transparent]",
|
|
57
|
+
"[--footer-fg:var(--foreground)]",
|
|
58
|
+
"[--footer-heading-fg:var(--foreground)]",
|
|
59
|
+
"[--footer-link-fg:var(--muted-foreground)]",
|
|
60
|
+
"[--footer-link-hover-fg:var(--primary)]",
|
|
61
|
+
"[--footer-link-hover-bg:color-mix(in oklab, var(--primary) 12%, transparent)]",
|
|
62
|
+
"[--footer-muted-fg:var(--muted-foreground)]",
|
|
63
|
+
"[--footer-border:var(--border)]",
|
|
64
|
+
|
|
65
|
+
// Table (optional)
|
|
66
|
+
"[--table-fg:inherit]",
|
|
67
|
+
"[--table-muted-fg:var(--muted-foreground)]",
|
|
68
|
+
"[--table-head-fg:var(--foreground)]",
|
|
69
|
+
"[--table-border:var(--border)]",
|
|
70
|
+
"[--table-row-hover-bg:var(--muted)]",
|
|
71
|
+
|
|
72
|
+
// Navbar
|
|
73
|
+
"[--navbar-toggle-bg:var(--background)]",
|
|
74
|
+
"[--navbar-hover-bg:color-mix(in oklab, var(--primary) 12%, transparent)]",
|
|
75
|
+
"[--navbar-ring:var(--ring)]",
|
|
76
|
+
"[--navbar-border:var(--border)]",
|
|
77
|
+
"[--navbar-accent:var(--foreground)]",
|
|
78
|
+
|
|
79
|
+
className,
|
|
80
|
+
)}
|
|
81
|
+
>
|
|
82
|
+
{children}
|
|
83
|
+
</div>
|
|
84
|
+
);
|
|
85
|
+
}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
// - /app/templates/gallery/page.tsx
|
|
2
|
+
|
|
3
|
+
"use client";
|
|
4
|
+
|
|
5
|
+
import { About } from "@/components/sections/About";
|
|
6
|
+
import { Contact } from "@/components/sections/Contact";
|
|
7
|
+
import { CTA } from "@/components/sections/CTA";
|
|
8
|
+
import { FAQ } from "@/components/sections/FAQ";
|
|
9
|
+
import { Features } from "@/components/sections/Features";
|
|
10
|
+
import { Footer } from "@/components/sections/Footer";
|
|
11
|
+
import { HeroMotion } from "@/components/sections/HeroMotion";
|
|
12
|
+
import { HeroOverlay } from "@/components/sections/HeroOverlay";
|
|
13
|
+
import { HeroSplit } from "@/components/sections/HeroSplit";
|
|
14
|
+
import { Navbar } from "@/components/sections/Navbar";
|
|
15
|
+
import { Newsletter } from "@/components/sections/Newsletter";
|
|
16
|
+
import { PortfolioSimple } from "@/components/sections/PortfolioSimple";
|
|
17
|
+
import { Pricing } from "@/components/sections/Pricing";
|
|
18
|
+
import { ProcessTimeline } from "@/components/sections/ProcessTimeline";
|
|
19
|
+
import { ServicesGrid } from "@/components/sections/ServicesGrid";
|
|
20
|
+
import { Team } from "@/components/sections/Team";
|
|
21
|
+
import { Testimonials } from "@/components/sections/Testimonials";
|
|
22
|
+
import { ThemeSelector } from "@/components/ui/theme-selector";
|
|
23
|
+
import { TrustBadges } from "@/components/sections/TrustBadges";
|
|
24
|
+
import { PresetThemeVars } from "./PresetThemeVars";
|
|
25
|
+
|
|
26
|
+
export default function Gallery() {
|
|
27
|
+
const defaultFeaturesData = [
|
|
28
|
+
{
|
|
29
|
+
imageSrc: "/placeholders/gallery/pexels-googledeepmind-25626431.jpg",
|
|
30
|
+
imageAlt: "Advanced Analytics Dashboard",
|
|
31
|
+
headingText: "Advanced Analytics",
|
|
32
|
+
subheadingText:
|
|
33
|
+
"Get deep insights into your business performance with our comprehensive analytics dashboard that tracks key metrics and provides actionable recommendations.",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
imageSrc: "/placeholders/gallery/pexels-googledeepmind-25626432.jpg",
|
|
37
|
+
imageAlt: "Real-time Collaboration Tools",
|
|
38
|
+
headingText: "Real-time Collaboration",
|
|
39
|
+
subheadingText:
|
|
40
|
+
"Work seamlessly with your team using our real-time collaboration tools that keep everyone in sync and boost productivity across all projects.",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
imageSrc: "/placeholders/gallery/pexels-googledeepmind-25626434.jpg",
|
|
44
|
+
imageAlt: "Secure Data Management",
|
|
45
|
+
headingText: "Secure Data Management",
|
|
46
|
+
subheadingText:
|
|
47
|
+
"Protect your sensitive information with enterprise-grade security features including encryption, access controls, and compliance monitoring.",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
imageSrc: "/placeholders/gallery/pexels-googledeepmind-25626436.jpg",
|
|
51
|
+
imageAlt: "Mobile-First Design",
|
|
52
|
+
headingText: "Mobile-First Design",
|
|
53
|
+
subheadingText:
|
|
54
|
+
"Access your data and manage your workflow from anywhere with our responsive, mobile-optimized interface that works perfectly on all devices.",
|
|
55
|
+
},
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
const BrandNode = (
|
|
59
|
+
<>
|
|
60
|
+
<ThemeSelector ariaLabel="Demo: Color theme" label="" className="mr-2" />
|
|
61
|
+
|
|
62
|
+
{/* <ThemeSelector /> */}
|
|
63
|
+
<div className="flex h-7 w-7 items-center justify-center rounded-md bg-gradient-to-br from-zinc-900 via-zinc-700 to-zinc-500 text-xs font-bold text-white shadow-sm dark:from-zinc-100 dark:via-zinc-300 dark:to-zinc-500 dark:text-zinc-900">
|
|
64
|
+
NW
|
|
65
|
+
</div>
|
|
66
|
+
</>
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
return (
|
|
70
|
+
<PresetThemeVars>
|
|
71
|
+
<div className="component-gallery">
|
|
72
|
+
{/* Navigation */}
|
|
73
|
+
<Navbar
|
|
74
|
+
container={{ className: "max-w-7xl mx-auto" }}
|
|
75
|
+
mobileMenu={{
|
|
76
|
+
className: "border-t border-border md:block lg:hidden",
|
|
77
|
+
}}
|
|
78
|
+
desktopMenu={{
|
|
79
|
+
className:
|
|
80
|
+
"hidden md:hidden lg:flex items-center space-x-1 lg:space-x-0",
|
|
81
|
+
}}
|
|
82
|
+
id="site-navigation"
|
|
83
|
+
brand="Nextworks"
|
|
84
|
+
brandNode={BrandNode}
|
|
85
|
+
menuItems={[
|
|
86
|
+
{ label: "Hero", href: "#hero-sections" },
|
|
87
|
+
{ label: "Trust", href: "#trust" },
|
|
88
|
+
{ label: "Features", href: "#features" },
|
|
89
|
+
{ label: "About", href: "#about-process" },
|
|
90
|
+
{ label: "Work", href: "#portfolio-team" },
|
|
91
|
+
{ label: "Testimonials", href: "#testimonials" },
|
|
92
|
+
{ label: "Pricing", href: "#pricing" },
|
|
93
|
+
{ label: "FAQ", href: "#faq" },
|
|
94
|
+
{ label: "CTA", href: "#cta" },
|
|
95
|
+
{ label: "Contact", href: "#contact" },
|
|
96
|
+
]}
|
|
97
|
+
links={{
|
|
98
|
+
className:
|
|
99
|
+
"text-base font-normal text-foreground hover:text-gray-500 dark:hover:text-gray-400 transition-colors",
|
|
100
|
+
}}
|
|
101
|
+
ctaButton={null}
|
|
102
|
+
/>
|
|
103
|
+
{/* Hero Sections */}
|
|
104
|
+
<div id="hero-sections">
|
|
105
|
+
<HeroMotion
|
|
106
|
+
actions={{
|
|
107
|
+
className:
|
|
108
|
+
"mt-8 flex items-center justify-center gap-3 [--btn-ring:var(--ring)]",
|
|
109
|
+
}}
|
|
110
|
+
primaryButtonStyle={{
|
|
111
|
+
size: "lg",
|
|
112
|
+
variant: "default",
|
|
113
|
+
className:
|
|
114
|
+
"[--btn-bg:var(--primary)] [--btn-fg:var(--primary-foreground)] " +
|
|
115
|
+
"hover:[--btn-hover-bg:color-mix(in_oklab,var(--primary)_88%,black)] " +
|
|
116
|
+
"hover:[--btn-hover-fg:var(--primary-foreground)]",
|
|
117
|
+
}}
|
|
118
|
+
secondaryButtonStyle={{
|
|
119
|
+
size: "lg",
|
|
120
|
+
variant: "outline",
|
|
121
|
+
className:
|
|
122
|
+
"border [&:where(button)]:border " +
|
|
123
|
+
"[--btn-bg:transparent] dark:[--btn-bg:transparent] " +
|
|
124
|
+
"[--btn-fg:var(--primary)] dark:[--btn-fg:var(--primary)] " +
|
|
125
|
+
"[--btn-border:var(--primary)] dark:[--btn-border:var(--primary)] " +
|
|
126
|
+
"hover:[--btn-hover-bg:color-mix(in_oklab,var(--primary)_15%,transparent)] " +
|
|
127
|
+
"dark:hover:[--btn-hover-bg:color-mix(in_oklab,var(--primary)_18%,transparent)] " +
|
|
128
|
+
"hover:[--btn-hover-fg:var(--primary)] dark:hover:[--btn-hover-fg:var(--primary)]",
|
|
129
|
+
}}
|
|
130
|
+
primaryCta={{ label: "Get Started", href: "#hero-sections" }}
|
|
131
|
+
secondaryCta={{ label: "See Demo", href: "#hero-sections" }}
|
|
132
|
+
/>
|
|
133
|
+
<HeroOverlay
|
|
134
|
+
heading="Forecast The Next Move"
|
|
135
|
+
subheading="Predict demand, personalize journeys, and scale impact with AI-guided insights your team can use today."
|
|
136
|
+
cta1={{
|
|
137
|
+
label: "Try It Free",
|
|
138
|
+
href: "#hero-sections",
|
|
139
|
+
className:
|
|
140
|
+
"[--btn-bg:var(--primary)] [--btn-fg:var(--primary-foreground)] " +
|
|
141
|
+
"hover:[--btn-hover-bg:color-mix(in_oklab,var(--primary)_88%,black)] " +
|
|
142
|
+
"hover:[--btn-hover-fg:var(--primary-foreground)]",
|
|
143
|
+
}}
|
|
144
|
+
cta2={{
|
|
145
|
+
label: "See Demo",
|
|
146
|
+
href: "#hero-sections",
|
|
147
|
+
// Outline CTA should be transparent bg, primary fg/border, with subtle hover bg
|
|
148
|
+
className:
|
|
149
|
+
"border [&:where(button)]:border " +
|
|
150
|
+
"[--btn-bg:transparent] dark:[--btn-bg:transparent] " +
|
|
151
|
+
"[--btn-fg:var(--primary)] dark:[--btn-fg:var(--primary)] " +
|
|
152
|
+
"[--btn-border:var(--primary)] dark:[--btn-border:var(--primary)] " +
|
|
153
|
+
"hover:[--btn-hover-bg:color-mix(in_oklab,var(--primary)_15%,transparent)] " +
|
|
154
|
+
"dark:hover:[--btn-hover-bg:color-mix(in_oklab,var(--primary)_18%,transparent)] " +
|
|
155
|
+
"hover:[--btn-hover-fg:var(--primary)] dark:hover:[--btn-hover-fg:var(--primary)]",
|
|
156
|
+
}}
|
|
157
|
+
// Set ring color on the CTA container so both buttons share it
|
|
158
|
+
ctaContainer={{
|
|
159
|
+
className:
|
|
160
|
+
"flex flex-col sm:flex-row gap-4 mt-6 justify-center items-center [--btn-ring:var(--ring)]",
|
|
161
|
+
}}
|
|
162
|
+
image={{
|
|
163
|
+
src: "/placeholders/gallery/hero-pexels-broken-9945014.avif",
|
|
164
|
+
}}
|
|
165
|
+
/>
|
|
166
|
+
<HeroSplit
|
|
167
|
+
heading="Confident Decisions, On Demand"
|
|
168
|
+
subheading="Reliable data when you need it."
|
|
169
|
+
cta1={{
|
|
170
|
+
label: "Start Free Trial",
|
|
171
|
+
href: "#hero-sections",
|
|
172
|
+
className:
|
|
173
|
+
"[--btn-bg:var(--primary)] [--btn-fg:var(--primary-foreground)] " +
|
|
174
|
+
"hover:[--btn-hover-bg:color-mix(in_oklab,var(--primary)_88%,black)] " +
|
|
175
|
+
"hover:[--btn-hover-fg:var(--primary-foreground)]",
|
|
176
|
+
}}
|
|
177
|
+
cta2={{
|
|
178
|
+
label: "View Sample Report",
|
|
179
|
+
href: "#hero-sections",
|
|
180
|
+
className:
|
|
181
|
+
"border [&:where(button)]:border " +
|
|
182
|
+
"[--btn-bg:transparent] dark:[--btn-bg:transparent] " +
|
|
183
|
+
"[--btn-fg:var(--primary)] dark:[--btn-fg:var(--primary)] " +
|
|
184
|
+
"[--btn-border:var(--primary)] dark:[--btn-border:var(--primary)] " +
|
|
185
|
+
"hover:[--btn-hover-bg:color-mix(in_oklab,var(--primary)_15%,transparent)] " +
|
|
186
|
+
"dark:hover:[--btn-hover-bg:color-mix(in_oklab,var(--primary)_18%,transparent)] " +
|
|
187
|
+
"hover:[--btn-hover-fg:var(--primary)] dark:hover:[--btn-hover-fg:var(--primary)]",
|
|
188
|
+
}}
|
|
189
|
+
buttonsContainer={{
|
|
190
|
+
className:
|
|
191
|
+
"flex flex-col md:flex-row gap-4 mt-6 [--btn-ring:var(--ring)]",
|
|
192
|
+
}}
|
|
193
|
+
image={{
|
|
194
|
+
src: "/placeholders/gallery/hero-pexels-broken-9945014.avif",
|
|
195
|
+
}}
|
|
196
|
+
imageLayout="full-bleed"
|
|
197
|
+
/>
|
|
198
|
+
{/* */}
|
|
199
|
+
</div>
|
|
200
|
+
{/* Trust & Social Proof */}
|
|
201
|
+
<div id="trust" className="scroll-mt-16">
|
|
202
|
+
<TrustBadges />
|
|
203
|
+
</div>
|
|
204
|
+
{/* Features & Services */}
|
|
205
|
+
<div id="features" className="scroll-mt-16">
|
|
206
|
+
<Features featuresData={defaultFeaturesData}></Features>
|
|
207
|
+
<ServicesGrid />
|
|
208
|
+
</div>
|
|
209
|
+
{/* About & Process */}
|
|
210
|
+
<div id="about-process" className="scroll-mt-16">
|
|
211
|
+
<About animateStats={false} />
|
|
212
|
+
<ProcessTimeline />
|
|
213
|
+
</div>
|
|
214
|
+
{/* Portfolio & Team */}
|
|
215
|
+
<div id="portfolio-team" className="scroll-mt-16">
|
|
216
|
+
<PortfolioSimple />
|
|
217
|
+
<Team />
|
|
218
|
+
</div>
|
|
219
|
+
{/* Testimonials */}
|
|
220
|
+
<div id="testimonials" className="scroll-mt-16">
|
|
221
|
+
<Testimonials />
|
|
222
|
+
</div>
|
|
223
|
+
{/* Pricing */}
|
|
224
|
+
<div id="pricing" className="scroll-mt-16">
|
|
225
|
+
<Pricing />
|
|
226
|
+
</div>
|
|
227
|
+
{/* FAQ */}
|
|
228
|
+
<div id="faq" className="scroll-mt-16">
|
|
229
|
+
<FAQ
|
|
230
|
+
questionButton={{
|
|
231
|
+
className:
|
|
232
|
+
// Distinct, theme-driven gradient tile + brand ring/border
|
|
233
|
+
"bg-gradient-to-r " +
|
|
234
|
+
"from-[var(--primary)] to-[color-mix(in_oklab,var(--primary)_88%,black)] " +
|
|
235
|
+
"hover:from-[color-mix(in_oklab,var(--primary)_92%,black)] " +
|
|
236
|
+
"hover:to-[color-mix(in_oklab,var(--primary)_95%,black)] " +
|
|
237
|
+
"text-[var(--primary-foreground)] p-5 cursor-pointer rounded-lg " +
|
|
238
|
+
"transition-all duration-200 flex items-center justify-between " +
|
|
239
|
+
"shadow-lg hover:shadow-xl hover:-translate-y-0.5 " +
|
|
240
|
+
// define ring/border vars and ensure a visible border if tokens apply
|
|
241
|
+
"[--btn-ring:var(--ring)] [--btn-border:var(--primary)] border [&:where(button)]:border",
|
|
242
|
+
}}
|
|
243
|
+
answer={{
|
|
244
|
+
className:
|
|
245
|
+
"bg-gradient-to-r " +
|
|
246
|
+
"from-[var(--secondary)] to-[color-mix(in_oklab,var(--secondary)_90%,white)] ",
|
|
247
|
+
}}
|
|
248
|
+
/>
|
|
249
|
+
</div>
|
|
250
|
+
{/* Call to Action */}
|
|
251
|
+
<div id="cta" className="scroll-mt-16">
|
|
252
|
+
<CTA
|
|
253
|
+
ctaButton={{ label: "Sign Up Now", href: "#contact" }}
|
|
254
|
+
actionsWrapper={{
|
|
255
|
+
className:
|
|
256
|
+
"mt-6 flex flex-col items-center gap-3 sm:flex-row [--btn-ring:var(--ring)]",
|
|
257
|
+
}}
|
|
258
|
+
ctaButtonStyle={{
|
|
259
|
+
variant: "default",
|
|
260
|
+
size: "default",
|
|
261
|
+
className:
|
|
262
|
+
"shadow-lg hover:shadow-xl transition-all duration-200 hover:-translate-y-0.5 " +
|
|
263
|
+
"[--btn-bg:var(--primary)] [--btn-fg:var(--primary-foreground)] " +
|
|
264
|
+
"hover:[--btn-hover-bg:color-mix(in_oklab,var(--primary)_88%,black)] " +
|
|
265
|
+
"hover:[--btn-hover-fg:var(--primary-foreground)]",
|
|
266
|
+
}}
|
|
267
|
+
/>
|
|
268
|
+
</div>
|
|
269
|
+
{/* Contact */}
|
|
270
|
+
<div id="contact" className="scroll-mt-16">
|
|
271
|
+
<Contact
|
|
272
|
+
submitButtonStyle={{
|
|
273
|
+
variant: "default",
|
|
274
|
+
size: "lg",
|
|
275
|
+
className:
|
|
276
|
+
"w-full shadow-lg hover:shadow-xl transition-all duration-200 hover:-translate-y-0.5 " +
|
|
277
|
+
// Match FAQ question button gradient + brand ring/border
|
|
278
|
+
"bg-gradient-to-r " +
|
|
279
|
+
"from-[var(--primary)] to-[color-mix(in_oklab,var(--primary)_88%,black)] " +
|
|
280
|
+
"hover:from-[color-mix(in_oklab,var(--primary)_92%,black)] " +
|
|
281
|
+
"hover:to-[color-mix(in_oklab,var(--primary)_95%,black)] " +
|
|
282
|
+
"text-[var(--primary-foreground)] " +
|
|
283
|
+
"[--btn-ring:var(--ring)] [--btn-border:var(--primary)] border [&:where(button)]:border",
|
|
284
|
+
}}
|
|
285
|
+
/>
|
|
286
|
+
</div>
|
|
287
|
+
{/* Newsletter */}
|
|
288
|
+
<div id="newsletter" className="scroll-mt-16">
|
|
289
|
+
<Newsletter
|
|
290
|
+
button={{
|
|
291
|
+
className:
|
|
292
|
+
"!bg-[var(--primary)] hover:!bg-[color-mix(in_oklab,var(--primary)_90%,transparent)] !text-[var(--primary-foreground)] hover:!text-[var(--primary-background)]",
|
|
293
|
+
}}
|
|
294
|
+
/>
|
|
295
|
+
</div>
|
|
296
|
+
{/* Footer */}
|
|
297
|
+
<div id="footer">
|
|
298
|
+
<Footer />
|
|
299
|
+
</div>
|
|
300
|
+
</div>
|
|
301
|
+
</PresetThemeVars>
|
|
302
|
+
);
|
|
303
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { cn } from "@/lib/utils";
|
|
3
|
+
|
|
4
|
+
type Props = React.PropsWithChildren<{ className?: string }>;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* ProductLaunch template theme variables wrapper.
|
|
8
|
+
*
|
|
9
|
+
* Sets a small CSS variable contract consumed by shared components
|
|
10
|
+
* (Buttons, Inputs, Cards, Badges, Footer, Table, etc.).
|
|
11
|
+
*
|
|
12
|
+
* You can override any variable per-section by re-declaring it on
|
|
13
|
+
* that section/container.
|
|
14
|
+
*/
|
|
15
|
+
export function PresetThemeVars({ className, children }: Props) {
|
|
16
|
+
return (
|
|
17
|
+
<div
|
|
18
|
+
className={cn(
|
|
19
|
+
// Button ring shared across template
|
|
20
|
+
"[--btn-ring:theme(colors.purple.500)] dark:[--btn-ring:theme(colors.purple.400)]",
|
|
21
|
+
|
|
22
|
+
// Inputs (Contact)
|
|
23
|
+
"[--input-bg:theme(colors.white)] dark:[--input-bg:theme(colors.gray.900)]",
|
|
24
|
+
"[--input-fg:theme(colors.gray.900)] dark:[--input-fg:theme(colors.gray.100)]",
|
|
25
|
+
"[--input-placeholder:theme(colors.gray.400)] dark:[--input-placeholder:theme(colors.gray.500)]",
|
|
26
|
+
"[--input-border:theme(colors.purple.200)] dark:[--input-border:theme(colors.purple.700)]",
|
|
27
|
+
"[--input-focus-ring:theme(colors.purple.500)] dark:[--input-focus-ring:theme(colors.purple.400)]",
|
|
28
|
+
"[--input-ring-offset:theme(colors.white)] dark:[--input-ring-offset:theme(colors.gray.900)]",
|
|
29
|
+
|
|
30
|
+
// Cards (Features, ServicesGrid, Pricing, Testimonials, etc.)
|
|
31
|
+
"[--card-bg:theme(colors.white)] dark:[--card-bg:theme(colors.gray.900)]",
|
|
32
|
+
"[--card-fg:theme(colors.gray.900)] dark:[--card-fg:theme(colors.gray.100)]",
|
|
33
|
+
"[--card-title-fg:theme(colors.gray.900)] dark:[--card-title-fg:theme(colors.gray.100)]",
|
|
34
|
+
"[--card-muted-fg:theme(colors.gray.500)] dark:[--card-muted-fg:theme(colors.gray.400)]",
|
|
35
|
+
"[--card-border:theme(colors.gray.200)] dark:[--card-border:theme(colors.gray.800)]",
|
|
36
|
+
"[--card-shadow:0_6px_20px_rgba(0,0,0,0.06)]",
|
|
37
|
+
|
|
38
|
+
// Badges/Chips (Portfolio filters/tags, Pricing badge, Testimonials avatar)
|
|
39
|
+
"[--badge-bg:theme(colors.purple.50)] dark:[--badge-bg:theme(colors.purple.950)]",
|
|
40
|
+
"[--badge-fg:theme(colors.purple.700)] dark:[--badge-fg:theme(colors.purple.300)]",
|
|
41
|
+
"[--badge-border:theme(colors.purple.200)] dark:[--badge-border:theme(colors.purple.800)]",
|
|
42
|
+
"[--badge-active-bg:theme(colors.purple.600)] dark:[--badge-active-bg:theme(colors.purple.500)]",
|
|
43
|
+
"[--badge-active-fg:theme(colors.white)] dark:[--badge-active-fg:theme(colors.white)]",
|
|
44
|
+
"[--badge-active-border:theme(colors.purple.700)] dark:[--badge-active-border:theme(colors.purple.400)]",
|
|
45
|
+
|
|
46
|
+
// Headings/Subheadings
|
|
47
|
+
"[--heading-fg:theme(colors.gray.900)] dark:[--heading-fg:theme(colors.gray.100)]",
|
|
48
|
+
"[--subheading-fg:theme(colors.gray.600)] dark:[--subheading-fg:theme(colors.gray.300)]",
|
|
49
|
+
"[--description-fg:theme(colors.gray.700)] dark:[--description-fg:theme(colors.gray.200)]",
|
|
50
|
+
|
|
51
|
+
// Footer
|
|
52
|
+
"[--footer-bg:transparent] dark:[--footer-bg:transparent]",
|
|
53
|
+
"[--footer-fg:theme(colors.gray.800)] dark:[--footer-fg:theme(colors.gray.100)]",
|
|
54
|
+
"[--footer-heading-fg:theme(colors.gray.900)] dark:[--footer-heading-fg:theme(colors.gray.100)]",
|
|
55
|
+
"[--footer-link-fg:theme(colors.gray.700)] dark:[--footer-link-fg:theme(colors.gray.300)]",
|
|
56
|
+
"[--footer-link-hover-fg:theme(colors.purple.700)] dark:[--footer-link-hover-fg:theme(colors.purple.400)]",
|
|
57
|
+
"[--footer-link-hover-bg:theme(colors.purple.50)] dark:[--footer-link-hover-bg:color-mix(in_oklab,oklch(0.17_0.05_324)_20%,transparent)]",
|
|
58
|
+
"[--footer-muted-fg:theme(colors.gray.500)] dark:[--footer-muted-fg:theme(colors.gray.400)]",
|
|
59
|
+
"[--footer-border:theme(colors.gray.200)] dark:[--footer-border:theme(colors.gray.800)]",
|
|
60
|
+
|
|
61
|
+
// Table (optional)
|
|
62
|
+
"[--table-fg:inherit]",
|
|
63
|
+
"[--table-muted-fg:theme(colors.gray.500)] dark:[--table-muted-fg:theme(colors.gray.400)]",
|
|
64
|
+
"[--table-head-fg:theme(colors.gray.700)] dark:[--table-head-fg:theme(colors.gray.300)]",
|
|
65
|
+
"[--table-border:theme(colors.gray.200)] dark:[--table-border:theme(colors.gray.800)]",
|
|
66
|
+
"[--table-row-hover-bg:theme(colors.gray.50)] dark:[--table-row-hover-bg:theme(colors.gray.900)]",
|
|
67
|
+
|
|
68
|
+
className,
|
|
69
|
+
)}
|
|
70
|
+
>
|
|
71
|
+
{children}
|
|
72
|
+
</div>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# ProductLaunch Template Theming
|
|
2
|
+
|
|
3
|
+
This template intentionally does NOT wrap the page with PresetThemeVars. It serves as the component-level styling example where individual preset components set CSS variables locally on their slots (buttons, cards, inputs, etc.).
|
|
4
|
+
|
|
5
|
+
Shared components read these variables with token fallbacks, so if a var is not set, design tokens still apply safely.
|
|
6
|
+
|
|
7
|
+
## Where to look
|
|
8
|
+
|
|
9
|
+
- Page: `app/templates/productlaunch/page.tsx` (PresetThemeVars is commented out)
|
|
10
|
+
- Components: `app/templates/productlaunch/components/*` (slots use Tailwind arbitrary properties like `[--btn-bg:...]` to set vars locally)
|
|
11
|
+
|
|
12
|
+
## Core variables
|
|
13
|
+
|
|
14
|
+
- Buttons: `--btn-bg`, `--btn-fg`, `--btn-hover-bg`, `--btn-hover-fg`, `--btn-border`, `--btn-ring`
|
|
15
|
+
- Inputs/Textareas: `--input-bg`, `--input-fg`, `--input-placeholder`, `--input-border`, `--input-focus-ring`, `--input-ring-offset`
|
|
16
|
+
- Cards: `--card-bg`, `--card-fg`, `--card-title-fg`, `--card-muted-fg`, `--card-border`, `--card-shadow`
|
|
17
|
+
- Badges/Chips: `--badge-bg`, `--badge-fg`, `--badge-border`, plus active: `--badge-active-bg`, `--badge-active-fg`, `--badge-active-border`
|
|
18
|
+
- Headings: `--heading-fg`, `--subheading-fg`, `--description-fg`
|
|
19
|
+
- Footer: `--footer-bg`, `--footer-fg`, `--footer-heading-fg`, `--footer-link-fg`, `--footer-link-hover-fg`, `--footer-link-hover-bg`, `--footer-muted-fg`, `--footer-border`
|
|
20
|
+
- Table: `--table-fg`, `--table-muted-fg`, `--table-head-fg`, `--table-border`, `--table-row-hover-bg`
|
|
21
|
+
|
|
22
|
+
## Per-section overrides (examples)
|
|
23
|
+
|
|
24
|
+
Because this template is component-first, most styling is set directly in the component props. You can still scope vars on a section wrapper when it’s convenient:
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
<section className="[--btn-ring:theme(colors.purple.600)] dark:[--btn-ring:theme(colors.purple.500)]">
|
|
28
|
+
<CTA />
|
|
29
|
+
</section>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Contact input borders example:
|
|
33
|
+
|
|
34
|
+
```tsx
|
|
35
|
+
<section className="[--input-border:theme(colors.purple.200)] dark:[--input-border:theme(colors.purple.700)]">
|
|
36
|
+
<Contact />
|
|
37
|
+
</section>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Outline buttons
|
|
41
|
+
|
|
42
|
+
When styling outline buttons, set `--btn-bg:transparent` and keep a border width class (e.g., `border` or `border-2`).
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
<Button
|
|
46
|
+
variant="outline"
|
|
47
|
+
className="border [--btn-bg:transparent] [--btn-border:theme(colors.purple.600)] [--btn-fg:theme(colors.purple.600)] hover:[--btn-hover-bg:theme(colors.purple.50)] hover:[--btn-hover-fg:theme(colors.purple.600)]"
|
|
48
|
+
>
|
|
49
|
+
Outline
|
|
50
|
+
</Button>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Do I need to refactor preset components?
|
|
54
|
+
|
|
55
|
+
Not required. This template is intentionally left as an example of component-level styling. Over time, you can still deduplicate color classes by relying on the shared var contract while keeping structure/spacing classes.
|