@nextworks/blocks-templates 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 +42 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/templates/digitalagency/Page.d.ts +3 -0
- package/dist/templates/digitalagency/Page.d.ts.map +1 -0
- package/dist/templates/digitalagency/Page.js +18 -0
- package/dist/templates/digitalagency/Page.jsx +33 -0
- package/dist/templates/digitalagency/PresetThemeVars.d.ts +11 -0
- package/dist/templates/digitalagency/PresetThemeVars.d.ts.map +1 -0
- package/dist/templates/digitalagency/PresetThemeVars.js +29 -0
- package/dist/templates/digitalagency/PresetThemeVars.jsx +31 -0
- package/dist/templates/digitalagency/components/About.d.ts +3 -0
- package/dist/templates/digitalagency/components/About.d.ts.map +1 -0
- package/dist/templates/digitalagency/components/About.js +45 -0
- package/dist/templates/digitalagency/components/About.jsx +43 -0
- package/dist/templates/digitalagency/components/CTA.d.ts +3 -0
- package/dist/templates/digitalagency/components/CTA.d.ts.map +1 -0
- package/dist/templates/digitalagency/components/CTA.js +33 -0
- package/dist/templates/digitalagency/components/CTA.jsx +31 -0
- package/dist/templates/digitalagency/components/Contact.d.ts +3 -0
- package/dist/templates/digitalagency/components/Contact.d.ts.map +1 -0
- package/dist/templates/digitalagency/components/Contact.js +91 -0
- package/dist/templates/digitalagency/components/Contact.jsx +91 -0
- package/dist/templates/digitalagency/components/Footer.d.ts +8 -0
- package/dist/templates/digitalagency/components/Footer.d.ts.map +1 -0
- package/dist/templates/digitalagency/components/Footer.js +58 -0
- package/dist/templates/digitalagency/components/Footer.jsx +58 -0
- package/dist/templates/digitalagency/components/Hero.d.ts +7 -0
- package/dist/templates/digitalagency/components/Hero.d.ts.map +1 -0
- package/dist/templates/digitalagency/components/Hero.js +69 -0
- package/dist/templates/digitalagency/components/Hero.jsx +71 -0
- package/dist/templates/digitalagency/components/Navbar.d.ts +21 -0
- package/dist/templates/digitalagency/components/Navbar.d.ts.map +1 -0
- package/dist/templates/digitalagency/components/Navbar.js +86 -0
- package/dist/templates/digitalagency/components/Navbar.jsx +85 -0
- package/dist/templates/digitalagency/components/NetworkPattern.d.ts +8 -0
- package/dist/templates/digitalagency/components/NetworkPattern.d.ts.map +1 -0
- package/dist/templates/digitalagency/components/NetworkPattern.js +38 -0
- package/dist/templates/digitalagency/components/NetworkPattern.jsx +128 -0
- package/dist/templates/digitalagency/components/Portfolio.d.ts +3 -0
- package/dist/templates/digitalagency/components/Portfolio.d.ts.map +1 -0
- package/dist/templates/digitalagency/components/Portfolio.js +108 -0
- package/dist/templates/digitalagency/components/Portfolio.jsx +110 -0
- package/dist/templates/digitalagency/components/Pricing.d.ts +3 -0
- package/dist/templates/digitalagency/components/Pricing.d.ts.map +1 -0
- package/dist/templates/digitalagency/components/Pricing.js +82 -0
- package/dist/templates/digitalagency/components/Pricing.jsx +84 -0
- package/dist/templates/digitalagency/components/Process.d.ts +3 -0
- package/dist/templates/digitalagency/components/Process.d.ts.map +1 -0
- package/dist/templates/digitalagency/components/Process.js +38 -0
- package/dist/templates/digitalagency/components/Process.jsx +40 -0
- package/dist/templates/digitalagency/components/Services.d.ts +3 -0
- package/dist/templates/digitalagency/components/Services.d.ts.map +1 -0
- package/dist/templates/digitalagency/components/Services.js +34 -0
- package/dist/templates/digitalagency/components/Services.jsx +36 -0
- package/dist/templates/digitalagency/components/Team.d.ts +3 -0
- package/dist/templates/digitalagency/components/Team.d.ts.map +1 -0
- package/dist/templates/digitalagency/components/Team.js +14 -0
- package/dist/templates/digitalagency/components/Team.jsx +14 -0
- package/dist/templates/digitalagency/components/Testimonials.d.ts +3 -0
- package/dist/templates/digitalagency/components/Testimonials.d.ts.map +1 -0
- package/dist/templates/digitalagency/components/Testimonials.js +38 -0
- package/dist/templates/digitalagency/components/Testimonials.jsx +40 -0
- package/dist/templates/gallery/PresetThemeVars.d.ts +15 -0
- package/dist/templates/gallery/PresetThemeVars.d.ts.map +1 -0
- package/dist/templates/gallery/PresetThemeVars.js +31 -0
- package/dist/templates/gallery/PresetThemeVars.jsx +33 -0
- package/dist/templates/gallery/page.d.ts +2 -0
- package/dist/templates/gallery/page.d.ts.map +1 -0
- package/dist/templates/gallery/page.js +151 -0
- package/dist/templates/gallery/page.jsx +216 -0
- package/dist/templates/productlaunch/Page.d.ts +2 -0
- package/dist/templates/productlaunch/Page.d.ts.map +1 -0
- package/dist/templates/productlaunch/Page.js +20 -0
- package/dist/templates/productlaunch/Page.jsx +42 -0
- package/dist/templates/productlaunch/PresetThemeVars.d.ts +16 -0
- package/dist/templates/productlaunch/PresetThemeVars.d.ts.map +1 -0
- package/dist/templates/productlaunch/PresetThemeVars.js +28 -0
- package/dist/templates/productlaunch/PresetThemeVars.jsx +30 -0
- package/dist/templates/productlaunch/components/About.d.ts +15 -0
- package/dist/templates/productlaunch/components/About.d.ts.map +1 -0
- package/dist/templates/productlaunch/components/About.js +59 -0
- package/dist/templates/productlaunch/components/About.jsx +57 -0
- package/dist/templates/productlaunch/components/CTA.d.ts +3 -0
- package/dist/templates/productlaunch/components/CTA.d.ts.map +1 -0
- package/dist/templates/productlaunch/components/CTA.js +39 -0
- package/dist/templates/productlaunch/components/CTA.jsx +37 -0
- package/dist/templates/productlaunch/components/Contact.d.ts +3 -0
- package/dist/templates/productlaunch/components/Contact.d.ts.map +1 -0
- package/dist/templates/productlaunch/components/Contact.js +93 -0
- package/dist/templates/productlaunch/components/Contact.jsx +93 -0
- package/dist/templates/productlaunch/components/FAQ.d.ts +7 -0
- package/dist/templates/productlaunch/components/FAQ.d.ts.map +1 -0
- package/dist/templates/productlaunch/components/FAQ.js +64 -0
- package/dist/templates/productlaunch/components/FAQ.jsx +63 -0
- package/dist/templates/productlaunch/components/Features.d.ts +6 -0
- package/dist/templates/productlaunch/components/Features.d.ts.map +1 -0
- package/dist/templates/productlaunch/components/Features.js +52 -0
- package/dist/templates/productlaunch/components/Features.jsx +51 -0
- package/dist/templates/productlaunch/components/Footer.d.ts +5 -0
- package/dist/templates/productlaunch/components/Footer.d.ts.map +1 -0
- package/dist/templates/productlaunch/components/Footer.js +103 -0
- package/dist/templates/productlaunch/components/Footer.jsx +102 -0
- package/dist/templates/productlaunch/components/Hero.d.ts +6 -0
- package/dist/templates/productlaunch/components/Hero.d.ts.map +1 -0
- package/dist/templates/productlaunch/components/Hero.js +70 -0
- package/dist/templates/productlaunch/components/Hero.jsx +69 -0
- package/dist/templates/productlaunch/components/Navbar.d.ts +25 -0
- package/dist/templates/productlaunch/components/Navbar.d.ts.map +1 -0
- package/dist/templates/productlaunch/components/Navbar.js +82 -0
- package/dist/templates/productlaunch/components/Navbar.jsx +81 -0
- package/dist/templates/productlaunch/components/Pricing.d.ts +5 -0
- package/dist/templates/productlaunch/components/Pricing.d.ts.map +1 -0
- package/dist/templates/productlaunch/components/Pricing.js +77 -0
- package/dist/templates/productlaunch/components/Pricing.jsx +76 -0
- package/dist/templates/productlaunch/components/ProcessTimeline.d.ts +5 -0
- package/dist/templates/productlaunch/components/ProcessTimeline.d.ts.map +1 -0
- package/dist/templates/productlaunch/components/ProcessTimeline.js +63 -0
- package/dist/templates/productlaunch/components/ProcessTimeline.jsx +62 -0
- package/dist/templates/productlaunch/components/ServicesGrid.d.ts +5 -0
- package/dist/templates/productlaunch/components/ServicesGrid.d.ts.map +1 -0
- package/dist/templates/productlaunch/components/ServicesGrid.js +41 -0
- package/dist/templates/productlaunch/components/ServicesGrid.jsx +40 -0
- package/dist/templates/productlaunch/components/Team.d.ts +5 -0
- package/dist/templates/productlaunch/components/Team.d.ts.map +1 -0
- package/dist/templates/productlaunch/components/Team.js +72 -0
- package/dist/templates/productlaunch/components/Team.jsx +71 -0
- package/dist/templates/productlaunch/components/Testimonials.d.ts +5 -0
- package/dist/templates/productlaunch/components/Testimonials.d.ts.map +1 -0
- package/dist/templates/productlaunch/components/Testimonials.js +55 -0
- package/dist/templates/productlaunch/components/Testimonials.jsx +54 -0
- package/dist/templates/productlaunch/components/TrustBadges.d.ts +5 -0
- package/dist/templates/productlaunch/components/TrustBadges.d.ts.map +1 -0
- package/dist/templates/productlaunch/components/TrustBadges.js +50 -0
- package/dist/templates/productlaunch/components/TrustBadges.jsx +49 -0
- package/dist/templates/saasdashboard/Page.d.ts +2 -0
- package/dist/templates/saasdashboard/Page.d.ts.map +1 -0
- package/dist/templates/saasdashboard/Page.js +15 -0
- package/dist/templates/saasdashboard/Page.jsx +35 -0
- package/dist/templates/saasdashboard/PresetThemeVars.d.ts +11 -0
- package/dist/templates/saasdashboard/PresetThemeVars.d.ts.map +1 -0
- package/dist/templates/saasdashboard/PresetThemeVars.js +27 -0
- package/dist/templates/saasdashboard/PresetThemeVars.jsx +29 -0
- package/dist/templates/saasdashboard/components/Contact.d.ts +3 -0
- package/dist/templates/saasdashboard/components/Contact.d.ts.map +1 -0
- package/dist/templates/saasdashboard/components/Contact.js +83 -0
- package/dist/templates/saasdashboard/components/Contact.jsx +90 -0
- package/dist/templates/saasdashboard/components/Dashboard.d.ts +21 -0
- package/dist/templates/saasdashboard/components/Dashboard.d.ts.map +1 -0
- package/dist/templates/saasdashboard/components/Dashboard.js +120 -0
- package/dist/templates/saasdashboard/components/Dashboard.jsx +168 -0
- package/dist/templates/saasdashboard/components/FAQ.d.ts +2 -0
- package/dist/templates/saasdashboard/components/FAQ.d.ts.map +1 -0
- package/dist/templates/saasdashboard/components/FAQ.js +35 -0
- package/dist/templates/saasdashboard/components/FAQ.jsx +34 -0
- package/dist/templates/saasdashboard/components/Features.d.ts +2 -0
- package/dist/templates/saasdashboard/components/Features.d.ts.map +1 -0
- package/dist/templates/saasdashboard/components/Features.js +55 -0
- package/dist/templates/saasdashboard/components/Features.jsx +54 -0
- package/dist/templates/saasdashboard/components/Footer.d.ts +2 -0
- package/dist/templates/saasdashboard/components/Footer.d.ts.map +1 -0
- package/dist/templates/saasdashboard/components/Footer.js +52 -0
- package/dist/templates/saasdashboard/components/Footer.jsx +51 -0
- package/dist/templates/saasdashboard/components/Hero.d.ts +2 -0
- package/dist/templates/saasdashboard/components/Hero.d.ts.map +1 -0
- package/dist/templates/saasdashboard/components/Hero.js +65 -0
- package/dist/templates/saasdashboard/components/Hero.jsx +70 -0
- package/dist/templates/saasdashboard/components/Hero_mask.d.ts +3 -0
- package/dist/templates/saasdashboard/components/Hero_mask.d.ts.map +1 -0
- package/dist/templates/saasdashboard/components/Hero_mask.js +73 -0
- package/dist/templates/saasdashboard/components/Hero_mask.jsx +85 -0
- package/dist/templates/saasdashboard/components/Navbar.d.ts +25 -0
- package/dist/templates/saasdashboard/components/Navbar.d.ts.map +1 -0
- package/dist/templates/saasdashboard/components/Navbar.js +83 -0
- package/dist/templates/saasdashboard/components/Navbar.jsx +84 -0
- package/dist/templates/saasdashboard/components/Pricing.d.ts +2 -0
- package/dist/templates/saasdashboard/components/Pricing.d.ts.map +1 -0
- package/dist/templates/saasdashboard/components/Pricing.js +65 -0
- package/dist/templates/saasdashboard/components/Pricing.jsx +64 -0
- package/dist/templates/saasdashboard/components/SmoothScroll.d.ts +2 -0
- package/dist/templates/saasdashboard/components/SmoothScroll.d.ts.map +1 -0
- package/dist/templates/saasdashboard/components/SmoothScroll.js +87 -0
- package/dist/templates/saasdashboard/components/SmoothScroll.jsx +87 -0
- package/dist/templates/saasdashboard/components/Testimonials.d.ts +2 -0
- package/dist/templates/saasdashboard/components/Testimonials.d.ts.map +1 -0
- package/dist/templates/saasdashboard/components/Testimonials.js +35 -0
- package/dist/templates/saasdashboard/components/Testimonials.jsx +39 -0
- package/dist/templates/saasdashboard/components/TrustBadges.d.ts +2 -0
- package/dist/templates/saasdashboard/components/TrustBadges.d.ts.map +1 -0
- package/dist/templates/saasdashboard/components/TrustBadges.js +37 -0
- package/dist/templates/saasdashboard/components/TrustBadges.jsx +36 -0
- package/package.json +27 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { FAQ as SharedFAQ } from "@nextworks/blocks-sections";
|
|
4
|
+
const defaultFAQArray = [
|
|
5
|
+
{
|
|
6
|
+
question: "Can I migrate from other tools?",
|
|
7
|
+
answer: "Yes, we help with data import.",
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
question: "What integrations are available?",
|
|
11
|
+
answer: "50+ apps including Slack, Google, Zapier.",
|
|
12
|
+
},
|
|
13
|
+
{ question: "How long does setup take?", answer: "Less than 15 minutes." },
|
|
14
|
+
{
|
|
15
|
+
question: "Is there a free trial?",
|
|
16
|
+
answer: "Yes — start a 14-day free trial with no credit card required.",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
question: "What support do you offer?",
|
|
20
|
+
answer: "Email, chat, and dedicated onboarding for paid plans.",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
question: "Are there discounts for teams or annual billing?",
|
|
24
|
+
answer: "Yes — we offer team pricing and discounts for annual subscriptions.",
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
export function FAQ() {
|
|
28
|
+
return (_jsx(SharedFAQ, { faqData: defaultFAQArray, faqSectionHeaderText: "Frequently Asked Questions", section: { className: "py-10 px-5 bg-background text-[var(--card-fg)]" }, heading: {
|
|
29
|
+
className: "text-3xl font-bold font-inter text-center mb-6 text-[var(--heading-fg)]",
|
|
30
|
+
}, grid: { className: "grid grid-cols-2 gap-4" }, item: { className: "mb-0" }, questionButton: {
|
|
31
|
+
className: "p-5 rounded-lg transition-all duration-200 flex items-center justify-between cursor-pointer shadow-lg hover:shadow-xl hover:-translate-y-0.5 font-inter bg-gradient-to-r from-sky-600 to-sky-700 hover:from-sky-700 hover:to-sky-800 text-white [--btn-ring:theme(colors.sky.500)] dark:[--btn-ring:theme(colors.sky.400)] [--btn-border:theme(colors.sky.500)] dark:[--btn-border:theme(colors.sky.400)]",
|
|
32
|
+
}, questionText: { className: "font-inter font-semibold text-base" }, answer: {
|
|
33
|
+
className: "mt-1 rounded-lg bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)]",
|
|
34
|
+
}, answerText: { className: "font-inter text-base text-[var(--card-fg)]" }, allowMultipleOpen: true }));
|
|
35
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { FAQ as SharedFAQ } from "@nextworks/blocks-sections";
|
|
3
|
+
const defaultFAQArray = [
|
|
4
|
+
{
|
|
5
|
+
question: "Can I migrate from other tools?",
|
|
6
|
+
answer: "Yes, we help with data import.",
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
question: "What integrations are available?",
|
|
10
|
+
answer: "50+ apps including Slack, Google, Zapier.",
|
|
11
|
+
},
|
|
12
|
+
{ question: "How long does setup take?", answer: "Less than 15 minutes." },
|
|
13
|
+
{
|
|
14
|
+
question: "Is there a free trial?",
|
|
15
|
+
answer: "Yes — start a 14-day free trial with no credit card required.",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
question: "What support do you offer?",
|
|
19
|
+
answer: "Email, chat, and dedicated onboarding for paid plans.",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
question: "Are there discounts for teams or annual billing?",
|
|
23
|
+
answer: "Yes — we offer team pricing and discounts for annual subscriptions.",
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
export function FAQ() {
|
|
27
|
+
return (<SharedFAQ faqData={defaultFAQArray} faqSectionHeaderText="Frequently Asked Questions" section={{ className: "py-10 px-5 bg-background text-[var(--card-fg)]" }} heading={{
|
|
28
|
+
className: "text-3xl font-bold font-inter text-center mb-6 text-[var(--heading-fg)]",
|
|
29
|
+
}} grid={{ className: "grid grid-cols-2 gap-4" }} item={{ className: "mb-0" }} questionButton={{
|
|
30
|
+
className: "p-5 rounded-lg transition-all duration-200 flex items-center justify-between cursor-pointer shadow-lg hover:shadow-xl hover:-translate-y-0.5 font-inter bg-gradient-to-r from-sky-600 to-sky-700 hover:from-sky-700 hover:to-sky-800 text-white [--btn-ring:theme(colors.sky.500)] dark:[--btn-ring:theme(colors.sky.400)] [--btn-border:theme(colors.sky.500)] dark:[--btn-border:theme(colors.sky.400)]",
|
|
31
|
+
}} questionText={{ className: "font-inter font-semibold text-base" }} answer={{
|
|
32
|
+
className: "mt-1 rounded-lg bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)]",
|
|
33
|
+
}} answerText={{ className: "font-inter text-base text-[var(--card-fg)]" }} allowMultipleOpen={true}/>);
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Features.d.ts","sourceRoot":"","sources":["../../../../src/templates/saasdashboard/components/Features.tsx"],"names":[],"mappings":"AA6BA,wBAAgB,QAAQ,gCA6DvB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Features as SharedFeatures } from "@nextworks/blocks-sections";
|
|
4
|
+
import { cn } from "@nextworks/blocks-core";
|
|
5
|
+
const defaultFeaturesData = [
|
|
6
|
+
{
|
|
7
|
+
imageSrc: "/placeholders/saas_dashboard/projectBoard.png",
|
|
8
|
+
imageAlt: "Project Management Dashboard",
|
|
9
|
+
headingText: "Track Every Project",
|
|
10
|
+
subheadingText: "Kanban boards, Gantt charts, and timeline views keep your team aligned and deadlines met",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
imageSrc: "/placeholders/saas_dashboard/analytics.png",
|
|
14
|
+
imageAlt: "Analytics Dashboard",
|
|
15
|
+
headingText: "Data-Driven Insights",
|
|
16
|
+
subheadingText: "Real-time metrics, custom reports, and forecasting tools to make smarter business decisions",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
imageSrc: "/placeholders/saas_dashboard/chat.png",
|
|
20
|
+
imageAlt: "Team Collaboration Tools",
|
|
21
|
+
headingText: "Seamless Teamwork",
|
|
22
|
+
subheadingText: "Built-in chat, file sharing, and @mentions keep everyone connected and productive",
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
export function Features() {
|
|
26
|
+
return (_jsx(SharedFeatures, { sectionHeading: "Everything You Need to Run Your Business", sectionSubheading: "Powerful tools and insights to streamline your workflow and boost productivity", featuresData: defaultFeaturesData, className: cn("relative"), section: { className: "py-16 md:py-20 lg:py-24 bg-background" }, container: { className: "max-w-7xl mx-auto px-4 md:px-6 lg:px-8" }, header: { className: "text-center mb-12 md:mb-16" }, heading: {
|
|
27
|
+
className: cn("font-inter mb-4 text-3xl font-bold text-[var(--heading-fg)] md:text-4xl lg:text-5xl"),
|
|
28
|
+
}, subheading: {
|
|
29
|
+
className: cn("font-inter mx-auto max-w-3xl text-lg leading-relaxed text-[var(--subheading-fg)] md:text-xl"),
|
|
30
|
+
}, grid: {
|
|
31
|
+
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8",
|
|
32
|
+
}, cardWrapper: {
|
|
33
|
+
className: "group motion-reduce:transform-none motion-reduce:transition-none",
|
|
34
|
+
}, card: {
|
|
35
|
+
className: "h-full transition-all duration-300 hover:-translate-y-2 hover:shadow-xl bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] rounded-lg shadow-md overflow-hidden",
|
|
36
|
+
}, image: {
|
|
37
|
+
className: "w-full h-48 md:h-56 object-cover transition-transform duration-300 group-hover:scale-[1.03]",
|
|
38
|
+
}, cardHeading: {
|
|
39
|
+
className: cn("font-inter mb-3 text-xl leading-tight font-semibold text-[var(--card-title-fg)] md:text-2xl"),
|
|
40
|
+
}, cardSubheading: {
|
|
41
|
+
className: cn("font-inter text-sm leading-relaxed text-[var(--card-muted-fg)] md:text-base"),
|
|
42
|
+
},
|
|
43
|
+
// Motion config showcasing upgraded API
|
|
44
|
+
motionConfig: {
|
|
45
|
+
initial: { opacity: 0, y: 12 },
|
|
46
|
+
whileInView: { opacity: 1, y: 0 },
|
|
47
|
+
viewport: { once: true, amount: 0.2 },
|
|
48
|
+
transition: {
|
|
49
|
+
type: "spring",
|
|
50
|
+
stiffness: 125,
|
|
51
|
+
damping: 50,
|
|
52
|
+
delay: 0.12,
|
|
53
|
+
},
|
|
54
|
+
}, ariaLabel: "Features section" }));
|
|
55
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Features as SharedFeatures } from "@nextworks/blocks-sections";
|
|
3
|
+
import { cn } from "@nextworks/blocks-core";
|
|
4
|
+
const defaultFeaturesData = [
|
|
5
|
+
{
|
|
6
|
+
imageSrc: "/placeholders/saas_dashboard/projectBoard.png",
|
|
7
|
+
imageAlt: "Project Management Dashboard",
|
|
8
|
+
headingText: "Track Every Project",
|
|
9
|
+
subheadingText: "Kanban boards, Gantt charts, and timeline views keep your team aligned and deadlines met",
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
imageSrc: "/placeholders/saas_dashboard/analytics.png",
|
|
13
|
+
imageAlt: "Analytics Dashboard",
|
|
14
|
+
headingText: "Data-Driven Insights",
|
|
15
|
+
subheadingText: "Real-time metrics, custom reports, and forecasting tools to make smarter business decisions",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
imageSrc: "/placeholders/saas_dashboard/chat.png",
|
|
19
|
+
imageAlt: "Team Collaboration Tools",
|
|
20
|
+
headingText: "Seamless Teamwork",
|
|
21
|
+
subheadingText: "Built-in chat, file sharing, and @mentions keep everyone connected and productive",
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
export function Features() {
|
|
25
|
+
return (<SharedFeatures sectionHeading="Everything You Need to Run Your Business" sectionSubheading="Powerful tools and insights to streamline your workflow and boost productivity" featuresData={defaultFeaturesData} className={cn("relative")} section={{ className: "py-16 md:py-20 lg:py-24 bg-background" }} container={{ className: "max-w-7xl mx-auto px-4 md:px-6 lg:px-8" }} header={{ className: "text-center mb-12 md:mb-16" }} heading={{
|
|
26
|
+
className: cn("font-inter mb-4 text-3xl font-bold text-[var(--heading-fg)] md:text-4xl lg:text-5xl"),
|
|
27
|
+
}} subheading={{
|
|
28
|
+
className: cn("font-inter mx-auto max-w-3xl text-lg leading-relaxed text-[var(--subheading-fg)] md:text-xl"),
|
|
29
|
+
}} grid={{
|
|
30
|
+
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8",
|
|
31
|
+
}} cardWrapper={{
|
|
32
|
+
className: "group motion-reduce:transform-none motion-reduce:transition-none",
|
|
33
|
+
}} card={{
|
|
34
|
+
className: "h-full transition-all duration-300 hover:-translate-y-2 hover:shadow-xl bg-[var(--card-bg)] text-[var(--card-fg)] border-[var(--card-border)] rounded-lg shadow-md overflow-hidden",
|
|
35
|
+
}} image={{
|
|
36
|
+
className: "w-full h-48 md:h-56 object-cover transition-transform duration-300 group-hover:scale-[1.03]",
|
|
37
|
+
}} cardHeading={{
|
|
38
|
+
className: cn("font-inter mb-3 text-xl leading-tight font-semibold text-[var(--card-title-fg)] md:text-2xl"),
|
|
39
|
+
}} cardSubheading={{
|
|
40
|
+
className: cn("font-inter text-sm leading-relaxed text-[var(--card-muted-fg)] md:text-base"),
|
|
41
|
+
}}
|
|
42
|
+
// Motion config showcasing upgraded API
|
|
43
|
+
motionConfig={{
|
|
44
|
+
initial: { opacity: 0, y: 12 },
|
|
45
|
+
whileInView: { opacity: 1, y: 0 },
|
|
46
|
+
viewport: { once: true, amount: 0.2 },
|
|
47
|
+
transition: {
|
|
48
|
+
type: "spring",
|
|
49
|
+
stiffness: 125,
|
|
50
|
+
damping: 50,
|
|
51
|
+
delay: 0.12,
|
|
52
|
+
},
|
|
53
|
+
}} ariaLabel="Features section"/>);
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/templates/saasdashboard/components/Footer.tsx"],"names":[],"mappings":"AAmCA,wBAAgB,MAAM,gCAyCrB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Footer as SharedFooter } from "@nextworks/blocks-sections";
|
|
4
|
+
import { cn } from "@nextworks/blocks-core";
|
|
5
|
+
const defaultNavLinks = [
|
|
6
|
+
{
|
|
7
|
+
heading: "Product",
|
|
8
|
+
links: [
|
|
9
|
+
{ name: "Features", href: "#features" },
|
|
10
|
+
{ name: "Pricing", href: "#pricing" },
|
|
11
|
+
{ name: "Documentation", href: "#documentation" },
|
|
12
|
+
{ name: "FAQ", href: "#faq" },
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
heading: "Company",
|
|
17
|
+
links: [
|
|
18
|
+
{ name: "About", href: "#about" },
|
|
19
|
+
{ name: "Careers", href: "#careers" },
|
|
20
|
+
{ name: "Blog", href: "#blog" },
|
|
21
|
+
{ name: "Contact", href: "#contact" },
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
heading: "Resources",
|
|
26
|
+
links: [
|
|
27
|
+
{ name: "Help Center", href: "#help" },
|
|
28
|
+
{ name: "Terms of Service", href: "#terms" },
|
|
29
|
+
{ name: "Privacy Policy", href: "#privacy" },
|
|
30
|
+
{ name: "Status", href: "#status" },
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
export function Footer() {
|
|
35
|
+
return (_jsx(SharedFooter, { footerBrandName: "Dash Flow", footerNavLinks: defaultNavLinks, className: cn("w-full"), section: {
|
|
36
|
+
className: "w-full bg-blue-50 dark:bg-gray-900 text-gray-800 dark:text-white",
|
|
37
|
+
}, container: { className: "max-w-7xl mx-auto px-6" }, brand: {
|
|
38
|
+
className: "text-xl font-bold text-blue-600 dark:text-blue-400 font-outfit",
|
|
39
|
+
}, brandWrapper: {
|
|
40
|
+
className: "flex flex-col items-start text-left lg:pr-8",
|
|
41
|
+
}, navSection: {
|
|
42
|
+
className: "flex flex-col lg:flex-row items-start lg:items-start justify-center gap-8 lg:gap-12 pt-6.5 pb-8",
|
|
43
|
+
}, navGroup: { className: "flex flex-col items-start text-left pt-1.5" }, navHeading: {
|
|
44
|
+
className: "font-semibold text-gray-800 dark:text-white mb-3 text-xs uppercase tracking-wider font-inter",
|
|
45
|
+
}, navLink: {
|
|
46
|
+
className: "text-gray-600 dark:text-gray-300 hover:text-blue-500 dark:hover:text-blue-400 transition-colors duration-200 text-xs mb-2 block font-inter",
|
|
47
|
+
}, socialSection: {
|
|
48
|
+
className: "flex items-center justify-center gap-4 py-4",
|
|
49
|
+
}, copyright: {
|
|
50
|
+
className: "text-center text-xs text-gray-500 dark:text-gray-400 py-4 border-t border-gray-200 dark:border-gray-700 font-inter",
|
|
51
|
+
}, ariaLabel: "Footer section" }));
|
|
52
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Footer as SharedFooter } from "@nextworks/blocks-sections";
|
|
3
|
+
import { cn } from "@nextworks/blocks-core";
|
|
4
|
+
const defaultNavLinks = [
|
|
5
|
+
{
|
|
6
|
+
heading: "Product",
|
|
7
|
+
links: [
|
|
8
|
+
{ name: "Features", href: "#features" },
|
|
9
|
+
{ name: "Pricing", href: "#pricing" },
|
|
10
|
+
{ name: "Documentation", href: "#documentation" },
|
|
11
|
+
{ name: "FAQ", href: "#faq" },
|
|
12
|
+
],
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
heading: "Company",
|
|
16
|
+
links: [
|
|
17
|
+
{ name: "About", href: "#about" },
|
|
18
|
+
{ name: "Careers", href: "#careers" },
|
|
19
|
+
{ name: "Blog", href: "#blog" },
|
|
20
|
+
{ name: "Contact", href: "#contact" },
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
heading: "Resources",
|
|
25
|
+
links: [
|
|
26
|
+
{ name: "Help Center", href: "#help" },
|
|
27
|
+
{ name: "Terms of Service", href: "#terms" },
|
|
28
|
+
{ name: "Privacy Policy", href: "#privacy" },
|
|
29
|
+
{ name: "Status", href: "#status" },
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
export function Footer() {
|
|
34
|
+
return (<SharedFooter footerBrandName="Dash Flow" footerNavLinks={defaultNavLinks} className={cn("w-full")} section={{
|
|
35
|
+
className: "w-full bg-blue-50 dark:bg-gray-900 text-gray-800 dark:text-white",
|
|
36
|
+
}} container={{ className: "max-w-7xl mx-auto px-6" }} brand={{
|
|
37
|
+
className: "text-xl font-bold text-blue-600 dark:text-blue-400 font-outfit",
|
|
38
|
+
}} brandWrapper={{
|
|
39
|
+
className: "flex flex-col items-start text-left lg:pr-8",
|
|
40
|
+
}} navSection={{
|
|
41
|
+
className: "flex flex-col lg:flex-row items-start lg:items-start justify-center gap-8 lg:gap-12 pt-6.5 pb-8",
|
|
42
|
+
}} navGroup={{ className: "flex flex-col items-start text-left pt-1.5" }} navHeading={{
|
|
43
|
+
className: "font-semibold text-gray-800 dark:text-white mb-3 text-xs uppercase tracking-wider font-inter",
|
|
44
|
+
}} navLink={{
|
|
45
|
+
className: "text-gray-600 dark:text-gray-300 hover:text-blue-500 dark:hover:text-blue-400 transition-colors duration-200 text-xs mb-2 block font-inter",
|
|
46
|
+
}} socialSection={{
|
|
47
|
+
className: "flex items-center justify-center gap-4 py-4",
|
|
48
|
+
}} copyright={{
|
|
49
|
+
className: "text-center text-xs text-gray-500 dark:text-gray-400 py-4 border-t border-gray-200 dark:border-gray-700 font-inter",
|
|
50
|
+
}} ariaLabel="Footer section"/>);
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../../../src/templates/saasdashboard/components/Hero.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,IAAI,gCAkFnB"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { HeroSplit as SharedHeroSplit } from "@nextworks/blocks-sections";
|
|
4
|
+
import { Dashboard } from "./Dashboard";
|
|
5
|
+
import { cn } from "@nextworks/blocks-core";
|
|
6
|
+
const stats = [
|
|
7
|
+
{ value: "$124K", label: "Monthly Revenue" },
|
|
8
|
+
{ value: "+23%", label: "Growth Rate" },
|
|
9
|
+
{ value: "847", label: "Active Users" },
|
|
10
|
+
];
|
|
11
|
+
const projects = ["Website Redesign", "Mobile App v2.0", "Marketing Campaign"];
|
|
12
|
+
const floatingCards = [
|
|
13
|
+
{ position: "card-1", icon: "📊", text: "Real-time Analytics" },
|
|
14
|
+
{ position: "card-2", icon: "👥", text: "Team Collaboration" },
|
|
15
|
+
];
|
|
16
|
+
const activeTab = "Analytics";
|
|
17
|
+
const navItems = ["Analytics", "Projects", "Team"];
|
|
18
|
+
export function Hero() {
|
|
19
|
+
return (_jsx("div", { className: "relative", children: _jsx(SharedHeroSplit, { className: cn("relative"), heading: {
|
|
20
|
+
text: "Manage Your Entire Business From One Powerful Dashboard",
|
|
21
|
+
className: "text-3xl md:text-4xl lg:text-5xl font-bold leading-tight font-inter text-[var(--heading-fg)]",
|
|
22
|
+
}, subheading: {
|
|
23
|
+
text: "Stop switching between 12 different apps. DashFlow combines project management, analytics, team chat, and customer insights in one beautiful interface.",
|
|
24
|
+
className: "text-base md:text-lg mt-6 mb-8 max-w-2xl font-inter font-normal text-[var(--subheading-fg)]",
|
|
25
|
+
}, section: {
|
|
26
|
+
className: "relative pt-1 px-8 pb-8 bg-[var(--hero-bg)] dark:bg-[var(--hero-bg)]",
|
|
27
|
+
}, cta1: {
|
|
28
|
+
label: "Start Free Trial",
|
|
29
|
+
href: "#contact",
|
|
30
|
+
variant: "default",
|
|
31
|
+
size: "lg",
|
|
32
|
+
className: [
|
|
33
|
+
"text-base font-semibold font-inter shadow-lg hover:shadow-xl hover:-translate-y-0.5 transition-all duration-200 px-8 py-3",
|
|
34
|
+
"[--btn-bg:theme(colors.sky.600)]",
|
|
35
|
+
"hover:[--btn-hover-bg:theme(colors.sky.700)]",
|
|
36
|
+
"[--btn-fg:theme(colors.white)]",
|
|
37
|
+
"hover:[--btn-hover-fg:theme(colors.white)]",
|
|
38
|
+
].join(" "),
|
|
39
|
+
}, cta2: {
|
|
40
|
+
label: "Watch demo",
|
|
41
|
+
href: "#demo",
|
|
42
|
+
variant: "outline",
|
|
43
|
+
size: "lg",
|
|
44
|
+
className: [
|
|
45
|
+
"text-base font-semibold font-inter shadow-lg hover:shadow-xl hover:-translate-y-0.5 transition-all duration-200 px-8 py-3",
|
|
46
|
+
"[--btn-fg:theme(colors.sky.600)]",
|
|
47
|
+
"[--btn-border:theme(colors.sky.600)]",
|
|
48
|
+
"hover:[--btn-hover-bg:theme(colors.sky.50)]",
|
|
49
|
+
"hover:[--btn-hover-fg:theme(colors.sky.600)]",
|
|
50
|
+
"dark:[--btn-fg:theme(colors.sky.500)]",
|
|
51
|
+
"dark:[--btn-border:theme(colors.sky.500)]",
|
|
52
|
+
"dark:hover:[--btn-hover-bg:theme(colors.sky.950)]",
|
|
53
|
+
"dark:hover:[--btn-hover-fg:theme(colors.sky.500)]",
|
|
54
|
+
].join(" "),
|
|
55
|
+
}, image: { src: undefined, alt: "Dashboard preview" }, imageLayout: "padded", fallback: _jsx("div", { className: "flex h-full w-full items-center justify-center", children: _jsx("div", { className: "relative w-[min(100%,720px)] overflow-hidden rounded-xl bg-white p-0 p-1 opacity-100 md:pt-8 lg:pt-1 dark:bg-blue-950", children: _jsx(Dashboard, { stats: stats, projects: projects, floatingCards: floatingCards, navItems: navItems, activeTab: activeTab }) }) }), imageContainer: {
|
|
56
|
+
className: "pl-0 relative self-start md:self-start md:flex-none md:shrink-0 w-full h-[24rem] sm:h-[32rem] md:h-[34rem] lg:h-[33rem] md:w-1/2 mb-0 md:mb-0 lg:mb-0 opacity-100",
|
|
57
|
+
// "relative self-start md:self-start md:flex-none md:shrink-0 w-full h-[24rem] sm:h-[26rem] md:h-[28rem] md:w-1/2 mb-6 md:mb-0",
|
|
58
|
+
}, textContainer: { className: "flex-1 p-5 lg:p-8" }, buttonsContainer: {
|
|
59
|
+
className: [
|
|
60
|
+
"flex flex-col sm:flex-row gap-4 mt-8 justify-center lg:justify-start",
|
|
61
|
+
"[--btn-ring:theme(colors.sky.500)]",
|
|
62
|
+
"dark:[--btn-ring:theme(colors.sky.400)]",
|
|
63
|
+
].join(" "),
|
|
64
|
+
}, textAlign: "center", ariaLabel: "DashFlow hero section" }) }));
|
|
65
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { HeroSplit as SharedHeroSplit } from "@nextworks/blocks-sections";
|
|
3
|
+
import { Dashboard } from "./Dashboard";
|
|
4
|
+
import { cn } from "@nextworks/blocks-core";
|
|
5
|
+
const stats = [
|
|
6
|
+
{ value: "$124K", label: "Monthly Revenue" },
|
|
7
|
+
{ value: "+23%", label: "Growth Rate" },
|
|
8
|
+
{ value: "847", label: "Active Users" },
|
|
9
|
+
];
|
|
10
|
+
const projects = ["Website Redesign", "Mobile App v2.0", "Marketing Campaign"];
|
|
11
|
+
const floatingCards = [
|
|
12
|
+
{ position: "card-1", icon: "📊", text: "Real-time Analytics" },
|
|
13
|
+
{ position: "card-2", icon: "👥", text: "Team Collaboration" },
|
|
14
|
+
];
|
|
15
|
+
const activeTab = "Analytics";
|
|
16
|
+
const navItems = ["Analytics", "Projects", "Team"];
|
|
17
|
+
export function Hero() {
|
|
18
|
+
return (<div className="relative">
|
|
19
|
+
<SharedHeroSplit className={cn("relative")} heading={{
|
|
20
|
+
text: "Manage Your Entire Business From One Powerful Dashboard",
|
|
21
|
+
className: "text-3xl md:text-4xl lg:text-5xl font-bold leading-tight font-inter text-[var(--heading-fg)]",
|
|
22
|
+
}} subheading={{
|
|
23
|
+
text: "Stop switching between 12 different apps. DashFlow combines project management, analytics, team chat, and customer insights in one beautiful interface.",
|
|
24
|
+
className: "text-base md:text-lg mt-6 mb-8 max-w-2xl font-inter font-normal text-[var(--subheading-fg)]",
|
|
25
|
+
}} section={{
|
|
26
|
+
className: "relative pt-1 px-8 pb-8 bg-[var(--hero-bg)] dark:bg-[var(--hero-bg)]",
|
|
27
|
+
}} cta1={{
|
|
28
|
+
label: "Start Free Trial",
|
|
29
|
+
href: "#contact",
|
|
30
|
+
variant: "default",
|
|
31
|
+
size: "lg",
|
|
32
|
+
className: [
|
|
33
|
+
"text-base font-semibold font-inter shadow-lg hover:shadow-xl hover:-translate-y-0.5 transition-all duration-200 px-8 py-3",
|
|
34
|
+
"[--btn-bg:theme(colors.sky.600)]",
|
|
35
|
+
"hover:[--btn-hover-bg:theme(colors.sky.700)]",
|
|
36
|
+
"[--btn-fg:theme(colors.white)]",
|
|
37
|
+
"hover:[--btn-hover-fg:theme(colors.white)]",
|
|
38
|
+
].join(" "),
|
|
39
|
+
}} cta2={{
|
|
40
|
+
label: "Watch demo",
|
|
41
|
+
href: "#demo",
|
|
42
|
+
variant: "outline",
|
|
43
|
+
size: "lg",
|
|
44
|
+
className: [
|
|
45
|
+
"text-base font-semibold font-inter shadow-lg hover:shadow-xl hover:-translate-y-0.5 transition-all duration-200 px-8 py-3",
|
|
46
|
+
"[--btn-fg:theme(colors.sky.600)]",
|
|
47
|
+
"[--btn-border:theme(colors.sky.600)]",
|
|
48
|
+
"hover:[--btn-hover-bg:theme(colors.sky.50)]",
|
|
49
|
+
"hover:[--btn-hover-fg:theme(colors.sky.600)]",
|
|
50
|
+
"dark:[--btn-fg:theme(colors.sky.500)]",
|
|
51
|
+
"dark:[--btn-border:theme(colors.sky.500)]",
|
|
52
|
+
"dark:hover:[--btn-hover-bg:theme(colors.sky.950)]",
|
|
53
|
+
"dark:hover:[--btn-hover-fg:theme(colors.sky.500)]",
|
|
54
|
+
].join(" "),
|
|
55
|
+
}} image={{ src: undefined, alt: "Dashboard preview" }} imageLayout="padded" fallback={<div className="flex h-full w-full items-center justify-center">
|
|
56
|
+
<div className="relative w-[min(100%,720px)] overflow-hidden rounded-xl bg-white p-0 p-1 opacity-100 md:pt-8 lg:pt-1 dark:bg-blue-950">
|
|
57
|
+
<Dashboard stats={stats} projects={projects} floatingCards={floatingCards} navItems={navItems} activeTab={activeTab}/>
|
|
58
|
+
</div>
|
|
59
|
+
</div>} imageContainer={{
|
|
60
|
+
className: "pl-0 relative self-start md:self-start md:flex-none md:shrink-0 w-full h-[24rem] sm:h-[32rem] md:h-[34rem] lg:h-[33rem] md:w-1/2 mb-0 md:mb-0 lg:mb-0 opacity-100",
|
|
61
|
+
// "relative self-start md:self-start md:flex-none md:shrink-0 w-full h-[24rem] sm:h-[26rem] md:h-[28rem] md:w-1/2 mb-6 md:mb-0",
|
|
62
|
+
}} textContainer={{ className: "flex-1 p-5 lg:p-8" }} buttonsContainer={{
|
|
63
|
+
className: [
|
|
64
|
+
"flex flex-col sm:flex-row gap-4 mt-8 justify-center lg:justify-start",
|
|
65
|
+
"[--btn-ring:theme(colors.sky.500)]",
|
|
66
|
+
"dark:[--btn-ring:theme(colors.sky.400)]",
|
|
67
|
+
].join(" "),
|
|
68
|
+
}} textAlign="center" ariaLabel="DashFlow hero section"/>
|
|
69
|
+
</div>);
|
|
70
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hero_mask.d.ts","sourceRoot":"","sources":["../../../../src/templates/saasdashboard/components/Hero_mask.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqB1B,wBAAgB,IAAI,sBAuGnB"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { HeroSplit as SharedHeroSplit } from "@nextworks/blocks-sections";
|
|
5
|
+
import { Dashboard } from "./Dashboard";
|
|
6
|
+
import { cn } from "@nextworks/blocks-core";
|
|
7
|
+
const stats = [
|
|
8
|
+
{ value: "$124K", label: "Monthly Revenue" },
|
|
9
|
+
{ value: "+23%", label: "Growth Rate" },
|
|
10
|
+
{ value: "847", label: "Active Users" },
|
|
11
|
+
];
|
|
12
|
+
const projects = ["Website Redesign", "Mobile App v2.0", "Marketing Campaign"];
|
|
13
|
+
const floatingCards = [
|
|
14
|
+
{ position: "card-1", icon: "📊", text: "Real-time Analytics" },
|
|
15
|
+
{ position: "card-2", icon: "👥", text: "Team Collaboration" },
|
|
16
|
+
];
|
|
17
|
+
const activeTab = "Analytics";
|
|
18
|
+
const navItems = ["Analytics", "Projects", "Team"];
|
|
19
|
+
export function Hero() {
|
|
20
|
+
const sectionRef = React.useRef(null);
|
|
21
|
+
const dashRef = React.useRef(null);
|
|
22
|
+
React.useLayoutEffect(() => {
|
|
23
|
+
const measure = () => {
|
|
24
|
+
const sec = sectionRef.current;
|
|
25
|
+
const dash = dashRef.current;
|
|
26
|
+
if (!sec || !dash)
|
|
27
|
+
return;
|
|
28
|
+
const sr = sec.getBoundingClientRect();
|
|
29
|
+
const dr = dash.getBoundingClientRect();
|
|
30
|
+
sec.style.setProperty("--hole-x", `${dr.left - sr.left}px`);
|
|
31
|
+
sec.style.setProperty("--hole-y", `${dr.top - sr.top}px`);
|
|
32
|
+
sec.style.setProperty("--hole-w", `${dr.width}px`);
|
|
33
|
+
sec.style.setProperty("--hole-h", `${dr.height}px`);
|
|
34
|
+
};
|
|
35
|
+
measure();
|
|
36
|
+
const ro = new ResizeObserver(measure);
|
|
37
|
+
if (sectionRef.current)
|
|
38
|
+
ro.observe(sectionRef.current);
|
|
39
|
+
if (dashRef.current)
|
|
40
|
+
ro.observe(dashRef.current);
|
|
41
|
+
window.addEventListener("resize", measure);
|
|
42
|
+
return () => {
|
|
43
|
+
ro.disconnect();
|
|
44
|
+
window.removeEventListener("resize", measure);
|
|
45
|
+
};
|
|
46
|
+
}, []);
|
|
47
|
+
return (_jsxs("div", { className: "relative", children: [_jsxs("div", { className: "pointer-events-none absolute inset-0 -z-20 overflow-hidden", children: [_jsx("div", { className: "absolute -top-10 -left-10 h-72 w-72 rounded-full bg-blue-500/20 blur-3xl" }), _jsx("div", { className: "absolute right-0 bottom-0 h-72 w-72 rounded-full bg-purple-500/20 blur-3xl" })] }), _jsx("div", { ref: sectionRef, className: "relative before:absolute before:inset-0 before:-z-10 before:bg-gradient-to-br before:from-white before:via-blue-50 before:to-white before:[mask-image:linear-gradient(#000,#000),linear-gradient(#000,#000)] before:[mask-composite:exclude] before:[mask-size:auto,var(--hole-w)_var(--hole-h)] before:[mask-position:0_0,var(--hole-x)_var(--hole-y)] before:[mask-repeat:no-repeat] before:content-[''] before:[-webkit-mask-composite:xor] dark:before:from-gray-900 dark:before:via-blue-950/20 dark:before:to-gray-900", children: _jsx(SharedHeroSplit, { className: cn("relative"), heading: {
|
|
48
|
+
text: "Manage Your Entire Business From One Powerful Dashboard",
|
|
49
|
+
className: "text-3xl md:text-4xl lg:text-5xl font-bold leading-tight text-black dark:text-white font-inter",
|
|
50
|
+
}, subheading: {
|
|
51
|
+
text: "Stop switching between 12 different apps. DashFlow combines project management, analytics, team chat, and customer insights in one beautiful interface.",
|
|
52
|
+
className: "text-base md:text-lg text-gray-700 dark:text-gray-100 mt-6 mb-8 max-w-2xl font-inter font-normal",
|
|
53
|
+
}, section: {
|
|
54
|
+
className: "relative bg-none bg-transparent pt-0 px-8 pb-8",
|
|
55
|
+
}, cta1: {
|
|
56
|
+
label: "Start Free Trial",
|
|
57
|
+
href: "#contact",
|
|
58
|
+
variant: "default",
|
|
59
|
+
size: "lg",
|
|
60
|
+
className: "bg-blue-600 hover:bg-blue-700 text-white text-base font-semibold font-inter shadow-lg hover:shadow-xl hover:-translate-y-0.5 transition-all duration-200 border-0 px-8 py-3",
|
|
61
|
+
}, cta2: {
|
|
62
|
+
label: "Watch demo",
|
|
63
|
+
href: "#demo",
|
|
64
|
+
variant: "outline",
|
|
65
|
+
size: "lg",
|
|
66
|
+
className: "border-blue-600 text-blue-600 hover:bg-blue-50 dark:border-blue-500 dark:text-blue-500 dark:hover:bg-blue-950 text-base font-semibold font-inter shadow-lg hover:shadow-xl hover:-translate-y-0.5 transition-all duration-200 px-8 py-3",
|
|
67
|
+
}, image: { src: undefined, alt: "Dashboard preview" }, imageLayout: "padded", fallback: _jsx("div", { ref: dashRef, className: "relative z-10 flex h-full w-full items-center justify-center pl-0", children: _jsx("div", { className: "relative h-full w-[min(100%,720px)] overflow-hidden p-2", children: _jsx(Dashboard, { stats: stats, projects: projects, floatingCards: floatingCards, navItems: navItems, activeTab: activeTab }) }) }), imageContainer: {
|
|
68
|
+
className: "relative self-start md:self-start md:flex-none md:shrink-0 w-full h-[24rem] sm:h-[26rem] md:h-[31rem] md:w-1/2 mb-6 md:mb-0",
|
|
69
|
+
// "relative self-start md:self-start md:flex-none md:shrink-0 w-full h-[24rem] sm:h-[26rem] md:h-[28rem] md:w-1/2 mb-6 md:mb-0",
|
|
70
|
+
}, textContainer: { className: "flex-1 p-5 lg:p-8" }, buttonsContainer: {
|
|
71
|
+
className: "flex flex-col sm:flex-row gap-4 mt-8 justify-center lg:justify-start",
|
|
72
|
+
}, textAlign: "center", ariaLabel: "DashFlow hero section" }) })] }));
|
|
73
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { HeroSplit as SharedHeroSplit } from "@nextworks/blocks-sections";
|
|
4
|
+
import { Dashboard } from "./Dashboard";
|
|
5
|
+
import { cn } from "@nextworks/blocks-core";
|
|
6
|
+
const stats = [
|
|
7
|
+
{ value: "$124K", label: "Monthly Revenue" },
|
|
8
|
+
{ value: "+23%", label: "Growth Rate" },
|
|
9
|
+
{ value: "847", label: "Active Users" },
|
|
10
|
+
];
|
|
11
|
+
const projects = ["Website Redesign", "Mobile App v2.0", "Marketing Campaign"];
|
|
12
|
+
const floatingCards = [
|
|
13
|
+
{ position: "card-1", icon: "📊", text: "Real-time Analytics" },
|
|
14
|
+
{ position: "card-2", icon: "👥", text: "Team Collaboration" },
|
|
15
|
+
];
|
|
16
|
+
const activeTab = "Analytics";
|
|
17
|
+
const navItems = ["Analytics", "Projects", "Team"];
|
|
18
|
+
export function Hero() {
|
|
19
|
+
const sectionRef = React.useRef(null);
|
|
20
|
+
const dashRef = React.useRef(null);
|
|
21
|
+
React.useLayoutEffect(() => {
|
|
22
|
+
const measure = () => {
|
|
23
|
+
const sec = sectionRef.current;
|
|
24
|
+
const dash = dashRef.current;
|
|
25
|
+
if (!sec || !dash)
|
|
26
|
+
return;
|
|
27
|
+
const sr = sec.getBoundingClientRect();
|
|
28
|
+
const dr = dash.getBoundingClientRect();
|
|
29
|
+
sec.style.setProperty("--hole-x", `${dr.left - sr.left}px`);
|
|
30
|
+
sec.style.setProperty("--hole-y", `${dr.top - sr.top}px`);
|
|
31
|
+
sec.style.setProperty("--hole-w", `${dr.width}px`);
|
|
32
|
+
sec.style.setProperty("--hole-h", `${dr.height}px`);
|
|
33
|
+
};
|
|
34
|
+
measure();
|
|
35
|
+
const ro = new ResizeObserver(measure);
|
|
36
|
+
if (sectionRef.current)
|
|
37
|
+
ro.observe(sectionRef.current);
|
|
38
|
+
if (dashRef.current)
|
|
39
|
+
ro.observe(dashRef.current);
|
|
40
|
+
window.addEventListener("resize", measure);
|
|
41
|
+
return () => {
|
|
42
|
+
ro.disconnect();
|
|
43
|
+
window.removeEventListener("resize", measure);
|
|
44
|
+
};
|
|
45
|
+
}, []);
|
|
46
|
+
return (<div className="relative">
|
|
47
|
+
{/* Ambient gradient blobs behind hero */}
|
|
48
|
+
<div className="pointer-events-none absolute inset-0 -z-20 overflow-hidden">
|
|
49
|
+
<div className="absolute -top-10 -left-10 h-72 w-72 rounded-full bg-blue-500/20 blur-3xl"/>
|
|
50
|
+
<div className="absolute right-0 bottom-0 h-72 w-72 rounded-full bg-purple-500/20 blur-3xl"/>
|
|
51
|
+
</div>
|
|
52
|
+
<div ref={sectionRef} className="relative before:absolute before:inset-0 before:-z-10 before:bg-gradient-to-br before:from-white before:via-blue-50 before:to-white before:[mask-image:linear-gradient(#000,#000),linear-gradient(#000,#000)] before:[mask-composite:exclude] before:[mask-size:auto,var(--hole-w)_var(--hole-h)] before:[mask-position:0_0,var(--hole-x)_var(--hole-y)] before:[mask-repeat:no-repeat] before:content-[''] before:[-webkit-mask-composite:xor] dark:before:from-gray-900 dark:before:via-blue-950/20 dark:before:to-gray-900">
|
|
53
|
+
<SharedHeroSplit className={cn("relative")} heading={{
|
|
54
|
+
text: "Manage Your Entire Business From One Powerful Dashboard",
|
|
55
|
+
className: "text-3xl md:text-4xl lg:text-5xl font-bold leading-tight text-black dark:text-white font-inter",
|
|
56
|
+
}} subheading={{
|
|
57
|
+
text: "Stop switching between 12 different apps. DashFlow combines project management, analytics, team chat, and customer insights in one beautiful interface.",
|
|
58
|
+
className: "text-base md:text-lg text-gray-700 dark:text-gray-100 mt-6 mb-8 max-w-2xl font-inter font-normal",
|
|
59
|
+
}} section={{
|
|
60
|
+
className: "relative bg-none bg-transparent pt-0 px-8 pb-8",
|
|
61
|
+
}} cta1={{
|
|
62
|
+
label: "Start Free Trial",
|
|
63
|
+
href: "#contact",
|
|
64
|
+
variant: "default",
|
|
65
|
+
size: "lg",
|
|
66
|
+
className: "bg-blue-600 hover:bg-blue-700 text-white text-base font-semibold font-inter shadow-lg hover:shadow-xl hover:-translate-y-0.5 transition-all duration-200 border-0 px-8 py-3",
|
|
67
|
+
}} cta2={{
|
|
68
|
+
label: "Watch demo",
|
|
69
|
+
href: "#demo",
|
|
70
|
+
variant: "outline",
|
|
71
|
+
size: "lg",
|
|
72
|
+
className: "border-blue-600 text-blue-600 hover:bg-blue-50 dark:border-blue-500 dark:text-blue-500 dark:hover:bg-blue-950 text-base font-semibold font-inter shadow-lg hover:shadow-xl hover:-translate-y-0.5 transition-all duration-200 px-8 py-3",
|
|
73
|
+
}} image={{ src: undefined, alt: "Dashboard preview" }} imageLayout="padded" fallback={<div ref={dashRef} className="relative z-10 flex h-full w-full items-center justify-center pl-0">
|
|
74
|
+
<div className="relative h-full w-[min(100%,720px)] overflow-hidden p-2">
|
|
75
|
+
<Dashboard stats={stats} projects={projects} floatingCards={floatingCards} navItems={navItems} activeTab={activeTab}/>
|
|
76
|
+
</div>
|
|
77
|
+
</div>} imageContainer={{
|
|
78
|
+
className: "relative self-start md:self-start md:flex-none md:shrink-0 w-full h-[24rem] sm:h-[26rem] md:h-[31rem] md:w-1/2 mb-6 md:mb-0",
|
|
79
|
+
// "relative self-start md:self-start md:flex-none md:shrink-0 w-full h-[24rem] sm:h-[26rem] md:h-[28rem] md:w-1/2 mb-6 md:mb-0",
|
|
80
|
+
}} textContainer={{ className: "flex-1 p-5 lg:p-8" }} buttonsContainer={{
|
|
81
|
+
className: "flex flex-col sm:flex-row gap-4 mt-8 justify-center lg:justify-start",
|
|
82
|
+
}} textAlign="center" ariaLabel="DashFlow hero section"/>
|
|
83
|
+
</div>
|
|
84
|
+
</div>);
|
|
85
|
+
}
|