@locusgraph/marketing 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +64 -2
  3. package/dist/actions/marketing-actions.d.ts +9 -0
  4. package/dist/actions/marketing-actions.js +26 -0
  5. package/dist/cta/cta-band.d.ts +12 -0
  6. package/dist/cta/cta-band.js +34 -0
  7. package/dist/faq/faq.d.ts +13 -0
  8. package/dist/faq/faq.js +31 -0
  9. package/dist/features/feature-rows.d.ts +18 -0
  10. package/dist/features/feature-rows.js +45 -0
  11. package/dist/features/features.d.ts +15 -0
  12. package/dist/features/features.js +34 -0
  13. package/dist/footer/footer.d.ts +18 -0
  14. package/dist/footer/footer.js +72 -0
  15. package/dist/hero/hero.d.ts +15 -0
  16. package/dist/hero/hero.js +55 -0
  17. package/dist/index.d.ts +17 -0
  18. package/dist/index.js +15 -0
  19. package/dist/keys.d.ts +6 -0
  20. package/dist/keys.js +15 -0
  21. package/dist/navbar/navbar-menu.d.ts +7 -0
  22. package/dist/navbar/navbar-menu.js +117 -0
  23. package/dist/navbar/navbar.d.ts +16 -0
  24. package/dist/navbar/navbar.js +69 -0
  25. package/dist/pricing/pricing-period.d.ts +10 -0
  26. package/dist/pricing/pricing-period.js +86 -0
  27. package/dist/pricing/pricing-plan.d.ts +21 -0
  28. package/dist/pricing/pricing-plan.js +91 -0
  29. package/dist/pricing/pricing.d.ts +17 -0
  30. package/dist/pricing/pricing.js +53 -0
  31. package/dist/proof/logo-cloud.d.ts +14 -0
  32. package/dist/proof/logo-cloud.js +34 -0
  33. package/dist/proof/testimonials.d.ts +15 -0
  34. package/dist/proof/testimonials.js +82 -0
  35. package/dist/section/section.d.ts +16 -0
  36. package/dist/section/section.js +40 -0
  37. package/dist/sources.css +1 -0
  38. package/dist/types.d.ts +9 -0
  39. package/dist/types.js +1 -0
  40. package/dist/waitlist/waitlist-form.d.ts +15 -0
  41. package/dist/waitlist/waitlist-form.js +230 -0
  42. package/dist/waitlist/waitlist.d.ts +7 -0
  43. package/dist/waitlist/waitlist.js +26 -0
  44. package/package.json +53 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 LocusGraph
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,65 @@
1
- # Temporary Holding Version
1
+ # @locusgraph/marketing
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![npm](https://img.shields.io/npm/v/@locusgraph/marketing?color=111111&style=flat-square)](https://www.npmjs.com/package/@locusgraph/marketing) [![MIT license](https://img.shields.io/badge/license-MIT-111111?style=flat-square)](https://github.com/locusgraph/design/blob/master/LICENSE)
4
+
5
+ [Docs](https://design.locusgraph.com/marketing) · [Source](https://github.com/locusgraph/design/tree/master/packages/marketing) · [All packages](https://github.com/locusgraph/design#packages)
6
+
7
+ Landing page sections built from `@locusgraph/components`. Every block takes its content as props, so a template passes data instead of editing markup. Blocks are server components; only the interactive parts (the navbar's mobile menu, the pricing toggle and the waitlist form) are client components, so a page stays server rendered in the Next.js App Router.
8
+
9
+ It is a separate package from `@locusgraph/blocks` so product apps never scan or ship marketing styles, and marketing releases never bump the blocks that apps and `@locusgraph/json-render` depend on.
10
+
11
+ ```bash
12
+ pnpm add @locusgraph/marketing @locusgraph/components
13
+ ```
14
+
15
+ ```css
16
+ @import "@locusgraph/components/theme.css";
17
+ @import "@locusgraph/marketing/sources.css";
18
+ ```
19
+
20
+ | Block | Props |
21
+ |---|---|
22
+ | `Navbar` | `logo`, `logoHref`, `links`, `actions`, `end` (such as a theme toggle), `menuLabel`, `sticky`, `linkComponent`. Links and actions move into a sheet below the `md` breakpoint |
23
+ | `Hero` | `title` (the page `h1`), `description`, `eyebrow`, `actions`, `media` (screenshot, video or illustration), `layout` (`centered` or `split`), `linkComponent` |
24
+ | `Features` | `items` (`{ title, description?, icon? }[]`) in a ruled grid, `columns` (2, 3 or 4) |
25
+ | `FeatureRows` | `rows` (`{ eyebrow?, title, description?, media, actions? }[]`): text beside media, switching sides every row on large screens |
26
+ | `LogoCloud` | `logos` (`{ name, logo, href? }[]`). Each logo is named for screen readers and links when it has an `href` |
27
+ | `Testimonials` | `testimonials` (`{ quote, name, role?, avatar? }[]`). One is featured large; two or more sit in a ruled grid |
28
+ | `Pricing` | `plans` (`{ name, description?, price, priceNote?, features?, action, highlighted?, badge? }[]`), `defaultPeriod`, `periodLabels`, `cadence`. A plan's `price` is a string or `{ monthly, yearly }`; with any of the second, a toggle switches every plan. Both prices render on the server |
29
+ | `Faq` | `items` (`{ question, answer }[]`) on the `Accordion` |
30
+ | `CtaBand` | `title`, `description`, `actions` on a full-width tinted band |
31
+ | `Waitlist` | A section around `WaitlistForm`: `onSubmit(email)` returns nothing on success or `{ error }`; a throw shows `errorText`. Also `buttonLabel`, `placeholder`, `successText`, `note`. In Next.js, pass a server action |
32
+ | `Footer` | `logo`, `tagline`, `columns` (`{ title, links }[]`), `legal`, `copyright`, `end`, `linkComponent` |
33
+ | `Section`, `SectionHeading` | The frame every section uses: `eyebrow`, `title` (an `h2`), `description`, `align`, `id`. Use them for your own sections |
34
+ | `MarketingActions` | `actions`, `size`, `linkComponent`. The buttons the blocks use: the first action is primary, the rest outline, unless an action sets `variant` |
35
+
36
+ Every section takes `eyebrow`, `title`, `description`, `align` and `id` (for navbar anchors). Links are `{ label, href }`; actions add an optional `variant` (`default`, `outline` or `ghost`). Pass your router's link as `linkComponent` (`next/link` in Next.js).
37
+
38
+ ```tsx
39
+ import { Footer, Hero, Navbar } from "@locusgraph/marketing";
40
+ import Link from "next/link";
41
+
42
+ export default function Home() {
43
+ return (
44
+ <>
45
+ <Navbar
46
+ logo={<Logo />}
47
+ links={[{ label: "Pricing", href: "/pricing" }]}
48
+ actions={[{ label: "Start free", href: "/signup" }]}
49
+ linkComponent={Link}
50
+ />
51
+ <Hero
52
+ layout="split"
53
+ title="Every agent run, priced"
54
+ description="See what each run costs before you approve it."
55
+ actions={[{ label: "Start free", href: "/signup" }]}
56
+ media={<Screenshot />}
57
+ linkComponent={Link}
58
+ />
59
+ <Footer copyright="© 2026 Acme" legal={[{ label: "Privacy", href: "/privacy" }]} />
60
+ </>
61
+ );
62
+ }
63
+ ```
64
+
65
+ Blocks use the theme's tokens only, so they follow any theme set with the shadcn variables (see `@locusgraph/tokens`).
@@ -0,0 +1,9 @@
1
+ import type { LinkComponent, MarketingAction } from "../types.js";
2
+ type MarketingActionsProps = {
3
+ actions: MarketingAction[];
4
+ linkComponent?: LinkComponent | "a";
5
+ size?: "sm" | "default" | "lg";
6
+ className?: string;
7
+ };
8
+ export declare function MarketingActions({ actions, linkComponent: Link, size, className, }: MarketingActionsProps): import("react").JSX.Element | null;
9
+ export {};
@@ -0,0 +1,26 @@
1
+ import { Button, cn } from "@locusgraph/components";
2
+ import { linkKey, withUniqueKeys } from "../keys.js";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ export function MarketingActions({
5
+ actions,
6
+ linkComponent: Link = "a",
7
+ size = "default",
8
+ className
9
+ }) {
10
+ if (actions.length === 0) return null;
11
+ return /*#__PURE__*/_jsx("div", {
12
+ className: cn("flex flex-wrap items-center gap-3", className),
13
+ children: withUniqueKeys(actions, linkKey).map(({
14
+ key,
15
+ item: action
16
+ }, index) => /*#__PURE__*/_jsx(Button, {
17
+ asChild: true,
18
+ size: size,
19
+ variant: action.variant ?? (index === 0 ? "default" : "outline"),
20
+ children: /*#__PURE__*/_jsx(Link, {
21
+ href: action.href,
22
+ children: action.label
23
+ })
24
+ }, key))
25
+ });
26
+ }
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from "react";
2
+ import type { LinkComponent, MarketingAction } from "../types.js";
3
+ type CtaBandProps = {
4
+ title: ReactNode;
5
+ description?: ReactNode;
6
+ actions: MarketingAction[];
7
+ linkComponent?: LinkComponent | "a";
8
+ id?: string;
9
+ className?: string;
10
+ };
11
+ export declare function CtaBand({ title, description, actions, linkComponent, id, className, }: CtaBandProps): import("react").JSX.Element;
12
+ export {};
@@ -0,0 +1,34 @@
1
+ import { cn } from "@locusgraph/components";
2
+ import { MarketingActions } from "../actions/marketing-actions.js";
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ export function CtaBand({
5
+ title,
6
+ description,
7
+ actions,
8
+ linkComponent,
9
+ id,
10
+ className
11
+ }) {
12
+ return /*#__PURE__*/_jsx("section", {
13
+ id: id,
14
+ "data-slot": "marketing-cta-band",
15
+ className: cn("w-full border-y bg-muted/35", className),
16
+ children: /*#__PURE__*/_jsxs("div", {
17
+ className: "mx-auto flex max-w-6xl flex-col items-start gap-8 px-4 py-16 sm:px-6 lg:flex-row lg:items-center lg:justify-between",
18
+ children: [/*#__PURE__*/_jsxs("div", {
19
+ className: "flex max-w-2xl flex-col gap-3",
20
+ children: [/*#__PURE__*/_jsx("h2", {
21
+ className: "text-3xl font-semibold tracking-tight",
22
+ children: title
23
+ }), description && /*#__PURE__*/_jsx("p", {
24
+ className: "text-lg text-muted-foreground",
25
+ children: description
26
+ })]
27
+ }), /*#__PURE__*/_jsx(MarketingActions, {
28
+ actions: actions,
29
+ size: "lg",
30
+ linkComponent: linkComponent
31
+ })]
32
+ })
33
+ });
34
+ }
@@ -0,0 +1,13 @@
1
+ import type { ReactNode } from "react";
2
+ import { type SectionHeadingProps } from "../section/section.js";
3
+ export type FaqItem = {
4
+ question: string;
5
+ answer: ReactNode;
6
+ };
7
+ type FaqProps = SectionHeadingProps & {
8
+ items: FaqItem[];
9
+ id?: string;
10
+ className?: string;
11
+ };
12
+ export declare function Faq({ items, ...section }: FaqProps): import("react").JSX.Element;
13
+ export {};
@@ -0,0 +1,31 @@
1
+ import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@locusgraph/components";
2
+ import { withUniqueKeys } from "../keys.js";
3
+ import { Section } from "../section/section.js";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
+ export function Faq({
6
+ items,
7
+ ...section
8
+ }) {
9
+ return /*#__PURE__*/_jsx(Section, {
10
+ slot: "marketing-faq",
11
+ ...section,
12
+ children: /*#__PURE__*/_jsx(Accordion, {
13
+ type: "single",
14
+ collapsible: true,
15
+ className: "w-full max-w-3xl",
16
+ children: withUniqueKeys(items, item => item.question).map(({
17
+ key,
18
+ item
19
+ }) => /*#__PURE__*/_jsxs(AccordionItem, {
20
+ value: key,
21
+ children: [/*#__PURE__*/_jsx(AccordionTrigger, {
22
+ className: "text-base",
23
+ children: item.question
24
+ }), /*#__PURE__*/_jsx(AccordionContent, {
25
+ className: "text-muted-foreground",
26
+ children: item.answer
27
+ })]
28
+ }, key))
29
+ })
30
+ });
31
+ }
@@ -0,0 +1,18 @@
1
+ import type { ReactNode } from "react";
2
+ import { type SectionHeadingProps } from "../section/section.js";
3
+ import type { LinkComponent, MarketingAction } from "../types.js";
4
+ export type FeatureRow = {
5
+ eyebrow?: ReactNode;
6
+ title: string;
7
+ description?: ReactNode;
8
+ media: ReactNode;
9
+ actions?: MarketingAction[];
10
+ };
11
+ type FeatureRowsProps = SectionHeadingProps & {
12
+ rows: FeatureRow[];
13
+ linkComponent?: LinkComponent | "a";
14
+ id?: string;
15
+ className?: string;
16
+ };
17
+ export declare function FeatureRows({ rows, linkComponent, ...section }: FeatureRowsProps): import("react").JSX.Element;
18
+ export {};
@@ -0,0 +1,45 @@
1
+ import { cn } from "@locusgraph/components";
2
+ import { MarketingActions } from "../actions/marketing-actions.js";
3
+ import { withUniqueKeys } from "../keys.js";
4
+ import { Section } from "../section/section.js";
5
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
+ export function FeatureRows({
7
+ rows,
8
+ linkComponent,
9
+ ...section
10
+ }) {
11
+ return /*#__PURE__*/_jsx(Section, {
12
+ slot: "marketing-feature-rows",
13
+ ...section,
14
+ children: /*#__PURE__*/_jsx("div", {
15
+ className: "flex flex-col gap-16 sm:gap-24",
16
+ children: withUniqueKeys(rows, row => row.title).map(({
17
+ key,
18
+ item: row
19
+ }, index) => /*#__PURE__*/_jsxs("div", {
20
+ "data-slot": "marketing-feature-row",
21
+ className: "grid items-center gap-8 lg:grid-cols-2 lg:gap-16",
22
+ children: [/*#__PURE__*/_jsxs("div", {
23
+ className: cn("flex flex-col gap-4", index % 2 === 1 && "lg:order-2"),
24
+ children: [row.eyebrow && /*#__PURE__*/_jsx("p", {
25
+ className: "locus-eyebrow",
26
+ children: row.eyebrow
27
+ }), /*#__PURE__*/_jsx("h3", {
28
+ className: "text-2xl font-semibold tracking-tight",
29
+ children: row.title
30
+ }), row.description && /*#__PURE__*/_jsx("p", {
31
+ className: "text-muted-foreground",
32
+ children: row.description
33
+ }), /*#__PURE__*/_jsx(MarketingActions, {
34
+ actions: row.actions ?? [],
35
+ linkComponent: linkComponent,
36
+ className: "pt-2"
37
+ })]
38
+ }), /*#__PURE__*/_jsx("div", {
39
+ className: "min-w-0 bg-card ring-1 ring-border",
40
+ children: row.media
41
+ })]
42
+ }, key))
43
+ })
44
+ });
45
+ }
@@ -0,0 +1,15 @@
1
+ import type { ReactNode } from "react";
2
+ import { type SectionHeadingProps } from "../section/section.js";
3
+ export type FeatureItem = {
4
+ title: string;
5
+ description?: ReactNode;
6
+ icon?: ReactNode;
7
+ };
8
+ type FeaturesProps = SectionHeadingProps & {
9
+ items: FeatureItem[];
10
+ columns?: 2 | 3 | 4;
11
+ id?: string;
12
+ className?: string;
13
+ };
14
+ export declare function Features({ items, columns, ...section }: FeaturesProps): import("react").JSX.Element;
15
+ export {};
@@ -0,0 +1,34 @@
1
+ import { RuleGrid, RuleGridCell } from "@locusgraph/components";
2
+ import { withUniqueKeys } from "../keys.js";
3
+ import { Section } from "../section/section.js";
4
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
+ export function Features({
6
+ items,
7
+ columns = 3,
8
+ ...section
9
+ }) {
10
+ return /*#__PURE__*/_jsx(Section, {
11
+ slot: "marketing-features",
12
+ ...section,
13
+ children: /*#__PURE__*/_jsx(RuleGrid, {
14
+ columns: columns,
15
+ children: withUniqueKeys(items, item => item.title).map(({
16
+ key,
17
+ item
18
+ }) => /*#__PURE__*/_jsxs(RuleGridCell, {
19
+ className: "gap-3",
20
+ children: [item.icon && /*#__PURE__*/_jsx("span", {
21
+ "aria-hidden": true,
22
+ className: "text-foreground [&_svg]:size-5",
23
+ children: item.icon
24
+ }), /*#__PURE__*/_jsx("h3", {
25
+ className: "text-base font-medium",
26
+ children: item.title
27
+ }), item.description && /*#__PURE__*/_jsx("p", {
28
+ className: "text-sm text-muted-foreground",
29
+ children: item.description
30
+ })]
31
+ }, key))
32
+ })
33
+ });
34
+ }
@@ -0,0 +1,18 @@
1
+ import type { ReactNode } from "react";
2
+ import type { LinkComponent, MarketingLink } from "../types.js";
3
+ export type FooterColumn = {
4
+ title: string;
5
+ links: MarketingLink[];
6
+ };
7
+ type FooterProps = {
8
+ logo?: ReactNode;
9
+ tagline?: ReactNode;
10
+ columns?: FooterColumn[];
11
+ legal?: MarketingLink[];
12
+ copyright?: ReactNode;
13
+ end?: ReactNode;
14
+ linkComponent?: LinkComponent | "a";
15
+ className?: string;
16
+ };
17
+ export declare function Footer({ logo, tagline, columns, legal, copyright, end, linkComponent: Link, className, }: FooterProps): import("react").JSX.Element;
18
+ export {};
@@ -0,0 +1,72 @@
1
+ import { cn } from "@locusgraph/components";
2
+ import { linkKey, withUniqueKeys } from "../keys.js";
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ const linkClass = "text-sm text-muted-foreground transition-colors hover:text-foreground locus-focus-ring";
5
+ export function Footer({
6
+ logo,
7
+ tagline,
8
+ columns = [],
9
+ legal = [],
10
+ copyright,
11
+ end,
12
+ linkComponent: Link = "a",
13
+ className
14
+ }) {
15
+ return /*#__PURE__*/_jsxs("footer", {
16
+ "data-slot": "marketing-footer",
17
+ className: cn("w-full border-t", className),
18
+ children: [/*#__PURE__*/_jsxs("div", {
19
+ className: "mx-auto grid max-w-6xl gap-10 px-4 py-12 sm:px-6 lg:grid-cols-[minmax(0,1fr)_minmax(0,2fr)]",
20
+ children: [(logo || tagline) && /*#__PURE__*/_jsxs("div", {
21
+ className: "flex flex-col gap-3",
22
+ children: [logo, tagline && /*#__PURE__*/_jsx("p", {
23
+ className: "max-w-xs text-sm text-muted-foreground",
24
+ children: tagline
25
+ })]
26
+ }), columns.length > 0 && /*#__PURE__*/_jsx("div", {
27
+ className: "grid grid-cols-2 gap-8 sm:grid-cols-3 lg:col-start-2",
28
+ children: withUniqueKeys(columns, column => column.title).map(({
29
+ key,
30
+ item: column
31
+ }) => /*#__PURE__*/_jsxs("nav", {
32
+ "aria-label": column.title,
33
+ className: "flex flex-col gap-3",
34
+ children: [/*#__PURE__*/_jsx("p", {
35
+ className: "locus-eyebrow",
36
+ children: column.title
37
+ }), withUniqueKeys(column.links, linkKey).map(({
38
+ key: linkId,
39
+ item: link
40
+ }) => /*#__PURE__*/_jsx(Link, {
41
+ href: link.href,
42
+ className: linkClass,
43
+ children: link.label
44
+ }, linkId))]
45
+ }, key))
46
+ })]
47
+ }), /*#__PURE__*/_jsx("div", {
48
+ className: "border-t",
49
+ children: /*#__PURE__*/_jsxs("div", {
50
+ className: "mx-auto flex max-w-6xl flex-wrap items-center gap-x-6 gap-y-3 px-4 py-6 sm:px-6",
51
+ children: [copyright && /*#__PURE__*/_jsx("p", {
52
+ className: "text-xs text-faint",
53
+ children: copyright
54
+ }), legal.length > 0 && /*#__PURE__*/_jsx("nav", {
55
+ "aria-label": "Legal",
56
+ className: "flex flex-wrap gap-x-6 gap-y-2",
57
+ children: withUniqueKeys(legal, linkKey).map(({
58
+ key,
59
+ item: link
60
+ }) => /*#__PURE__*/_jsx(Link, {
61
+ href: link.href,
62
+ className: cn(linkClass, "text-xs"),
63
+ children: link.label
64
+ }, key))
65
+ }), end && /*#__PURE__*/_jsx("div", {
66
+ className: "ml-auto",
67
+ children: end
68
+ })]
69
+ })
70
+ })]
71
+ });
72
+ }
@@ -0,0 +1,15 @@
1
+ import type { ReactNode } from "react";
2
+ import type { LinkComponent, MarketingAction } from "../types.js";
3
+ export type HeroLayout = "centered" | "split";
4
+ type HeroProps = {
5
+ title: ReactNode;
6
+ description?: ReactNode;
7
+ eyebrow?: ReactNode;
8
+ actions?: MarketingAction[];
9
+ media?: ReactNode;
10
+ layout?: HeroLayout;
11
+ linkComponent?: LinkComponent | "a";
12
+ className?: string;
13
+ };
14
+ export declare function Hero({ media, layout, className, ...text }: HeroProps): import("react").JSX.Element;
15
+ export {};
@@ -0,0 +1,55 @@
1
+ import { cn } from "@locusgraph/components";
2
+ import { MarketingActions } from "../actions/marketing-actions.js";
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
+ function HeroText({
5
+ title,
6
+ description,
7
+ eyebrow,
8
+ actions = [],
9
+ layout,
10
+ linkComponent
11
+ }) {
12
+ const centered = layout === "centered";
13
+ return /*#__PURE__*/_jsxs("div", {
14
+ className: cn("flex flex-col gap-6", centered && "mx-auto max-w-3xl items-center text-center"),
15
+ children: [eyebrow && /*#__PURE__*/_jsx("p", {
16
+ className: "locus-eyebrow",
17
+ children: eyebrow
18
+ }), /*#__PURE__*/_jsx("h1", {
19
+ className: "text-4xl font-semibold tracking-tight sm:text-5xl lg:text-6xl",
20
+ children: title
21
+ }), description && /*#__PURE__*/_jsx("p", {
22
+ className: cn("text-lg text-muted-foreground", centered && "max-w-2xl"),
23
+ children: description
24
+ }), /*#__PURE__*/_jsx(MarketingActions, {
25
+ actions: actions,
26
+ size: "lg",
27
+ linkComponent: linkComponent,
28
+ className: cn(centered && "justify-center")
29
+ })]
30
+ });
31
+ }
32
+ export function Hero({
33
+ media,
34
+ layout = "centered",
35
+ className,
36
+ ...text
37
+ }) {
38
+ const split = layout === "split";
39
+ return /*#__PURE__*/_jsx("section", {
40
+ "data-slot": "marketing-hero",
41
+ "data-layout": layout,
42
+ className: cn("mx-auto w-full max-w-6xl px-4 py-16 sm:px-6 sm:py-24", className),
43
+ children: /*#__PURE__*/_jsxs("div", {
44
+ className: cn("grid gap-12", split && media && "items-center lg:grid-cols-2"),
45
+ children: [/*#__PURE__*/_jsx(HeroText, {
46
+ layout: layout,
47
+ ...text
48
+ }), media && /*#__PURE__*/_jsx("div", {
49
+ "data-slot": "marketing-hero-media",
50
+ className: "min-w-0 ring-1 ring-border bg-card",
51
+ children: media
52
+ })]
53
+ })
54
+ });
55
+ }
@@ -0,0 +1,17 @@
1
+ export { MarketingActions } from "./actions/marketing-actions.js";
2
+ export { CtaBand } from "./cta/cta-band.js";
3
+ export { Faq, type FaqItem } from "./faq/faq.js";
4
+ export { type FeatureRow, FeatureRows } from "./features/feature-rows.js";
5
+ export { type FeatureItem, Features } from "./features/features.js";
6
+ export { Footer, type FooterColumn } from "./footer/footer.js";
7
+ export { Hero, type HeroLayout } from "./hero/hero.js";
8
+ export { Navbar } from "./navbar/navbar.js";
9
+ export { Pricing } from "./pricing/pricing.js";
10
+ export type { BillingPeriod } from "./pricing/pricing-period.js";
11
+ export type { PlanPrice, PricingPlan } from "./pricing/pricing-plan.js";
12
+ export { LogoCloud, type LogoItem } from "./proof/logo-cloud.js";
13
+ export { type Testimonial, Testimonials } from "./proof/testimonials.js";
14
+ export { Section, SectionHeading, type SectionHeadingProps } from "./section/section.js";
15
+ export * from "./types.js";
16
+ export { Waitlist } from "./waitlist/waitlist.js";
17
+ export { WaitlistForm, type WaitlistFormProps, type WaitlistResult, } from "./waitlist/waitlist-form.js";
package/dist/index.js ADDED
@@ -0,0 +1,15 @@
1
+ export { MarketingActions } from "./actions/marketing-actions.js";
2
+ export { CtaBand } from "./cta/cta-band.js";
3
+ export { Faq } from "./faq/faq.js";
4
+ export { FeatureRows } from "./features/feature-rows.js";
5
+ export { Features } from "./features/features.js";
6
+ export { Footer } from "./footer/footer.js";
7
+ export { Hero } from "./hero/hero.js";
8
+ export { Navbar } from "./navbar/navbar.js";
9
+ export { Pricing } from "./pricing/pricing.js";
10
+ export { LogoCloud } from "./proof/logo-cloud.js";
11
+ export { Testimonials } from "./proof/testimonials.js";
12
+ export { Section, SectionHeading } from "./section/section.js";
13
+ export * from "./types.js";
14
+ export { Waitlist } from "./waitlist/waitlist.js";
15
+ export { WaitlistForm } from "./waitlist/waitlist-form.js";
package/dist/keys.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import type { MarketingLink } from "./types.js";
2
+ export declare function withUniqueKeys<Item>(items: readonly Item[], keyOf: (item: Item) => string): {
3
+ key: string;
4
+ item: Item;
5
+ }[];
6
+ export declare function linkKey(link: MarketingLink): string;
package/dist/keys.js ADDED
@@ -0,0 +1,15 @@
1
+ export function withUniqueKeys(items, keyOf) {
2
+ const seen = new Map();
3
+ return items.map(item => {
4
+ const base = keyOf(item);
5
+ const count = (seen.get(base) ?? 0) + 1;
6
+ seen.set(base, count);
7
+ return {
8
+ key: count === 1 ? base : `${base}~${count}`,
9
+ item
10
+ };
11
+ });
12
+ }
13
+ export function linkKey(link) {
14
+ return `${link.label} ${link.href}`;
15
+ }
@@ -0,0 +1,7 @@
1
+ import { type ReactNode } from "react";
2
+ type NavbarMenuProps = {
3
+ label: string;
4
+ children: ReactNode;
5
+ };
6
+ export declare function NavbarMenu({ label, children }: NavbarMenuProps): import("react").JSX.Element;
7
+ export {};