@snow-labs/brutal-ui 0.1.0 → 0.2.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/dist/components/brutal/cta-section.d.ts +7 -2
- package/dist/components/brutal/cta-section.js +253 -4
- package/dist/components/brutal/cta-section.js.map +1 -1
- package/dist/components/brutal/faq.d.ts +16 -0
- package/dist/components/brutal/faq.js +166 -0
- package/dist/components/brutal/faq.js.map +1 -0
- package/dist/components/brutal/feature-grid.d.ts +5 -1
- package/dist/components/brutal/feature-grid.js +238 -4
- package/dist/components/brutal/feature-grid.js.map +1 -1
- package/dist/components/brutal/footer.d.ts +14 -1
- package/dist/components/brutal/footer.js +215 -2
- package/dist/components/brutal/footer.js.map +1 -1
- package/dist/components/brutal/hero.d.ts +8 -1
- package/dist/components/brutal/hero.js +197 -4
- package/dist/components/brutal/hero.js.map +1 -1
- package/dist/components/brutal/index.d.ts +7 -2
- package/dist/components/brutal/index.js +1393 -12
- package/dist/components/brutal/index.js.map +1 -1
- package/dist/components/brutal/integration-grid.js +105 -3
- package/dist/components/brutal/integration-grid.js.map +1 -1
- package/dist/components/brutal/logo-cloud.d.ts +17 -0
- package/dist/components/brutal/logo-cloud.js +96 -0
- package/dist/components/brutal/logo-cloud.js.map +1 -0
- package/dist/components/brutal/nav.d.ts +3 -1
- package/dist/components/brutal/nav.js +258 -3
- package/dist/components/brutal/nav.js.map +1 -1
- package/dist/components/brutal/newsletter.d.ts +14 -0
- package/dist/components/brutal/newsletter.js +172 -0
- package/dist/components/brutal/newsletter.js.map +1 -0
- package/dist/components/brutal/pricing-table.d.ts +27 -0
- package/dist/components/brutal/pricing-table.js +254 -0
- package/dist/components/brutal/pricing-table.js.map +1 -0
- package/dist/components/brutal/section-divider.d.ts +14 -0
- package/dist/components/brutal/section-divider.js +70 -0
- package/dist/components/brutal/section-divider.js.map +1 -0
- package/dist/components/brutal/section.d.ts +6 -2
- package/dist/components/brutal/section.js +67 -2
- package/dist/components/brutal/section.js.map +1 -1
- package/dist/components/brutal/stats-bar.d.ts +16 -0
- package/dist/components/brutal/stats-bar.js +130 -0
- package/dist/components/brutal/stats-bar.js.map +1 -0
- package/dist/components/brutal/testimonials.d.ts +11 -3
- package/dist/components/brutal/testimonials.js +192 -3
- package/dist/components/brutal/testimonials.js.map +1 -1
- package/dist/components/brutal/wave-divider.d.ts +2 -12
- package/dist/components/brutal/wave-divider.js +68 -1
- package/dist/components/brutal/wave-divider.js.map +1 -1
- package/dist/components/dashboard/activity-feed.d.ts +18 -0
- package/dist/components/dashboard/activity-feed.js +105 -0
- package/dist/components/dashboard/activity-feed.js.map +1 -0
- package/dist/components/dashboard/app-shell.d.ts +19 -0
- package/dist/components/dashboard/app-shell.js +206 -0
- package/dist/components/dashboard/app-shell.js.map +1 -0
- package/dist/components/dashboard/empty-state.d.ts +14 -0
- package/dist/{chunk-CY2FOBOD.js → components/dashboard/empty-state.js} +36 -5
- package/dist/components/dashboard/empty-state.js.map +1 -0
- package/dist/components/dashboard/file-upload.d.ts +12 -0
- package/dist/components/dashboard/file-upload.js +86 -0
- package/dist/components/dashboard/file-upload.js.map +1 -0
- package/dist/components/dashboard/index.d.ts +10 -0
- package/dist/components/dashboard/index.js +755 -0
- package/dist/components/dashboard/index.js.map +1 -0
- package/dist/components/dashboard/search-bar.d.ts +12 -0
- package/dist/components/dashboard/search-bar.js +49 -0
- package/dist/components/dashboard/search-bar.js.map +1 -0
- package/dist/components/dashboard/sidebar.d.ts +23 -0
- package/dist/components/dashboard/sidebar.js +113 -0
- package/dist/components/dashboard/sidebar.js.map +1 -0
- package/dist/components/dashboard/stat-card.d.ts +13 -0
- package/dist/components/dashboard/stat-card.js +55 -0
- package/dist/components/dashboard/stat-card.js.map +1 -0
- package/dist/components/dashboard/user-menu.d.ts +16 -0
- package/dist/components/dashboard/user-menu.js +179 -0
- package/dist/components/dashboard/user-menu.js.map +1 -0
- package/dist/components/dashboard/view-switcher.d.ts +12 -0
- package/dist/{chunk-OCSYB6YE.js → components/dashboard/view-switcher.js} +57 -5
- package/dist/components/dashboard/view-switcher.js.map +1 -0
- package/dist/components/ui/accordion.js +78 -2
- package/dist/components/ui/accordion.js.map +1 -1
- package/dist/components/ui/alert.js +80 -2
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/avatar.js +103 -2
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/badge.js +55 -2
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb.js +122 -2
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.js +68 -2
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/card.js +90 -2
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/checkbox.js +36 -2
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/collapsible.js +15 -1
- package/dist/components/ui/collapsible.js.map +1 -1
- package/dist/components/ui/command.js +399 -7
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.js +232 -2
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/dialog.js +201 -3
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/drawer.js +118 -2
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.js +242 -2
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/hover-card.js +47 -2
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/input-group.js +226 -5
- package/dist/components/ui/input-group.js.map +1 -1
- package/dist/components/ui/input.js +26 -2
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/label.js +23 -2
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/menubar.js +398 -3
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/navigation-menu.js +160 -2
- package/dist/components/ui/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination.js +185 -3
- package/dist/components/ui/pagination.js.map +1 -1
- package/dist/components/ui/popover.js +80 -2
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.js +80 -2
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/radio-group.js +43 -2
- package/dist/components/ui/radio-group.js.map +1 -1
- package/dist/components/ui/scroll-area.js +63 -2
- package/dist/components/ui/scroll-area.js.map +1 -1
- package/dist/components/ui/select.js +190 -2
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/separator.js +29 -2
- package/dist/components/ui/separator.js.map +1 -1
- package/dist/components/ui/sheet.js +185 -3
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/skeleton.js +21 -2
- package/dist/components/ui/skeleton.js.map +1 -1
- package/dist/components/ui/slider.js +62 -2
- package/dist/components/ui/slider.js.map +1 -1
- package/dist/components/ui/switch.js +36 -2
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.js +85 -2
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/textarea.js +24 -2
- package/dist/components/ui/textarea.js.map +1 -1
- package/dist/components/ui/toggle-group.js +101 -3
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.js +47 -2
- package/dist/components/ui/toggle.js.map +1 -1
- package/dist/components/ui/tooltip.js +65 -2
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/components/views/calendar-view.d.ts +17 -0
- package/dist/components/views/calendar-view.js +182 -0
- package/dist/components/views/calendar-view.js.map +1 -0
- package/dist/components/views/data-table.d.ts +15 -0
- package/dist/components/views/data-table.js +204 -0
- package/dist/components/views/data-table.js.map +1 -0
- package/dist/components/views/grid-view.d.ts +11 -0
- package/dist/components/views/grid-view.js +31 -0
- package/dist/components/views/grid-view.js.map +1 -0
- package/dist/components/views/index.d.ts +7 -0
- package/dist/components/views/index.js +542 -0
- package/dist/components/views/index.js.map +1 -0
- package/dist/components/views/kanban-board.d.ts +21 -0
- package/dist/components/views/kanban-board.js +153 -0
- package/dist/components/views/kanban-board.js.map +1 -0
- package/dist/components/views/list-view.d.ts +19 -0
- package/dist/components/views/list-view.js +96 -0
- package/dist/components/views/list-view.js.map +1 -0
- package/dist/index.d.ts +27 -3
- package/dist/index.js +4957 -46
- package/dist/index.js.map +1 -1
- package/dist/lib/animations.d.ts +68 -0
- package/dist/lib/animations.js +44 -0
- package/dist/lib/animations.js.map +1 -0
- package/dist/lib/utils.js +10 -1
- package/dist/lib/utils.js.map +1 -1
- package/dist/templates/dashboard.d.ts +40 -0
- package/dist/templates/dashboard.js +658 -0
- package/dist/templates/dashboard.js.map +1 -0
- package/dist/templates/index.d.ts +4 -0
- package/dist/templates/index.js +2031 -0
- package/dist/templates/index.js.map +1 -0
- package/dist/templates/saas-launch.d.ts +113 -0
- package/dist/templates/saas-launch.js +1424 -0
- package/dist/templates/saas-launch.js.map +1 -0
- package/dist/templates/studio.d.ts +72 -0
- package/dist/templates/studio.js +1129 -0
- package/dist/templates/studio.js.map +1 -0
- package/dist/theme.css +53 -0
- package/package.json +48 -2
- package/dist/chunk-3HN3QP23.js +0 -44
- package/dist/chunk-3HN3QP23.js.map +0 -1
- package/dist/chunk-4A3EQV6F.js +0 -76
- package/dist/chunk-4A3EQV6F.js.map +0 -1
- package/dist/chunk-53KZXLG4.js +0 -100
- package/dist/chunk-53KZXLG4.js.map +0 -1
- package/dist/chunk-5JCN6EQG.js +0 -60
- package/dist/chunk-5JCN6EQG.js.map +0 -1
- package/dist/chunk-5JEBZUEI.js +0 -20
- package/dist/chunk-5JEBZUEI.js.map +0 -1
- package/dist/chunk-6APJMAO7.js +0 -44
- package/dist/chunk-6APJMAO7.js.map +0 -1
- package/dist/chunk-6UKMYVHC.js +0 -187
- package/dist/chunk-6UKMYVHC.js.map +0 -1
- package/dist/chunk-7FVJ36BQ.js +0 -239
- package/dist/chunk-7FVJ36BQ.js.map +0 -1
- package/dist/chunk-7I7XYB7H.js +0 -44
- package/dist/chunk-7I7XYB7H.js.map +0 -1
- package/dist/chunk-A5KONGTJ.js +0 -49
- package/dist/chunk-A5KONGTJ.js.map +0 -1
- package/dist/chunk-AHUC5AID.js +0 -40
- package/dist/chunk-AHUC5AID.js.map +0 -1
- package/dist/chunk-B6UM5GHF.js +0 -20
- package/dist/chunk-B6UM5GHF.js.map +0 -1
- package/dist/chunk-BAUUM52T.js +0 -234
- package/dist/chunk-BAUUM52T.js.map +0 -1
- package/dist/chunk-BDWCMMEI.js +0 -82
- package/dist/chunk-BDWCMMEI.js.map +0 -1
- package/dist/chunk-BSVJVM2L.js +0 -52
- package/dist/chunk-BSVJVM2L.js.map +0 -1
- package/dist/chunk-CPVH3LD5.js +0 -86
- package/dist/chunk-CPVH3LD5.js.map +0 -1
- package/dist/chunk-CY2FOBOD.js.map +0 -1
- package/dist/chunk-DJTTNICL.js +0 -40
- package/dist/chunk-DJTTNICL.js.map +0 -1
- package/dist/chunk-F2E32OOJ.js +0 -38
- package/dist/chunk-F2E32OOJ.js.map +0 -1
- package/dist/chunk-F7YWBVP6.js +0 -141
- package/dist/chunk-F7YWBVP6.js.map +0 -1
- package/dist/chunk-G7JMADLU.js +0 -167
- package/dist/chunk-G7JMADLU.js.map +0 -1
- package/dist/chunk-GKCLNHVQ.js +0 -124
- package/dist/chunk-GKCLNHVQ.js.map +0 -1
- package/dist/chunk-GQBWKH72.js +0 -33
- package/dist/chunk-GQBWKH72.js.map +0 -1
- package/dist/chunk-H6SOU4UG.js +0 -10
- package/dist/chunk-H6SOU4UG.js.map +0 -1
- package/dist/chunk-HKJJHYFX.js +0 -115
- package/dist/chunk-HKJJHYFX.js.map +0 -1
- package/dist/chunk-IQ5WXHRB.js +0 -16
- package/dist/chunk-IQ5WXHRB.js.map +0 -1
- package/dist/chunk-ISZQ5TSG.js +0 -26
- package/dist/chunk-ISZQ5TSG.js.map +0 -1
- package/dist/chunk-JSYGVDO6.js +0 -41
- package/dist/chunk-JSYGVDO6.js.map +0 -1
- package/dist/chunk-KY6GKED2.js +0 -229
- package/dist/chunk-KY6GKED2.js.map +0 -1
- package/dist/chunk-L5OPCX6F.js +0 -33
- package/dist/chunk-L5OPCX6F.js.map +0 -1
- package/dist/chunk-LLMBKOKT.js +0 -44
- package/dist/chunk-LLMBKOKT.js.map +0 -1
- package/dist/chunk-MKBO4S2O.js +0 -48
- package/dist/chunk-MKBO4S2O.js.map +0 -1
- package/dist/chunk-NMQRI5G5.js +0 -48
- package/dist/chunk-NMQRI5G5.js.map +0 -1
- package/dist/chunk-OCSYB6YE.js.map +0 -1
- package/dist/chunk-OILW3ESA.js +0 -62
- package/dist/chunk-OILW3ESA.js.map +0 -1
- package/dist/chunk-PCVJLIUU.js +0 -125
- package/dist/chunk-PCVJLIUU.js.map +0 -1
- package/dist/chunk-RXSDAOF7.js +0 -45
- package/dist/chunk-RXSDAOF7.js.map +0 -1
- package/dist/chunk-RZD2P2BD.js +0 -77
- package/dist/chunk-RZD2P2BD.js.map +0 -1
- package/dist/chunk-UL52C2UU.js +0 -22
- package/dist/chunk-UL52C2UU.js.map +0 -1
- package/dist/chunk-USFQYYSE.js +0 -118
- package/dist/chunk-USFQYYSE.js.map +0 -1
- package/dist/chunk-UW3CSNPH.js +0 -77
- package/dist/chunk-UW3CSNPH.js.map +0 -1
- package/dist/chunk-V2ORCFEN.js +0 -156
- package/dist/chunk-V2ORCFEN.js.map +0 -1
- package/dist/chunk-WQO7NSII.js +0 -141
- package/dist/chunk-WQO7NSII.js.map +0 -1
- package/dist/chunk-WXHK2EIV.js +0 -75
- package/dist/chunk-WXHK2EIV.js.map +0 -1
- package/dist/chunk-Y6W3YC3K.js +0 -17
- package/dist/chunk-Y6W3YC3K.js.map +0 -1
- package/dist/chunk-ZRVEDPQA.js +0 -59
- package/dist/chunk-ZRVEDPQA.js.map +0 -1
|
@@ -0,0 +1,2031 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { createContext, useState, useEffect, useRef, useContext } from 'react';
|
|
4
|
+
import { clsx } from 'clsx';
|
|
5
|
+
import { twMerge } from 'tailwind-merge';
|
|
6
|
+
import { Button as Button$1 } from '@base-ui/react/button';
|
|
7
|
+
import { cva } from 'class-variance-authority';
|
|
8
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
9
|
+
import { Dialog } from '@base-ui/react/dialog';
|
|
10
|
+
import { Menu, XIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
|
|
11
|
+
import { mergeProps } from '@base-ui/react/merge-props';
|
|
12
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
13
|
+
import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
|
|
14
|
+
import { Input as Input$1 } from '@base-ui/react/input';
|
|
15
|
+
import { Menu as Menu$1 } from '@base-ui/react/menu';
|
|
16
|
+
import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
|
|
17
|
+
import { Toggle } from '@base-ui/react/toggle';
|
|
18
|
+
import { ToggleGroup as ToggleGroup$1 } from '@base-ui/react/toggle-group';
|
|
19
|
+
|
|
20
|
+
// src/components/brutal/nav.tsx
|
|
21
|
+
function cn(...inputs) {
|
|
22
|
+
return twMerge(clsx(inputs));
|
|
23
|
+
}
|
|
24
|
+
var buttonVariants = cva(
|
|
25
|
+
"group/button inline-flex shrink-0 items-center justify-center rounded-lg whitespace-nowrap font-bold transition-all duration-150 select-none outline-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
26
|
+
{
|
|
27
|
+
variants: {
|
|
28
|
+
variant: {
|
|
29
|
+
// Primary: Black bg, white text, offset shadow
|
|
30
|
+
default: "border-brutal border-foreground bg-primary text-primary-foreground shadow-brutal hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg active:translate-x-px active:translate-y-px active:shadow-brutal-sm",
|
|
31
|
+
// CTA: Mint green bg — the Bannerbear signature
|
|
32
|
+
cta: "border-brutal border-foreground bg-cta text-cta-foreground shadow-brutal hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg active:translate-x-px active:translate-y-px active:shadow-brutal-sm",
|
|
33
|
+
// Brand: Dynamic brand color bg
|
|
34
|
+
brand: "border-brutal border-foreground bg-brand text-brand-foreground shadow-brutal hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg active:translate-x-px active:translate-y-px active:shadow-brutal-sm",
|
|
35
|
+
// Outline: White bg, black border, offset shadow
|
|
36
|
+
outline: "border-brutal border-foreground bg-background text-foreground shadow-brutal hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg active:translate-x-px active:translate-y-px active:shadow-brutal-sm",
|
|
37
|
+
// Secondary: Light bg, border, smaller shadow
|
|
38
|
+
secondary: "border-brutal border-foreground bg-secondary text-secondary-foreground shadow-brutal-sm hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal active:translate-x-px active:translate-y-px active:shadow-none",
|
|
39
|
+
// Ghost: No border/shadow, subtle hover
|
|
40
|
+
ghost: "hover:bg-secondary hover:text-foreground",
|
|
41
|
+
// Link: Text only
|
|
42
|
+
link: "text-foreground underline-offset-4 hover:underline",
|
|
43
|
+
// Destructive
|
|
44
|
+
destructive: "border-brutal border-destructive bg-destructive text-destructive-foreground shadow-brutal hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg active:translate-x-px active:translate-y-px active:shadow-brutal-sm",
|
|
45
|
+
// Nav: Thin border, no shadow (for nav Sign In buttons)
|
|
46
|
+
nav: "border border-foreground bg-background text-foreground hover:bg-foreground hover:text-background"
|
|
47
|
+
},
|
|
48
|
+
size: {
|
|
49
|
+
xs: "h-7 gap-1 px-2.5 text-xs",
|
|
50
|
+
sm: "h-8 gap-1.5 px-3 text-sm",
|
|
51
|
+
default: "h-10 gap-2 px-5 text-sm",
|
|
52
|
+
lg: "h-12 gap-2 px-7 text-base",
|
|
53
|
+
xl: "h-14 gap-2.5 px-9 text-lg",
|
|
54
|
+
icon: "size-10",
|
|
55
|
+
"icon-sm": "size-8",
|
|
56
|
+
"icon-lg": "size-12"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
defaultVariants: {
|
|
60
|
+
variant: "default",
|
|
61
|
+
size: "default"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
function Button({
|
|
66
|
+
className,
|
|
67
|
+
variant = "default",
|
|
68
|
+
size = "default",
|
|
69
|
+
...props
|
|
70
|
+
}) {
|
|
71
|
+
return /* @__PURE__ */ jsx(
|
|
72
|
+
Button$1,
|
|
73
|
+
{
|
|
74
|
+
"data-slot": "button",
|
|
75
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
76
|
+
...props
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
function Sheet({ ...props }) {
|
|
81
|
+
return /* @__PURE__ */ jsx(Dialog.Root, { "data-slot": "sheet", ...props });
|
|
82
|
+
}
|
|
83
|
+
function SheetTrigger({ ...props }) {
|
|
84
|
+
return /* @__PURE__ */ jsx(Dialog.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
85
|
+
}
|
|
86
|
+
function SheetPortal({ ...props }) {
|
|
87
|
+
return /* @__PURE__ */ jsx(Dialog.Portal, { "data-slot": "sheet-portal", ...props });
|
|
88
|
+
}
|
|
89
|
+
function SheetOverlay({ className, ...props }) {
|
|
90
|
+
return /* @__PURE__ */ jsx(
|
|
91
|
+
Dialog.Backdrop,
|
|
92
|
+
{
|
|
93
|
+
"data-slot": "sheet-overlay",
|
|
94
|
+
className: cn(
|
|
95
|
+
"fixed inset-0 z-50 bg-black/60 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0",
|
|
96
|
+
className
|
|
97
|
+
),
|
|
98
|
+
...props
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
function SheetContent({
|
|
103
|
+
className,
|
|
104
|
+
children,
|
|
105
|
+
side = "right",
|
|
106
|
+
showCloseButton = true,
|
|
107
|
+
...props
|
|
108
|
+
}) {
|
|
109
|
+
return /* @__PURE__ */ jsxs(SheetPortal, { children: [
|
|
110
|
+
/* @__PURE__ */ jsx(SheetOverlay, {}),
|
|
111
|
+
/* @__PURE__ */ jsxs(
|
|
112
|
+
Dialog.Popup,
|
|
113
|
+
{
|
|
114
|
+
"data-slot": "sheet-content",
|
|
115
|
+
"data-side": side,
|
|
116
|
+
className: cn(
|
|
117
|
+
"fixed z-50 flex flex-col gap-4 border-brutal border-foreground bg-background bg-clip-padding text-sm shadow-brutal-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",
|
|
118
|
+
className
|
|
119
|
+
),
|
|
120
|
+
...props,
|
|
121
|
+
children: [
|
|
122
|
+
children,
|
|
123
|
+
showCloseButton && /* @__PURE__ */ jsxs(
|
|
124
|
+
Dialog.Close,
|
|
125
|
+
{
|
|
126
|
+
"data-slot": "sheet-close",
|
|
127
|
+
render: /* @__PURE__ */ jsx(
|
|
128
|
+
Button,
|
|
129
|
+
{
|
|
130
|
+
variant: "ghost",
|
|
131
|
+
className: "absolute top-3 right-3",
|
|
132
|
+
size: "icon-sm"
|
|
133
|
+
}
|
|
134
|
+
),
|
|
135
|
+
children: [
|
|
136
|
+
/* @__PURE__ */ jsx(
|
|
137
|
+
XIcon,
|
|
138
|
+
{}
|
|
139
|
+
),
|
|
140
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
] });
|
|
148
|
+
}
|
|
149
|
+
function SheetTitle({ className, ...props }) {
|
|
150
|
+
return /* @__PURE__ */ jsx(
|
|
151
|
+
Dialog.Title,
|
|
152
|
+
{
|
|
153
|
+
"data-slot": "sheet-title",
|
|
154
|
+
className: cn("text-base font-bold text-foreground", className),
|
|
155
|
+
...props
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
function BrutalNav({
|
|
160
|
+
logo,
|
|
161
|
+
links,
|
|
162
|
+
ctaText = "Sign In",
|
|
163
|
+
ctaHref = "/admin",
|
|
164
|
+
variant = "solid",
|
|
165
|
+
className
|
|
166
|
+
}) {
|
|
167
|
+
const [mobileOpen, setMobileOpen] = useState(false);
|
|
168
|
+
const [isScrolled, setIsScrolled] = useState(false);
|
|
169
|
+
useEffect(() => {
|
|
170
|
+
if (variant !== "transparent") return;
|
|
171
|
+
const onScroll = () => setIsScrolled(window.scrollY > 20);
|
|
172
|
+
onScroll();
|
|
173
|
+
window.addEventListener("scroll", onScroll, { passive: true });
|
|
174
|
+
return () => window.removeEventListener("scroll", onScroll);
|
|
175
|
+
}, [variant]);
|
|
176
|
+
const variantStyles = {
|
|
177
|
+
solid: "sticky top-0 z-50 w-full border-b-brutal border-foreground bg-brand",
|
|
178
|
+
transparent: cn(
|
|
179
|
+
"fixed top-0 left-0 right-0 z-50 w-full transition-all duration-200",
|
|
180
|
+
isScrolled ? "bg-background/80 text-foreground backdrop-blur-md border-b border-foreground/10" : "bg-transparent text-white"
|
|
181
|
+
),
|
|
182
|
+
"floating-pill": "fixed top-0 left-0 right-0 z-50 mx-4 mt-4 rounded-full border-brutal border-foreground bg-background shadow-brutal"
|
|
183
|
+
};
|
|
184
|
+
return /* @__PURE__ */ jsx("header", { className: cn(variantStyles[variant], className), children: /* @__PURE__ */ jsxs(
|
|
185
|
+
"div",
|
|
186
|
+
{
|
|
187
|
+
className: cn(
|
|
188
|
+
"flex h-14 items-center justify-between px-6",
|
|
189
|
+
variant === "floating-pill" ? "mx-auto max-w-7xl" : "brutal-container"
|
|
190
|
+
),
|
|
191
|
+
children: [
|
|
192
|
+
/* @__PURE__ */ jsx("a", { href: "/", className: "flex items-center gap-2 text-lg font-black", children: logo }),
|
|
193
|
+
/* @__PURE__ */ jsx("nav", { className: "hidden items-center gap-1 md:flex", children: links.map((link) => /* @__PURE__ */ jsxs(
|
|
194
|
+
"a",
|
|
195
|
+
{
|
|
196
|
+
href: link.href,
|
|
197
|
+
className: cn(
|
|
198
|
+
"relative rounded-md px-3 py-1.5 text-sm font-bold transition-colors hover:opacity-70",
|
|
199
|
+
link.active && "bg-foreground/10"
|
|
200
|
+
),
|
|
201
|
+
children: [
|
|
202
|
+
link.label,
|
|
203
|
+
link.badge && /* @__PURE__ */ jsx("span", { className: "absolute -top-1 -right-1 border border-foreground bg-background px-1 font-mono text-[9px] font-bold uppercase text-foreground", children: link.badge })
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
link.href
|
|
207
|
+
)) }),
|
|
208
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
209
|
+
/* @__PURE__ */ jsx(
|
|
210
|
+
Button,
|
|
211
|
+
{
|
|
212
|
+
variant: "nav",
|
|
213
|
+
size: "sm",
|
|
214
|
+
render: /* @__PURE__ */ jsx("a", { href: ctaHref }),
|
|
215
|
+
className: "hidden md:inline-flex",
|
|
216
|
+
children: ctaText
|
|
217
|
+
}
|
|
218
|
+
),
|
|
219
|
+
/* @__PURE__ */ jsxs(Sheet, { open: mobileOpen, onOpenChange: setMobileOpen, children: [
|
|
220
|
+
/* @__PURE__ */ jsxs(
|
|
221
|
+
SheetTrigger,
|
|
222
|
+
{
|
|
223
|
+
render: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon-sm", className: "md:hidden" }),
|
|
224
|
+
children: [
|
|
225
|
+
/* @__PURE__ */ jsx(Menu, { className: "size-5" }),
|
|
226
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Menu" })
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
),
|
|
230
|
+
/* @__PURE__ */ jsxs(SheetContent, { side: "right", showCloseButton: true, children: [
|
|
231
|
+
/* @__PURE__ */ jsx(SheetTitle, { children: "Navigation" }),
|
|
232
|
+
/* @__PURE__ */ jsxs("nav", { className: "flex flex-col gap-1 px-2 pt-4", children: [
|
|
233
|
+
links.map((link) => /* @__PURE__ */ jsxs(
|
|
234
|
+
"a",
|
|
235
|
+
{
|
|
236
|
+
href: link.href,
|
|
237
|
+
onClick: () => setMobileOpen(false),
|
|
238
|
+
className: cn(
|
|
239
|
+
"flex items-center gap-2 rounded-md px-3 py-2.5 text-sm font-bold transition-colors hover:bg-foreground/5",
|
|
240
|
+
link.active && "bg-foreground/10"
|
|
241
|
+
),
|
|
242
|
+
children: [
|
|
243
|
+
link.label,
|
|
244
|
+
link.badge && /* @__PURE__ */ jsx("span", { className: "border border-foreground bg-background px-1 font-mono text-[9px] font-bold uppercase text-foreground", children: link.badge })
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
link.href
|
|
248
|
+
)),
|
|
249
|
+
/* @__PURE__ */ jsx("div", { className: "mt-4 border-t border-foreground/10 pt-4", children: /* @__PURE__ */ jsx(
|
|
250
|
+
Button,
|
|
251
|
+
{
|
|
252
|
+
variant: "default",
|
|
253
|
+
size: "default",
|
|
254
|
+
render: /* @__PURE__ */ jsx("a", { href: ctaHref }),
|
|
255
|
+
className: "w-full",
|
|
256
|
+
children: ctaText
|
|
257
|
+
}
|
|
258
|
+
) })
|
|
259
|
+
] })
|
|
260
|
+
] })
|
|
261
|
+
] })
|
|
262
|
+
] })
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
) });
|
|
266
|
+
}
|
|
267
|
+
var colorMap = {
|
|
268
|
+
white: "bg-background text-foreground",
|
|
269
|
+
brand: "bg-brand",
|
|
270
|
+
"brand-muted": "bg-brand-muted text-foreground",
|
|
271
|
+
blue: "bg-section-blue",
|
|
272
|
+
gray: "bg-section-gray text-foreground",
|
|
273
|
+
cream: "bg-section-cream text-foreground",
|
|
274
|
+
black: "bg-foreground text-background",
|
|
275
|
+
cta: "bg-cta"
|
|
276
|
+
};
|
|
277
|
+
var containerMap = {
|
|
278
|
+
sm: "brutal-container-sm",
|
|
279
|
+
default: "brutal-container",
|
|
280
|
+
lg: "brutal-container-lg"
|
|
281
|
+
};
|
|
282
|
+
var paddingMap = {
|
|
283
|
+
sm: "brutal-section-sm",
|
|
284
|
+
default: "brutal-section",
|
|
285
|
+
lg: "brutal-section py-28 sm:py-36 md:py-44"
|
|
286
|
+
};
|
|
287
|
+
var patternMap = {
|
|
288
|
+
dots: "brutal-dots",
|
|
289
|
+
stripes: "brutal-stripes",
|
|
290
|
+
noise: "brutal-noise",
|
|
291
|
+
grain: "brutal-grain",
|
|
292
|
+
crosshatch: "brutal-crosshatch",
|
|
293
|
+
"grid-dots": "brutal-grid-dots",
|
|
294
|
+
"gradient-mesh": "brutal-gradient-mesh",
|
|
295
|
+
none: ""
|
|
296
|
+
};
|
|
297
|
+
function BrutalSection({
|
|
298
|
+
children,
|
|
299
|
+
color = "white",
|
|
300
|
+
className,
|
|
301
|
+
containerSize = "default",
|
|
302
|
+
padding = "default",
|
|
303
|
+
pattern,
|
|
304
|
+
dots = false,
|
|
305
|
+
stripes = false,
|
|
306
|
+
id
|
|
307
|
+
}) {
|
|
308
|
+
const resolvedPattern = pattern ?? (dots ? "dots" : void 0) ?? (stripes ? "stripes" : void 0) ?? "none";
|
|
309
|
+
return /* @__PURE__ */ jsx(
|
|
310
|
+
"section",
|
|
311
|
+
{
|
|
312
|
+
id,
|
|
313
|
+
className: cn(
|
|
314
|
+
paddingMap[padding],
|
|
315
|
+
colorMap[color],
|
|
316
|
+
patternMap[resolvedPattern],
|
|
317
|
+
className
|
|
318
|
+
),
|
|
319
|
+
children: /* @__PURE__ */ jsx("div", { className: containerMap[containerSize], children })
|
|
320
|
+
}
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
function BrutalHero({
|
|
324
|
+
variant = "split",
|
|
325
|
+
badge,
|
|
326
|
+
badgePosition = "above",
|
|
327
|
+
headline,
|
|
328
|
+
description,
|
|
329
|
+
ctaText,
|
|
330
|
+
ctaHref = "#",
|
|
331
|
+
ctaVariant = "cta",
|
|
332
|
+
secondaryText,
|
|
333
|
+
secondaryHref,
|
|
334
|
+
visual,
|
|
335
|
+
color = "brand",
|
|
336
|
+
pattern,
|
|
337
|
+
proof,
|
|
338
|
+
className
|
|
339
|
+
}) {
|
|
340
|
+
const badgeElement = badge && /* @__PURE__ */ jsx(
|
|
341
|
+
"div",
|
|
342
|
+
{
|
|
343
|
+
className: cn(
|
|
344
|
+
"inline-flex w-fit border-brutal border-foreground bg-background px-3 py-1 font-mono text-xs font-bold uppercase tracking-widest text-foreground shadow-brutal-sm",
|
|
345
|
+
badgePosition === "floating" && "absolute -top-3 left-6 z-10"
|
|
346
|
+
),
|
|
347
|
+
children: badge
|
|
348
|
+
}
|
|
349
|
+
);
|
|
350
|
+
const textContent = /* @__PURE__ */ jsxs("div", { className: cn(
|
|
351
|
+
"flex flex-col gap-6",
|
|
352
|
+
variant === "centered" && "items-center text-center"
|
|
353
|
+
), children: [
|
|
354
|
+
badgePosition === "above" && badgeElement,
|
|
355
|
+
/* @__PURE__ */ jsxs("h1", { className: cn(
|
|
356
|
+
"brutal-display text-balance",
|
|
357
|
+
variant === "centered" && "mx-auto max-w-4xl"
|
|
358
|
+
), children: [
|
|
359
|
+
badgePosition === "inline" && badgeElement,
|
|
360
|
+
headline
|
|
361
|
+
] }),
|
|
362
|
+
/* @__PURE__ */ jsx("p", { className: cn(
|
|
363
|
+
"brutal-body-lg max-w-lg opacity-80",
|
|
364
|
+
variant === "centered" && "mx-auto"
|
|
365
|
+
), children: description }),
|
|
366
|
+
/* @__PURE__ */ jsxs("div", { className: cn(
|
|
367
|
+
"flex flex-wrap gap-4",
|
|
368
|
+
variant === "centered" && "justify-center"
|
|
369
|
+
), children: [
|
|
370
|
+
/* @__PURE__ */ jsx(Button, { variant: ctaVariant, size: "xl", render: /* @__PURE__ */ jsx("a", { href: ctaHref }), children: ctaText }),
|
|
371
|
+
secondaryText && /* @__PURE__ */ jsx(Button, { variant: "outline", size: "xl", render: /* @__PURE__ */ jsx("a", { href: secondaryHref || "#" }), children: secondaryText })
|
|
372
|
+
] }),
|
|
373
|
+
proof && /* @__PURE__ */ jsxs("p", { className: "flex items-center gap-2 text-sm font-medium opacity-70", children: [
|
|
374
|
+
/* @__PURE__ */ jsx("span", { className: "inline-flex size-5 items-center justify-center border border-current text-xs", children: "\u2713" }),
|
|
375
|
+
proof
|
|
376
|
+
] })
|
|
377
|
+
] });
|
|
378
|
+
const layoutClass = {
|
|
379
|
+
split: "grid items-center gap-12 lg:grid-cols-2 lg:gap-16",
|
|
380
|
+
centered: "flex flex-col items-center gap-12",
|
|
381
|
+
overlap: "relative",
|
|
382
|
+
asymmetric: "grid items-center gap-12 lg:grid-cols-[3fr_2fr] lg:gap-16"
|
|
383
|
+
}[variant];
|
|
384
|
+
return /* @__PURE__ */ jsxs(BrutalSection, { color, padding: "lg", pattern, className: cn("relative", className), children: [
|
|
385
|
+
badgePosition === "floating" && badgeElement,
|
|
386
|
+
/* @__PURE__ */ jsxs("div", { className: layoutClass, children: [
|
|
387
|
+
textContent,
|
|
388
|
+
visual && variant === "overlap" ? /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center opacity-20", children: visual }) : visual ? /* @__PURE__ */ jsx("div", { className: cn(
|
|
389
|
+
"flex items-center justify-center",
|
|
390
|
+
variant === "asymmetric" && "-rotate-2 transform"
|
|
391
|
+
), children: visual }) : null
|
|
392
|
+
] })
|
|
393
|
+
] });
|
|
394
|
+
}
|
|
395
|
+
var paths = {
|
|
396
|
+
wave: "M0,64 C160,128 320,0 480,64 C640,128 800,0 960,64 L960,160 L0,160 Z",
|
|
397
|
+
jagged: "M0,80 L80,40 L160,80 L240,20 L320,80 L400,40 L480,80 L560,20 L640,80 L720,40 L800,80 L880,20 L960,80 L960,160 L0,160 Z",
|
|
398
|
+
curve: "M0,128 Q480,-32 960,128 L960,160 L0,160 Z",
|
|
399
|
+
castle: "M0,80 L0,60 L80,60 L80,80 L120,80 L120,40 L200,40 L200,80 L240,80 L240,60 L320,60 L320,80 L360,80 L360,40 L440,40 L440,80 L480,80 L480,60 L560,60 L560,80 L600,80 L600,40 L680,40 L680,80 L720,80 L720,60 L800,60 L800,80 L840,80 L840,40 L920,40 L920,80 L960,80 L960,160 L0,160 Z",
|
|
400
|
+
"torn-paper": "M0,70 C30,65 45,85 80,72 C115,59 130,90 170,78 C210,66 225,88 270,75 C315,62 340,92 380,79 C420,66 445,86 490,73 C535,60 560,88 600,76 C640,64 665,90 710,77 C755,64 780,84 830,71 C875,58 900,86 960,80 L960,160 L0,160 Z",
|
|
401
|
+
"brush-stroke": "M0,90 C80,50 120,100 200,60 C280,20 360,110 480,70 C600,30 640,100 720,80 C800,60 880,100 960,70 L960,160 L0,160 Z",
|
|
402
|
+
geometric: "M0,100 L120,60 L240,80 L360,40 L480,90 L600,50 L720,70 L840,30 L960,80 L960,160 L0,160 Z",
|
|
403
|
+
blob: "M0,80 C80,120 160,40 280,80 C400,120 440,30 560,70 C680,110 760,40 960,80 L960,160 L0,160 Z",
|
|
404
|
+
diagonal: "M0,160 L960,60 L960,160 Z",
|
|
405
|
+
zigzag: "M0,80 L60,40 L120,80 L180,40 L240,80 L300,40 L360,80 L420,40 L480,80 L540,40 L600,80 L660,40 L720,80 L780,40 L840,80 L900,40 L960,80 L960,160 L0,160 Z",
|
|
406
|
+
"hand-drawn": "M0,72 C20,68 35,82 60,75 C85,68 95,84 125,76 C155,68 170,85 200,77 C230,69 245,83 275,75 C305,67 320,86 350,78 C380,70 395,82 425,74 C455,66 470,84 500,76 C530,68 545,83 575,75 C605,67 620,85 650,77 C680,69 695,82 725,74 C755,66 770,84 800,76 C830,68 845,83 875,75 C905,67 920,82 960,74 L960,160 L0,160 Z"
|
|
407
|
+
};
|
|
408
|
+
function SectionDivider({
|
|
409
|
+
from = "hsl(var(--background))",
|
|
410
|
+
to = "hsl(var(--background))",
|
|
411
|
+
flip = false,
|
|
412
|
+
className = "",
|
|
413
|
+
variant = "wave",
|
|
414
|
+
layers = false
|
|
415
|
+
}) {
|
|
416
|
+
return /* @__PURE__ */ jsxs(
|
|
417
|
+
"div",
|
|
418
|
+
{
|
|
419
|
+
className: cn("relative -my-px w-full overflow-hidden", className),
|
|
420
|
+
style: { backgroundColor: from },
|
|
421
|
+
children: [
|
|
422
|
+
layers && /* @__PURE__ */ jsx(
|
|
423
|
+
"svg",
|
|
424
|
+
{
|
|
425
|
+
viewBox: "0 0 960 160",
|
|
426
|
+
preserveAspectRatio: "none",
|
|
427
|
+
className: "absolute inset-0 block w-full opacity-30",
|
|
428
|
+
style: {
|
|
429
|
+
height: "clamp(40px, 6vw, 80px)",
|
|
430
|
+
transform: flip ? "scaleY(-1) translateY(4px)" : "translateY(-4px)"
|
|
431
|
+
},
|
|
432
|
+
children: /* @__PURE__ */ jsx("path", { d: paths[variant], fill: to })
|
|
433
|
+
}
|
|
434
|
+
),
|
|
435
|
+
/* @__PURE__ */ jsx(
|
|
436
|
+
"svg",
|
|
437
|
+
{
|
|
438
|
+
viewBox: "0 0 960 160",
|
|
439
|
+
preserveAspectRatio: "none",
|
|
440
|
+
className: "relative block w-full",
|
|
441
|
+
style: {
|
|
442
|
+
height: "clamp(40px, 6vw, 80px)",
|
|
443
|
+
transform: flip ? "scaleY(-1)" : void 0
|
|
444
|
+
},
|
|
445
|
+
children: /* @__PURE__ */ jsx("path", { d: paths[variant], fill: to })
|
|
446
|
+
}
|
|
447
|
+
)
|
|
448
|
+
]
|
|
449
|
+
}
|
|
450
|
+
);
|
|
451
|
+
}
|
|
452
|
+
function LogoCloud({
|
|
453
|
+
title,
|
|
454
|
+
logos,
|
|
455
|
+
marquee = false,
|
|
456
|
+
color = "white",
|
|
457
|
+
className
|
|
458
|
+
}) {
|
|
459
|
+
const logoElements = logos.map((logo) => {
|
|
460
|
+
const img = /* @__PURE__ */ jsx(
|
|
461
|
+
"img",
|
|
462
|
+
{
|
|
463
|
+
src: logo.src,
|
|
464
|
+
alt: logo.alt,
|
|
465
|
+
className: "h-8 max-w-[120px] object-contain opacity-50 grayscale transition-all duration-200 hover:opacity-100 hover:grayscale-0"
|
|
466
|
+
},
|
|
467
|
+
logo.alt
|
|
468
|
+
);
|
|
469
|
+
return logo.href ? /* @__PURE__ */ jsx("a", { href: logo.href, className: "flex items-center px-6", children: img }, logo.alt) : /* @__PURE__ */ jsx("div", { className: "flex items-center px-6", children: img }, logo.alt);
|
|
470
|
+
});
|
|
471
|
+
return /* @__PURE__ */ jsxs(BrutalSection, { color, padding: "sm", className, children: [
|
|
472
|
+
title && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-6 text-center text-muted-foreground", children: title }),
|
|
473
|
+
marquee ? /* @__PURE__ */ jsx("div", { className: "relative overflow-hidden", children: /* @__PURE__ */ jsxs("div", { className: "flex animate-marquee", children: [
|
|
474
|
+
logoElements,
|
|
475
|
+
logoElements
|
|
476
|
+
] }) }) : /* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center justify-center gap-8", children: logoElements })
|
|
477
|
+
] });
|
|
478
|
+
}
|
|
479
|
+
function Card({
|
|
480
|
+
className,
|
|
481
|
+
...props
|
|
482
|
+
}) {
|
|
483
|
+
return /* @__PURE__ */ jsx(
|
|
484
|
+
"div",
|
|
485
|
+
{
|
|
486
|
+
"data-slot": "card",
|
|
487
|
+
className: cn(
|
|
488
|
+
"group/card flex flex-col gap-4 rounded-lg border-brutal border-foreground bg-card p-5 text-card-foreground shadow-brutal transition-all duration-150 hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg",
|
|
489
|
+
className
|
|
490
|
+
),
|
|
491
|
+
...props
|
|
492
|
+
}
|
|
493
|
+
);
|
|
494
|
+
}
|
|
495
|
+
function CardHeader({ className, ...props }) {
|
|
496
|
+
return /* @__PURE__ */ jsx(
|
|
497
|
+
"div",
|
|
498
|
+
{
|
|
499
|
+
"data-slot": "card-header",
|
|
500
|
+
className: cn("flex flex-col gap-1", className),
|
|
501
|
+
...props
|
|
502
|
+
}
|
|
503
|
+
);
|
|
504
|
+
}
|
|
505
|
+
function CardTitle({ className, ...props }) {
|
|
506
|
+
return /* @__PURE__ */ jsx(
|
|
507
|
+
"div",
|
|
508
|
+
{
|
|
509
|
+
"data-slot": "card-title",
|
|
510
|
+
className: cn("text-lg font-bold leading-snug", className),
|
|
511
|
+
...props
|
|
512
|
+
}
|
|
513
|
+
);
|
|
514
|
+
}
|
|
515
|
+
function CardDescription({ className, ...props }) {
|
|
516
|
+
return /* @__PURE__ */ jsx(
|
|
517
|
+
"div",
|
|
518
|
+
{
|
|
519
|
+
"data-slot": "card-description",
|
|
520
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
521
|
+
...props
|
|
522
|
+
}
|
|
523
|
+
);
|
|
524
|
+
}
|
|
525
|
+
function CardContent({ className, ...props }) {
|
|
526
|
+
return /* @__PURE__ */ jsx(
|
|
527
|
+
"div",
|
|
528
|
+
{
|
|
529
|
+
"data-slot": "card-content",
|
|
530
|
+
className: cn("", className),
|
|
531
|
+
...props
|
|
532
|
+
}
|
|
533
|
+
);
|
|
534
|
+
}
|
|
535
|
+
var accentColors = [
|
|
536
|
+
"hsl(var(--brand))",
|
|
537
|
+
"hsl(var(--cta))",
|
|
538
|
+
"hsl(var(--section-blue))",
|
|
539
|
+
"hsl(12 85% 62%)",
|
|
540
|
+
"hsl(260 55% 68%)",
|
|
541
|
+
"hsl(25 75% 48%)"
|
|
542
|
+
];
|
|
543
|
+
var colMap = {
|
|
544
|
+
2: "sm:grid-cols-2",
|
|
545
|
+
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
546
|
+
4: "sm:grid-cols-2 lg:grid-cols-4"
|
|
547
|
+
};
|
|
548
|
+
function BrutalFeatureGrid({
|
|
549
|
+
variant = "icon-top",
|
|
550
|
+
badge,
|
|
551
|
+
headline,
|
|
552
|
+
description,
|
|
553
|
+
features,
|
|
554
|
+
columns = 3,
|
|
555
|
+
color = "white",
|
|
556
|
+
className
|
|
557
|
+
}) {
|
|
558
|
+
return /* @__PURE__ */ jsxs(BrutalSection, { color, className, children: [
|
|
559
|
+
/* @__PURE__ */ jsxs("div", { className: "mb-12 max-w-2xl", children: [
|
|
560
|
+
badge && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-4 text-muted-foreground", children: badge }),
|
|
561
|
+
/* @__PURE__ */ jsx("h2", { className: "brutal-h2 mb-4", children: headline }),
|
|
562
|
+
description && /* @__PURE__ */ jsx("p", { className: "brutal-body text-muted-foreground", children: description })
|
|
563
|
+
] }),
|
|
564
|
+
/* @__PURE__ */ jsx(
|
|
565
|
+
"div",
|
|
566
|
+
{
|
|
567
|
+
className: cn(
|
|
568
|
+
"grid gap-6",
|
|
569
|
+
variant === "bento" ? "sm:grid-cols-2 lg:grid-cols-3" : colMap[columns]
|
|
570
|
+
),
|
|
571
|
+
children: features.map((feature, i) => /* @__PURE__ */ jsx(
|
|
572
|
+
FeatureCard,
|
|
573
|
+
{
|
|
574
|
+
feature,
|
|
575
|
+
variant,
|
|
576
|
+
index: i,
|
|
577
|
+
accentColor: accentColors[i % accentColors.length]
|
|
578
|
+
},
|
|
579
|
+
feature.title
|
|
580
|
+
))
|
|
581
|
+
}
|
|
582
|
+
)
|
|
583
|
+
] });
|
|
584
|
+
}
|
|
585
|
+
function FeatureCard({
|
|
586
|
+
feature,
|
|
587
|
+
variant,
|
|
588
|
+
index,
|
|
589
|
+
accentColor
|
|
590
|
+
}) {
|
|
591
|
+
const isBentoFeatured = variant === "bento" && feature.featured;
|
|
592
|
+
if (variant === "icon-left") {
|
|
593
|
+
return /* @__PURE__ */ jsxs(
|
|
594
|
+
"div",
|
|
595
|
+
{
|
|
596
|
+
className: "flex gap-4 border-brutal border-foreground bg-background p-5 shadow-brutal transition-all duration-150 hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg",
|
|
597
|
+
style: { borderLeftColor: accentColor, borderLeftWidth: "4px" },
|
|
598
|
+
children: [
|
|
599
|
+
feature.icon && /* @__PURE__ */ jsx("div", { className: "flex size-12 shrink-0 items-center justify-center border-brutal border-foreground bg-brand-muted text-2xl shadow-brutal-sm", children: feature.icon }),
|
|
600
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
601
|
+
feature.stat && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-1 text-brand", children: feature.stat }),
|
|
602
|
+
/* @__PURE__ */ jsx("h3", { className: "brutal-h4 mb-1", children: feature.title }),
|
|
603
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: feature.description })
|
|
604
|
+
] })
|
|
605
|
+
]
|
|
606
|
+
}
|
|
607
|
+
);
|
|
608
|
+
}
|
|
609
|
+
if (variant === "numbered") {
|
|
610
|
+
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
611
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
612
|
+
/* @__PURE__ */ jsx(
|
|
613
|
+
"span",
|
|
614
|
+
{
|
|
615
|
+
className: "brutal-display mb-2 block opacity-15",
|
|
616
|
+
style: { color: accentColor },
|
|
617
|
+
children: String(index + 1).padStart(2, "0")
|
|
618
|
+
}
|
|
619
|
+
),
|
|
620
|
+
feature.stat && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-1 text-brand", children: feature.stat }),
|
|
621
|
+
/* @__PURE__ */ jsx(CardTitle, { children: feature.title })
|
|
622
|
+
] }),
|
|
623
|
+
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(CardDescription, { children: feature.description }) })
|
|
624
|
+
] });
|
|
625
|
+
}
|
|
626
|
+
return /* @__PURE__ */ jsxs(
|
|
627
|
+
Card,
|
|
628
|
+
{
|
|
629
|
+
className: cn(
|
|
630
|
+
isBentoFeatured && "sm:col-span-2 bg-brand-muted"
|
|
631
|
+
),
|
|
632
|
+
children: [
|
|
633
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
634
|
+
feature.icon && /* @__PURE__ */ jsx(
|
|
635
|
+
"div",
|
|
636
|
+
{
|
|
637
|
+
className: "mb-2 inline-flex size-12 items-center justify-center border-brutal border-foreground bg-brand-muted text-2xl shadow-brutal-sm",
|
|
638
|
+
style: { borderBottomColor: accentColor },
|
|
639
|
+
children: feature.icon
|
|
640
|
+
}
|
|
641
|
+
),
|
|
642
|
+
feature.stat && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-1 text-brand", children: feature.stat }),
|
|
643
|
+
/* @__PURE__ */ jsx(CardTitle, { children: feature.title })
|
|
644
|
+
] }),
|
|
645
|
+
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(CardDescription, { children: feature.description }) })
|
|
646
|
+
]
|
|
647
|
+
}
|
|
648
|
+
);
|
|
649
|
+
}
|
|
650
|
+
function useCountUp(target, inView) {
|
|
651
|
+
const [count, setCount] = useState(0);
|
|
652
|
+
useEffect(() => {
|
|
653
|
+
if (!inView) return;
|
|
654
|
+
let frame;
|
|
655
|
+
const duration = 1500;
|
|
656
|
+
const start = performance.now();
|
|
657
|
+
function animate(now) {
|
|
658
|
+
const elapsed = now - start;
|
|
659
|
+
const progress = Math.min(elapsed / duration, 1);
|
|
660
|
+
const eased = 1 - Math.pow(1 - progress, 3);
|
|
661
|
+
setCount(Math.round(eased * target));
|
|
662
|
+
if (progress < 1) frame = requestAnimationFrame(animate);
|
|
663
|
+
}
|
|
664
|
+
frame = requestAnimationFrame(animate);
|
|
665
|
+
return () => cancelAnimationFrame(frame);
|
|
666
|
+
}, [target, inView]);
|
|
667
|
+
return count;
|
|
668
|
+
}
|
|
669
|
+
function StatItem({ stat, inView }) {
|
|
670
|
+
const count = useCountUp(stat.value, inView);
|
|
671
|
+
return /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
672
|
+
/* @__PURE__ */ jsxs("p", { className: "brutal-display", children: [
|
|
673
|
+
stat.prefix,
|
|
674
|
+
count.toLocaleString(),
|
|
675
|
+
stat.suffix
|
|
676
|
+
] }),
|
|
677
|
+
/* @__PURE__ */ jsx("p", { className: "brutal-label mt-2 text-muted-foreground", children: stat.label })
|
|
678
|
+
] });
|
|
679
|
+
}
|
|
680
|
+
function StatsBar({ stats, color = "white", className }) {
|
|
681
|
+
const ref = useRef(null);
|
|
682
|
+
const [inView, setInView] = useState(false);
|
|
683
|
+
useEffect(() => {
|
|
684
|
+
if (!ref.current) return;
|
|
685
|
+
const observer = new IntersectionObserver(
|
|
686
|
+
([entry]) => {
|
|
687
|
+
if (entry.isIntersecting) {
|
|
688
|
+
setInView(true);
|
|
689
|
+
observer.disconnect();
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
{ threshold: 0.3 }
|
|
693
|
+
);
|
|
694
|
+
observer.observe(ref.current);
|
|
695
|
+
return () => observer.disconnect();
|
|
696
|
+
}, []);
|
|
697
|
+
return /* @__PURE__ */ jsx(BrutalSection, { color, padding: "sm", className, children: /* @__PURE__ */ jsx(
|
|
698
|
+
"div",
|
|
699
|
+
{
|
|
700
|
+
ref,
|
|
701
|
+
className: cn(
|
|
702
|
+
"grid gap-8",
|
|
703
|
+
stats.length === 2 && "grid-cols-2",
|
|
704
|
+
stats.length === 3 && "grid-cols-3",
|
|
705
|
+
stats.length >= 4 && "grid-cols-2 sm:grid-cols-4"
|
|
706
|
+
),
|
|
707
|
+
children: stats.map((stat) => /* @__PURE__ */ jsx(StatItem, { stat, inView }, stat.label))
|
|
708
|
+
}
|
|
709
|
+
) });
|
|
710
|
+
}
|
|
711
|
+
function StarRating({ rating }) {
|
|
712
|
+
return /* @__PURE__ */ jsx("div", { className: "flex gap-0.5", children: Array.from({ length: 5 }, (_, i) => /* @__PURE__ */ jsx(
|
|
713
|
+
"span",
|
|
714
|
+
{
|
|
715
|
+
className: cn(
|
|
716
|
+
"text-sm",
|
|
717
|
+
i < rating ? "text-amber-500" : "text-foreground/20"
|
|
718
|
+
),
|
|
719
|
+
children: "\u2605"
|
|
720
|
+
},
|
|
721
|
+
i
|
|
722
|
+
)) });
|
|
723
|
+
}
|
|
724
|
+
function TestimonialCard({
|
|
725
|
+
t,
|
|
726
|
+
className
|
|
727
|
+
}) {
|
|
728
|
+
return /* @__PURE__ */ jsxs(
|
|
729
|
+
"div",
|
|
730
|
+
{
|
|
731
|
+
className: cn(
|
|
732
|
+
"relative break-inside-avoid border-brutal border-foreground bg-background p-5 text-foreground shadow-brutal transition-all duration-150 hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-brutal-lg",
|
|
733
|
+
className
|
|
734
|
+
),
|
|
735
|
+
children: [
|
|
736
|
+
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute top-3 right-4 select-none font-serif text-5xl leading-none text-foreground/[0.06]", children: "\u201C" }),
|
|
737
|
+
t.rating && /* @__PURE__ */ jsx("div", { className: "mb-3", children: /* @__PURE__ */ jsx(StarRating, { rating: t.rating }) }),
|
|
738
|
+
/* @__PURE__ */ jsx("p", { className: "relative mb-4 text-sm leading-relaxed", children: t.text }),
|
|
739
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
740
|
+
t.avatar ? /* @__PURE__ */ jsx(
|
|
741
|
+
"img",
|
|
742
|
+
{
|
|
743
|
+
src: t.avatar,
|
|
744
|
+
alt: t.name,
|
|
745
|
+
className: "size-9 border-2 object-cover",
|
|
746
|
+
style: { borderColor: "hsl(var(--brand))" }
|
|
747
|
+
}
|
|
748
|
+
) : /* @__PURE__ */ jsx(
|
|
749
|
+
"div",
|
|
750
|
+
{
|
|
751
|
+
className: "flex size-9 items-center justify-center border-2 font-bold text-brand-foreground",
|
|
752
|
+
style: {
|
|
753
|
+
borderColor: "hsl(var(--brand))",
|
|
754
|
+
backgroundColor: "hsl(var(--brand))"
|
|
755
|
+
},
|
|
756
|
+
children: t.name[0]
|
|
757
|
+
}
|
|
758
|
+
),
|
|
759
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
760
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-bold", children: t.name }),
|
|
761
|
+
(t.role || t.company) && /* @__PURE__ */ jsxs("p", { className: "truncate text-xs text-muted-foreground", children: [
|
|
762
|
+
t.role,
|
|
763
|
+
t.role && t.company && " \xB7 ",
|
|
764
|
+
t.company
|
|
765
|
+
] }),
|
|
766
|
+
!t.role && !t.company && t.handle && /* @__PURE__ */ jsx("p", { className: "font-mono text-xs text-muted-foreground", children: t.handle })
|
|
767
|
+
] }),
|
|
768
|
+
t.companyLogo && /* @__PURE__ */ jsx(
|
|
769
|
+
"img",
|
|
770
|
+
{
|
|
771
|
+
src: t.companyLogo,
|
|
772
|
+
alt: t.company || "",
|
|
773
|
+
className: "h-5 object-contain opacity-60"
|
|
774
|
+
}
|
|
775
|
+
)
|
|
776
|
+
] })
|
|
777
|
+
]
|
|
778
|
+
}
|
|
779
|
+
);
|
|
780
|
+
}
|
|
781
|
+
function MasonryLayout({ testimonials }) {
|
|
782
|
+
return /* @__PURE__ */ jsx("div", { className: "columns-1 gap-6 sm:columns-2 lg:columns-3", children: testimonials.map((t, i) => /* @__PURE__ */ jsx(TestimonialCard, { t, className: "mb-6" }, i)) });
|
|
783
|
+
}
|
|
784
|
+
function FeaturedGridLayout({
|
|
785
|
+
testimonials
|
|
786
|
+
}) {
|
|
787
|
+
const featured = testimonials.find((t) => t.featured) || testimonials[0];
|
|
788
|
+
const rest = testimonials.filter((t) => t !== featured);
|
|
789
|
+
return /* @__PURE__ */ jsxs("div", { className: "grid gap-6 lg:grid-cols-2", children: [
|
|
790
|
+
featured && /* @__PURE__ */ jsx(
|
|
791
|
+
TestimonialCard,
|
|
792
|
+
{
|
|
793
|
+
t: featured,
|
|
794
|
+
className: "flex flex-col justify-between p-8 lg:row-span-2"
|
|
795
|
+
}
|
|
796
|
+
),
|
|
797
|
+
rest.map((t, i) => /* @__PURE__ */ jsx(TestimonialCard, { t }, i))
|
|
798
|
+
] });
|
|
799
|
+
}
|
|
800
|
+
function CarouselLayout({ testimonials }) {
|
|
801
|
+
return /* @__PURE__ */ jsx("div", { className: "-mx-6 flex snap-x snap-mandatory gap-6 overflow-x-auto px-6 pb-4", children: testimonials.map((t, i) => /* @__PURE__ */ jsx(
|
|
802
|
+
TestimonialCard,
|
|
803
|
+
{
|
|
804
|
+
t,
|
|
805
|
+
className: "w-80 flex-none snap-center"
|
|
806
|
+
},
|
|
807
|
+
i
|
|
808
|
+
)) });
|
|
809
|
+
}
|
|
810
|
+
function WallOfLoveLayout({ testimonials }) {
|
|
811
|
+
return /* @__PURE__ */ jsxs("div", { className: "relative max-h-[600px] overflow-hidden", children: [
|
|
812
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4", children: testimonials.map((t, i) => /* @__PURE__ */ jsx(TestimonialCard, { t }, i)) }),
|
|
813
|
+
/* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-x-0 bottom-0 h-32 bg-gradient-to-t from-background to-transparent" })
|
|
814
|
+
] });
|
|
815
|
+
}
|
|
816
|
+
function BrutalTestimonials({
|
|
817
|
+
badge,
|
|
818
|
+
headline,
|
|
819
|
+
testimonials,
|
|
820
|
+
variant = "masonry",
|
|
821
|
+
color = "blue",
|
|
822
|
+
pattern,
|
|
823
|
+
className
|
|
824
|
+
}) {
|
|
825
|
+
return /* @__PURE__ */ jsxs(BrutalSection, { color, pattern, className, children: [
|
|
826
|
+
(headline || badge) && /* @__PURE__ */ jsxs("div", { className: "mb-12 text-center", children: [
|
|
827
|
+
badge && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-4 opacity-70", children: badge }),
|
|
828
|
+
headline && /* @__PURE__ */ jsx("h2", { className: "brutal-h2", children: headline })
|
|
829
|
+
] }),
|
|
830
|
+
variant === "masonry" && /* @__PURE__ */ jsx(MasonryLayout, { testimonials }),
|
|
831
|
+
variant === "featured-grid" && /* @__PURE__ */ jsx(FeaturedGridLayout, { testimonials }),
|
|
832
|
+
variant === "carousel" && /* @__PURE__ */ jsx(CarouselLayout, { testimonials }),
|
|
833
|
+
variant === "wall-of-love" && /* @__PURE__ */ jsx(WallOfLoveLayout, { testimonials })
|
|
834
|
+
] });
|
|
835
|
+
}
|
|
836
|
+
var badgeVariants = cva(
|
|
837
|
+
"group/badge inline-flex w-fit shrink-0 items-center justify-center gap-1 rounded-md whitespace-nowrap font-bold transition-all [&>svg]:pointer-events-none [&>svg]:size-3!",
|
|
838
|
+
{
|
|
839
|
+
variants: {
|
|
840
|
+
variant: {
|
|
841
|
+
default: "border-brutal border-foreground bg-primary px-3 py-1 text-xs text-primary-foreground shadow-brutal-sm",
|
|
842
|
+
secondary: "border-brutal border-foreground bg-secondary px-3 py-1 text-xs text-secondary-foreground shadow-brutal-sm",
|
|
843
|
+
brand: "border-brutal border-foreground bg-brand px-3 py-1 text-xs text-brand-foreground shadow-brutal-sm",
|
|
844
|
+
cta: "border-brutal border-foreground bg-cta px-3 py-1 text-xs text-cta-foreground shadow-brutal-sm",
|
|
845
|
+
outline: "border-brutal border-foreground bg-background px-3 py-1 text-xs text-foreground",
|
|
846
|
+
destructive: "border-brutal border-destructive bg-destructive/10 px-3 py-1 text-xs text-destructive",
|
|
847
|
+
ghost: "px-2 py-0.5 text-xs text-muted-foreground"
|
|
848
|
+
}
|
|
849
|
+
},
|
|
850
|
+
defaultVariants: {
|
|
851
|
+
variant: "default"
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
);
|
|
855
|
+
function Badge({
|
|
856
|
+
className,
|
|
857
|
+
variant = "default",
|
|
858
|
+
render,
|
|
859
|
+
...props
|
|
860
|
+
}) {
|
|
861
|
+
return useRender({
|
|
862
|
+
defaultTagName: "span",
|
|
863
|
+
props: mergeProps(
|
|
864
|
+
{
|
|
865
|
+
className: cn(badgeVariants({ variant }), className)
|
|
866
|
+
},
|
|
867
|
+
props
|
|
868
|
+
),
|
|
869
|
+
render,
|
|
870
|
+
state: {
|
|
871
|
+
slot: "badge",
|
|
872
|
+
variant
|
|
873
|
+
}
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
function PricingTable({
|
|
877
|
+
badge,
|
|
878
|
+
headline,
|
|
879
|
+
description,
|
|
880
|
+
tiers,
|
|
881
|
+
popularIndex,
|
|
882
|
+
billingToggle = true,
|
|
883
|
+
color = "white",
|
|
884
|
+
className
|
|
885
|
+
}) {
|
|
886
|
+
const [annual, setAnnual] = useState(false);
|
|
887
|
+
return /* @__PURE__ */ jsxs(BrutalSection, { color, className, children: [
|
|
888
|
+
(headline || badge) && /* @__PURE__ */ jsxs("div", { className: "mb-8 text-center", children: [
|
|
889
|
+
badge && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-4 text-muted-foreground", children: badge }),
|
|
890
|
+
headline && /* @__PURE__ */ jsx("h2", { className: "brutal-h2 mb-4", children: headline }),
|
|
891
|
+
description && /* @__PURE__ */ jsx("p", { className: "brutal-body mx-auto max-w-lg text-muted-foreground", children: description })
|
|
892
|
+
] }),
|
|
893
|
+
billingToggle && /* @__PURE__ */ jsxs("div", { className: "mb-10 flex items-center justify-center gap-3", children: [
|
|
894
|
+
/* @__PURE__ */ jsx("span", { className: cn("text-sm font-bold", !annual && "text-brand"), children: "Monthly" }),
|
|
895
|
+
/* @__PURE__ */ jsx(
|
|
896
|
+
"button",
|
|
897
|
+
{
|
|
898
|
+
onClick: () => setAnnual(!annual),
|
|
899
|
+
className: cn(
|
|
900
|
+
"relative h-8 w-14 border-brutal border-foreground transition-colors",
|
|
901
|
+
annual ? "bg-brand" : "bg-secondary"
|
|
902
|
+
),
|
|
903
|
+
children: /* @__PURE__ */ jsx(
|
|
904
|
+
"span",
|
|
905
|
+
{
|
|
906
|
+
className: cn(
|
|
907
|
+
"absolute top-1 size-6 border border-foreground bg-background transition-transform",
|
|
908
|
+
annual ? "left-7" : "left-1"
|
|
909
|
+
)
|
|
910
|
+
}
|
|
911
|
+
)
|
|
912
|
+
}
|
|
913
|
+
),
|
|
914
|
+
/* @__PURE__ */ jsx("span", { className: cn("text-sm font-bold", annual && "text-brand"), children: "Annual" }),
|
|
915
|
+
annual && /* @__PURE__ */ jsx(Badge, { variant: "cta", children: "Save 20%" })
|
|
916
|
+
] }),
|
|
917
|
+
/* @__PURE__ */ jsx("div", { className: cn(
|
|
918
|
+
"grid gap-6",
|
|
919
|
+
tiers.length === 2 && "mx-auto max-w-2xl sm:grid-cols-2",
|
|
920
|
+
tiers.length === 3 && "lg:grid-cols-3",
|
|
921
|
+
tiers.length >= 4 && "sm:grid-cols-2 lg:grid-cols-4"
|
|
922
|
+
), children: tiers.map((tier, i) => {
|
|
923
|
+
const isPopular = i === popularIndex;
|
|
924
|
+
const price = annual ? tier.price.annual : tier.price.monthly;
|
|
925
|
+
return /* @__PURE__ */ jsxs(
|
|
926
|
+
"div",
|
|
927
|
+
{
|
|
928
|
+
className: cn(
|
|
929
|
+
"relative flex flex-col border-brutal border-foreground bg-background p-6 shadow-brutal",
|
|
930
|
+
isPopular && "border-brand shadow-brutal-lg ring-2 ring-brand z-10 scale-105"
|
|
931
|
+
),
|
|
932
|
+
children: [
|
|
933
|
+
isPopular && /* @__PURE__ */ jsx(Badge, { variant: "brand", className: "absolute -top-3 left-1/2 -translate-x-1/2", children: "Popular" }),
|
|
934
|
+
/* @__PURE__ */ jsx("h3", { className: "brutal-h4 mb-1", children: tier.name }),
|
|
935
|
+
tier.description && /* @__PURE__ */ jsx("p", { className: "mb-4 text-sm text-muted-foreground", children: tier.description }),
|
|
936
|
+
/* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
937
|
+
/* @__PURE__ */ jsx("span", { className: "brutal-h1", children: typeof price === "number" ? `$${price}` : price }),
|
|
938
|
+
typeof price === "number" && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: "/mo" })
|
|
939
|
+
] }),
|
|
940
|
+
/* @__PURE__ */ jsx("ul", { className: "mb-8 flex flex-1 flex-col gap-2", children: tier.features.map((feature) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2 text-sm", children: [
|
|
941
|
+
/* @__PURE__ */ jsx("span", { className: "mt-0.5 text-brand", children: "\u2713" }),
|
|
942
|
+
feature
|
|
943
|
+
] }, feature)) }),
|
|
944
|
+
/* @__PURE__ */ jsx(
|
|
945
|
+
Button,
|
|
946
|
+
{
|
|
947
|
+
variant: tier.ctaVariant || (isPopular ? "cta" : "outline"),
|
|
948
|
+
size: "lg",
|
|
949
|
+
className: "w-full",
|
|
950
|
+
render: tier.ctaHref ? /* @__PURE__ */ jsx("a", { href: tier.ctaHref }) : void 0,
|
|
951
|
+
children: tier.ctaText
|
|
952
|
+
}
|
|
953
|
+
)
|
|
954
|
+
]
|
|
955
|
+
},
|
|
956
|
+
tier.name
|
|
957
|
+
);
|
|
958
|
+
}) })
|
|
959
|
+
] });
|
|
960
|
+
}
|
|
961
|
+
function Accordion({ className, ...props }) {
|
|
962
|
+
return /* @__PURE__ */ jsx(
|
|
963
|
+
Accordion$1.Root,
|
|
964
|
+
{
|
|
965
|
+
"data-slot": "accordion",
|
|
966
|
+
className: cn("flex w-full flex-col", className),
|
|
967
|
+
...props
|
|
968
|
+
}
|
|
969
|
+
);
|
|
970
|
+
}
|
|
971
|
+
function AccordionItem({ className, ...props }) {
|
|
972
|
+
return /* @__PURE__ */ jsx(
|
|
973
|
+
Accordion$1.Item,
|
|
974
|
+
{
|
|
975
|
+
"data-slot": "accordion-item",
|
|
976
|
+
className: cn("border-brutal border-foreground rounded-lg mb-2 px-3", className),
|
|
977
|
+
...props
|
|
978
|
+
}
|
|
979
|
+
);
|
|
980
|
+
}
|
|
981
|
+
function AccordionTrigger({
|
|
982
|
+
className,
|
|
983
|
+
children,
|
|
984
|
+
...props
|
|
985
|
+
}) {
|
|
986
|
+
return /* @__PURE__ */ jsx(Accordion$1.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
987
|
+
Accordion$1.Trigger,
|
|
988
|
+
{
|
|
989
|
+
"data-slot": "accordion-trigger",
|
|
990
|
+
className: cn(
|
|
991
|
+
"group/accordion-trigger relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-left text-sm font-bold transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 aria-disabled:pointer-events-none aria-disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground",
|
|
992
|
+
className
|
|
993
|
+
),
|
|
994
|
+
...props,
|
|
995
|
+
children: [
|
|
996
|
+
children,
|
|
997
|
+
/* @__PURE__ */ jsx(ChevronDownIcon, { "data-slot": "accordion-trigger-icon", className: "pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden" }),
|
|
998
|
+
/* @__PURE__ */ jsx(ChevronUpIcon, { "data-slot": "accordion-trigger-icon", className: "pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline" })
|
|
999
|
+
]
|
|
1000
|
+
}
|
|
1001
|
+
) });
|
|
1002
|
+
}
|
|
1003
|
+
function AccordionContent({
|
|
1004
|
+
className,
|
|
1005
|
+
children,
|
|
1006
|
+
...props
|
|
1007
|
+
}) {
|
|
1008
|
+
return /* @__PURE__ */ jsx(
|
|
1009
|
+
Accordion$1.Panel,
|
|
1010
|
+
{
|
|
1011
|
+
"data-slot": "accordion-content",
|
|
1012
|
+
className: "overflow-hidden text-sm data-open:animate-accordion-down data-closed:animate-accordion-up",
|
|
1013
|
+
...props,
|
|
1014
|
+
children: /* @__PURE__ */ jsx(
|
|
1015
|
+
"div",
|
|
1016
|
+
{
|
|
1017
|
+
className: cn(
|
|
1018
|
+
"h-(--accordion-panel-height) pt-0 pb-2.5 data-ending-style:h-0 data-starting-style:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",
|
|
1019
|
+
className
|
|
1020
|
+
),
|
|
1021
|
+
children
|
|
1022
|
+
}
|
|
1023
|
+
)
|
|
1024
|
+
}
|
|
1025
|
+
);
|
|
1026
|
+
}
|
|
1027
|
+
function FAQ({
|
|
1028
|
+
badge,
|
|
1029
|
+
headline,
|
|
1030
|
+
items,
|
|
1031
|
+
color = "white",
|
|
1032
|
+
className
|
|
1033
|
+
}) {
|
|
1034
|
+
return /* @__PURE__ */ jsxs(BrutalSection, { color, className, children: [
|
|
1035
|
+
(headline || badge) && /* @__PURE__ */ jsxs("div", { className: "mb-10 max-w-2xl", children: [
|
|
1036
|
+
badge && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-4 text-muted-foreground", children: badge }),
|
|
1037
|
+
headline && /* @__PURE__ */ jsx("h2", { className: "brutal-h2", children: headline })
|
|
1038
|
+
] }),
|
|
1039
|
+
/* @__PURE__ */ jsx(Accordion, { className: "mx-auto max-w-2xl", children: items.map((item, i) => /* @__PURE__ */ jsxs(
|
|
1040
|
+
AccordionItem,
|
|
1041
|
+
{
|
|
1042
|
+
value: `faq-${i}`,
|
|
1043
|
+
className: cn(
|
|
1044
|
+
"border-brutal border-foreground mb-3 px-5",
|
|
1045
|
+
i % 2 === 0 ? "bg-background" : "bg-secondary"
|
|
1046
|
+
),
|
|
1047
|
+
children: [
|
|
1048
|
+
/* @__PURE__ */ jsx(AccordionTrigger, { className: "brutal-h4 py-4 text-left", children: item.question }),
|
|
1049
|
+
/* @__PURE__ */ jsx(AccordionContent, { className: "brutal-body pb-4 text-muted-foreground", children: item.answer })
|
|
1050
|
+
]
|
|
1051
|
+
},
|
|
1052
|
+
i
|
|
1053
|
+
)) })
|
|
1054
|
+
] });
|
|
1055
|
+
}
|
|
1056
|
+
function CTAButtons({
|
|
1057
|
+
ctaText,
|
|
1058
|
+
ctaHref = "#",
|
|
1059
|
+
ctaVariant = "cta",
|
|
1060
|
+
secondaryText,
|
|
1061
|
+
secondaryHref
|
|
1062
|
+
}) {
|
|
1063
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-center gap-4", children: [
|
|
1064
|
+
/* @__PURE__ */ jsx(
|
|
1065
|
+
Button,
|
|
1066
|
+
{
|
|
1067
|
+
variant: ctaVariant,
|
|
1068
|
+
size: "xl",
|
|
1069
|
+
render: /* @__PURE__ */ jsx("a", { href: ctaHref }),
|
|
1070
|
+
children: ctaText
|
|
1071
|
+
}
|
|
1072
|
+
),
|
|
1073
|
+
secondaryText && /* @__PURE__ */ jsx(
|
|
1074
|
+
Button,
|
|
1075
|
+
{
|
|
1076
|
+
variant: "outline",
|
|
1077
|
+
size: "lg",
|
|
1078
|
+
render: /* @__PURE__ */ jsx("a", { href: secondaryHref || "#" }),
|
|
1079
|
+
children: secondaryText
|
|
1080
|
+
}
|
|
1081
|
+
)
|
|
1082
|
+
] });
|
|
1083
|
+
}
|
|
1084
|
+
function CenteredCTA(props) {
|
|
1085
|
+
return /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-2xl text-center", children: [
|
|
1086
|
+
/* @__PURE__ */ jsx("h2", { className: "brutal-h1 mb-6", children: props.headline }),
|
|
1087
|
+
props.description && /* @__PURE__ */ jsx("p", { className: "brutal-body mb-4 opacity-80", children: props.description }),
|
|
1088
|
+
props.stats && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-8 opacity-60", children: props.stats }),
|
|
1089
|
+
/* @__PURE__ */ jsx(
|
|
1090
|
+
CTAButtons,
|
|
1091
|
+
{
|
|
1092
|
+
ctaText: props.ctaText,
|
|
1093
|
+
ctaHref: props.ctaHref,
|
|
1094
|
+
ctaVariant: props.ctaVariant,
|
|
1095
|
+
secondaryText: props.secondaryText,
|
|
1096
|
+
secondaryHref: props.secondaryHref
|
|
1097
|
+
}
|
|
1098
|
+
)
|
|
1099
|
+
] });
|
|
1100
|
+
}
|
|
1101
|
+
function SplitCTA(props) {
|
|
1102
|
+
return /* @__PURE__ */ jsxs("div", { className: "grid items-center gap-12 lg:grid-cols-2", children: [
|
|
1103
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
1104
|
+
/* @__PURE__ */ jsx("h2", { className: "brutal-h1 mb-6", children: props.headline }),
|
|
1105
|
+
props.description && /* @__PURE__ */ jsx("p", { className: "brutal-body mb-4 opacity-80", children: props.description }),
|
|
1106
|
+
props.stats && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-8 opacity-60", children: props.stats }),
|
|
1107
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-4", children: [
|
|
1108
|
+
/* @__PURE__ */ jsx(
|
|
1109
|
+
Button,
|
|
1110
|
+
{
|
|
1111
|
+
variant: props.ctaVariant || "cta",
|
|
1112
|
+
size: "xl",
|
|
1113
|
+
render: /* @__PURE__ */ jsx("a", { href: props.ctaHref || "#" }),
|
|
1114
|
+
children: props.ctaText
|
|
1115
|
+
}
|
|
1116
|
+
),
|
|
1117
|
+
props.secondaryText && /* @__PURE__ */ jsx(
|
|
1118
|
+
Button,
|
|
1119
|
+
{
|
|
1120
|
+
variant: "outline",
|
|
1121
|
+
size: "lg",
|
|
1122
|
+
render: /* @__PURE__ */ jsx("a", { href: props.secondaryHref || "#" }),
|
|
1123
|
+
children: props.secondaryText
|
|
1124
|
+
}
|
|
1125
|
+
)
|
|
1126
|
+
] })
|
|
1127
|
+
] }),
|
|
1128
|
+
props.visual && /* @__PURE__ */ jsx("div", { children: props.visual })
|
|
1129
|
+
] });
|
|
1130
|
+
}
|
|
1131
|
+
function WithVisualCTA(props) {
|
|
1132
|
+
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
1133
|
+
props.visual && /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center opacity-10", children: props.visual }),
|
|
1134
|
+
/* @__PURE__ */ jsxs("div", { className: "relative mx-auto max-w-2xl text-center", children: [
|
|
1135
|
+
/* @__PURE__ */ jsx("h2", { className: "brutal-h1 mb-6", children: props.headline }),
|
|
1136
|
+
props.description && /* @__PURE__ */ jsx("p", { className: "brutal-body mb-4 opacity-80", children: props.description }),
|
|
1137
|
+
props.stats && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-8 opacity-60", children: props.stats }),
|
|
1138
|
+
/* @__PURE__ */ jsx(
|
|
1139
|
+
CTAButtons,
|
|
1140
|
+
{
|
|
1141
|
+
ctaText: props.ctaText,
|
|
1142
|
+
ctaHref: props.ctaHref,
|
|
1143
|
+
ctaVariant: props.ctaVariant,
|
|
1144
|
+
secondaryText: props.secondaryText,
|
|
1145
|
+
secondaryHref: props.secondaryHref
|
|
1146
|
+
}
|
|
1147
|
+
)
|
|
1148
|
+
] })
|
|
1149
|
+
] });
|
|
1150
|
+
}
|
|
1151
|
+
function FloatingCardCTA(props) {
|
|
1152
|
+
return /* @__PURE__ */ jsx("div", { className: "relative z-10 -mt-16", children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-2xl border-brutal border-foreground bg-background p-8 text-center text-foreground shadow-brutal-lg", children: [
|
|
1153
|
+
/* @__PURE__ */ jsx("h2", { className: "brutal-h1 mb-6", children: props.headline }),
|
|
1154
|
+
props.description && /* @__PURE__ */ jsx("p", { className: "brutal-body mb-4 opacity-80", children: props.description }),
|
|
1155
|
+
props.stats && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-8 opacity-60", children: props.stats }),
|
|
1156
|
+
/* @__PURE__ */ jsx(
|
|
1157
|
+
CTAButtons,
|
|
1158
|
+
{
|
|
1159
|
+
ctaText: props.ctaText,
|
|
1160
|
+
ctaHref: props.ctaHref,
|
|
1161
|
+
ctaVariant: props.ctaVariant,
|
|
1162
|
+
secondaryText: props.secondaryText,
|
|
1163
|
+
secondaryHref: props.secondaryHref
|
|
1164
|
+
}
|
|
1165
|
+
)
|
|
1166
|
+
] }) });
|
|
1167
|
+
}
|
|
1168
|
+
function BrutalCTA({
|
|
1169
|
+
variant = "centered",
|
|
1170
|
+
color = "black",
|
|
1171
|
+
className,
|
|
1172
|
+
pattern,
|
|
1173
|
+
...props
|
|
1174
|
+
}) {
|
|
1175
|
+
if (variant === "floating-card") {
|
|
1176
|
+
return /* @__PURE__ */ jsx("div", { className: cn("brutal-container px-6", className), children: /* @__PURE__ */ jsx(FloatingCardCTA, { ...props, variant, color }) });
|
|
1177
|
+
}
|
|
1178
|
+
return /* @__PURE__ */ jsxs(BrutalSection, { color, pattern, className, children: [
|
|
1179
|
+
variant === "centered" && /* @__PURE__ */ jsx(CenteredCTA, { ...props, variant, color }),
|
|
1180
|
+
variant === "split" && /* @__PURE__ */ jsx(SplitCTA, { ...props, variant, color }),
|
|
1181
|
+
variant === "with-visual" && /* @__PURE__ */ jsx(WithVisualCTA, { ...props, variant, color })
|
|
1182
|
+
] });
|
|
1183
|
+
}
|
|
1184
|
+
function Input({ className, type, ...props }) {
|
|
1185
|
+
return /* @__PURE__ */ jsx(
|
|
1186
|
+
Input$1,
|
|
1187
|
+
{
|
|
1188
|
+
type,
|
|
1189
|
+
"data-slot": "input",
|
|
1190
|
+
className: cn(
|
|
1191
|
+
"h-10 w-full min-w-0 rounded-lg border-brutal border-foreground bg-background px-3 py-2 text-base font-medium shadow-brutal-sm transition-all outline-none placeholder:text-muted-foreground focus:shadow-brutal focus:-translate-x-0.5 focus:-translate-y-0.5 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive md:text-sm",
|
|
1192
|
+
className
|
|
1193
|
+
),
|
|
1194
|
+
...props
|
|
1195
|
+
}
|
|
1196
|
+
);
|
|
1197
|
+
}
|
|
1198
|
+
function SocialsRow({
|
|
1199
|
+
socials
|
|
1200
|
+
}) {
|
|
1201
|
+
const items = [
|
|
1202
|
+
{ key: "twitter", label: "Twitter", url: socials.twitter },
|
|
1203
|
+
{ key: "github", label: "GitHub", url: socials.github },
|
|
1204
|
+
{ key: "linkedin", label: "LinkedIn", url: socials.linkedin },
|
|
1205
|
+
{ key: "discord", label: "Discord", url: socials.discord }
|
|
1206
|
+
].filter((s) => s.url);
|
|
1207
|
+
if (items.length === 0) return null;
|
|
1208
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center gap-4", children: items.map((s) => /* @__PURE__ */ jsx(
|
|
1209
|
+
"a",
|
|
1210
|
+
{
|
|
1211
|
+
href: s.url,
|
|
1212
|
+
target: "_blank",
|
|
1213
|
+
rel: "noopener noreferrer",
|
|
1214
|
+
className: "text-sm font-bold transition-colors hover:text-muted-foreground",
|
|
1215
|
+
children: s.label
|
|
1216
|
+
},
|
|
1217
|
+
s.key
|
|
1218
|
+
)) });
|
|
1219
|
+
}
|
|
1220
|
+
function NewsletterSection({
|
|
1221
|
+
newsletter
|
|
1222
|
+
}) {
|
|
1223
|
+
return /* @__PURE__ */ jsx("div", { className: "mb-10 border-b-brutal border-foreground pb-10", children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-lg text-center", children: [
|
|
1224
|
+
/* @__PURE__ */ jsx("h3", { className: "brutal-h4 mb-2", children: newsletter.headline || "Stay in the loop" }),
|
|
1225
|
+
newsletter.description && /* @__PURE__ */ jsx("p", { className: "brutal-caption mb-4", children: newsletter.description }),
|
|
1226
|
+
/* @__PURE__ */ jsxs(
|
|
1227
|
+
"form",
|
|
1228
|
+
{
|
|
1229
|
+
onSubmit: (e) => e.preventDefault(),
|
|
1230
|
+
className: "flex gap-2",
|
|
1231
|
+
children: [
|
|
1232
|
+
/* @__PURE__ */ jsx(
|
|
1233
|
+
Input,
|
|
1234
|
+
{
|
|
1235
|
+
type: "email",
|
|
1236
|
+
placeholder: newsletter.placeholder || "you@email.com",
|
|
1237
|
+
className: "flex-1"
|
|
1238
|
+
}
|
|
1239
|
+
),
|
|
1240
|
+
/* @__PURE__ */ jsx(Button, { variant: "default", size: "default", type: "submit", children: newsletter.buttonText || "Subscribe" })
|
|
1241
|
+
]
|
|
1242
|
+
}
|
|
1243
|
+
)
|
|
1244
|
+
] }) });
|
|
1245
|
+
}
|
|
1246
|
+
function MegaContent({
|
|
1247
|
+
logo,
|
|
1248
|
+
tagline,
|
|
1249
|
+
columns,
|
|
1250
|
+
socials
|
|
1251
|
+
}) {
|
|
1252
|
+
return /* @__PURE__ */ jsxs("div", { className: "mb-10 flex flex-col gap-8 sm:flex-row sm:items-start sm:justify-between", children: [
|
|
1253
|
+
/* @__PURE__ */ jsxs("div", { className: "max-w-xs", children: [
|
|
1254
|
+
/* @__PURE__ */ jsx("div", { className: "mb-2 text-xl font-black", children: logo }),
|
|
1255
|
+
tagline && /* @__PURE__ */ jsx("p", { className: "mb-4 text-sm text-muted-foreground", children: tagline }),
|
|
1256
|
+
socials && /* @__PURE__ */ jsx(SocialsRow, { socials })
|
|
1257
|
+
] }),
|
|
1258
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 gap-8 sm:grid-cols-3 md:gap-12", children: columns.map((col) => /* @__PURE__ */ jsxs("div", { children: [
|
|
1259
|
+
/* @__PURE__ */ jsx("h3", { className: "brutal-label mb-3 text-muted-foreground", children: col.title }),
|
|
1260
|
+
/* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-2", children: col.links.map((link) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
|
|
1261
|
+
"a",
|
|
1262
|
+
{
|
|
1263
|
+
href: link.href,
|
|
1264
|
+
className: "text-sm font-medium transition-colors hover:text-muted-foreground",
|
|
1265
|
+
children: link.label
|
|
1266
|
+
}
|
|
1267
|
+
) }, link.href)) })
|
|
1268
|
+
] }, col.title)) })
|
|
1269
|
+
] });
|
|
1270
|
+
}
|
|
1271
|
+
function MinimalContent({
|
|
1272
|
+
logo,
|
|
1273
|
+
columns,
|
|
1274
|
+
socials
|
|
1275
|
+
}) {
|
|
1276
|
+
const allLinks = columns.flatMap((col) => col.links);
|
|
1277
|
+
return /* @__PURE__ */ jsxs("div", { className: "mb-6 flex flex-col items-center gap-4 sm:flex-row sm:justify-between", children: [
|
|
1278
|
+
/* @__PURE__ */ jsx("div", { className: "text-xl font-black", children: logo }),
|
|
1279
|
+
/* @__PURE__ */ jsx("nav", { className: "flex flex-wrap items-center justify-center gap-x-6 gap-y-2", children: allLinks.map((link) => /* @__PURE__ */ jsx(
|
|
1280
|
+
"a",
|
|
1281
|
+
{
|
|
1282
|
+
href: link.href,
|
|
1283
|
+
className: "text-sm font-medium transition-colors hover:text-muted-foreground",
|
|
1284
|
+
children: link.label
|
|
1285
|
+
},
|
|
1286
|
+
link.href
|
|
1287
|
+
)) }),
|
|
1288
|
+
socials && /* @__PURE__ */ jsx(SocialsRow, { socials })
|
|
1289
|
+
] });
|
|
1290
|
+
}
|
|
1291
|
+
function BrutalFooter({
|
|
1292
|
+
logo,
|
|
1293
|
+
tagline,
|
|
1294
|
+
columns,
|
|
1295
|
+
bottomLeft,
|
|
1296
|
+
bottomRight,
|
|
1297
|
+
variant = "mega",
|
|
1298
|
+
socials,
|
|
1299
|
+
newsletter,
|
|
1300
|
+
className
|
|
1301
|
+
}) {
|
|
1302
|
+
return /* @__PURE__ */ jsx(
|
|
1303
|
+
"footer",
|
|
1304
|
+
{
|
|
1305
|
+
className: cn(
|
|
1306
|
+
"w-full border-t-4 bg-background px-6 py-12 text-foreground",
|
|
1307
|
+
className
|
|
1308
|
+
),
|
|
1309
|
+
style: { borderTopColor: "hsl(var(--brand))" },
|
|
1310
|
+
children: /* @__PURE__ */ jsxs("div", { className: "brutal-container", children: [
|
|
1311
|
+
variant === "newsletter" && newsletter && /* @__PURE__ */ jsx(NewsletterSection, { newsletter }),
|
|
1312
|
+
variant === "minimal" ? /* @__PURE__ */ jsx(MinimalContent, { logo, columns, socials }) : /* @__PURE__ */ jsx(
|
|
1313
|
+
MegaContent,
|
|
1314
|
+
{
|
|
1315
|
+
logo,
|
|
1316
|
+
tagline,
|
|
1317
|
+
columns,
|
|
1318
|
+
socials
|
|
1319
|
+
}
|
|
1320
|
+
),
|
|
1321
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-t-brutal border-foreground pt-6 font-mono text-xs uppercase tracking-widest text-muted-foreground", children: [
|
|
1322
|
+
/* @__PURE__ */ jsx("span", { children: bottomLeft || "Built with care" }),
|
|
1323
|
+
/* @__PURE__ */ jsx("span", { children: bottomRight || (/* @__PURE__ */ new Date()).getFullYear() })
|
|
1324
|
+
] })
|
|
1325
|
+
] })
|
|
1326
|
+
}
|
|
1327
|
+
);
|
|
1328
|
+
}
|
|
1329
|
+
function SaaSLaunchTemplate({
|
|
1330
|
+
brand,
|
|
1331
|
+
logo,
|
|
1332
|
+
nav,
|
|
1333
|
+
hero,
|
|
1334
|
+
logos,
|
|
1335
|
+
features,
|
|
1336
|
+
stats,
|
|
1337
|
+
testimonials,
|
|
1338
|
+
pricing,
|
|
1339
|
+
faq,
|
|
1340
|
+
cta,
|
|
1341
|
+
footer
|
|
1342
|
+
}) {
|
|
1343
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
1344
|
+
/* @__PURE__ */ jsx(BrutalNav, { logo, links: nav.links, ctaText: nav.ctaText, ctaHref: nav.ctaHref, variant: "solid" }),
|
|
1345
|
+
/* @__PURE__ */ jsx(
|
|
1346
|
+
BrutalHero,
|
|
1347
|
+
{
|
|
1348
|
+
variant: "split",
|
|
1349
|
+
badge: hero.badge,
|
|
1350
|
+
headline: hero.headline,
|
|
1351
|
+
description: hero.description,
|
|
1352
|
+
ctaText: hero.ctaText,
|
|
1353
|
+
ctaHref: hero.ctaHref,
|
|
1354
|
+
secondaryText: hero.secondaryText,
|
|
1355
|
+
secondaryHref: hero.secondaryHref,
|
|
1356
|
+
visual: hero.visual,
|
|
1357
|
+
proof: hero.proof,
|
|
1358
|
+
color: "brand",
|
|
1359
|
+
pattern: "noise"
|
|
1360
|
+
}
|
|
1361
|
+
),
|
|
1362
|
+
/* @__PURE__ */ jsx(SectionDivider, { from: "hsl(var(--brand))", to: "hsl(var(--background))", variant: "wave" }),
|
|
1363
|
+
logos && logos.length > 0 && /* @__PURE__ */ jsx(LogoCloud, { logos, marquee: true, title: "Trusted by teams everywhere" }),
|
|
1364
|
+
/* @__PURE__ */ jsx(
|
|
1365
|
+
BrutalFeatureGrid,
|
|
1366
|
+
{
|
|
1367
|
+
variant: "bento",
|
|
1368
|
+
badge: features.badge,
|
|
1369
|
+
headline: features.headline,
|
|
1370
|
+
description: features.description,
|
|
1371
|
+
features: features.items,
|
|
1372
|
+
color: "white"
|
|
1373
|
+
}
|
|
1374
|
+
),
|
|
1375
|
+
stats && stats.length > 0 && /* @__PURE__ */ jsx(StatsBar, { stats, color: "brand" }),
|
|
1376
|
+
/* @__PURE__ */ jsx(SectionDivider, { from: "hsl(var(--brand))", to: "hsl(var(--section-blue))", variant: "torn-paper" }),
|
|
1377
|
+
/* @__PURE__ */ jsx(
|
|
1378
|
+
BrutalTestimonials,
|
|
1379
|
+
{
|
|
1380
|
+
variant: "wall-of-love",
|
|
1381
|
+
badge: testimonials.badge,
|
|
1382
|
+
headline: testimonials.headline,
|
|
1383
|
+
testimonials: testimonials.items,
|
|
1384
|
+
color: "blue"
|
|
1385
|
+
}
|
|
1386
|
+
),
|
|
1387
|
+
/* @__PURE__ */ jsx(SectionDivider, { from: "hsl(var(--section-blue))", to: "hsl(var(--background))", variant: "wave" }),
|
|
1388
|
+
pricing && /* @__PURE__ */ jsx(
|
|
1389
|
+
PricingTable,
|
|
1390
|
+
{
|
|
1391
|
+
badge: pricing.badge,
|
|
1392
|
+
headline: pricing.headline,
|
|
1393
|
+
description: pricing.description,
|
|
1394
|
+
tiers: pricing.tiers,
|
|
1395
|
+
popularIndex: pricing.popularIndex,
|
|
1396
|
+
color: "white"
|
|
1397
|
+
}
|
|
1398
|
+
),
|
|
1399
|
+
faq && faq.length > 0 && /* @__PURE__ */ jsx(FAQ, { badge: "FAQ", headline: "Common Questions", items: faq, color: "gray" }),
|
|
1400
|
+
/* @__PURE__ */ jsx(
|
|
1401
|
+
BrutalCTA,
|
|
1402
|
+
{
|
|
1403
|
+
variant: "with-visual",
|
|
1404
|
+
headline: cta.headline,
|
|
1405
|
+
description: cta.description,
|
|
1406
|
+
ctaText: cta.ctaText,
|
|
1407
|
+
ctaHref: cta.ctaHref,
|
|
1408
|
+
secondaryText: cta.secondaryText,
|
|
1409
|
+
secondaryHref: cta.secondaryHref,
|
|
1410
|
+
color: "black",
|
|
1411
|
+
pattern: "gradient-mesh"
|
|
1412
|
+
}
|
|
1413
|
+
),
|
|
1414
|
+
/* @__PURE__ */ jsx(
|
|
1415
|
+
BrutalFooter,
|
|
1416
|
+
{
|
|
1417
|
+
variant: "mega",
|
|
1418
|
+
logo,
|
|
1419
|
+
tagline: footer.tagline,
|
|
1420
|
+
columns: footer.columns,
|
|
1421
|
+
socials: footer.socials
|
|
1422
|
+
}
|
|
1423
|
+
)
|
|
1424
|
+
] });
|
|
1425
|
+
}
|
|
1426
|
+
function Newsletter({
|
|
1427
|
+
headline = "Stay in the loop",
|
|
1428
|
+
description,
|
|
1429
|
+
placeholder = "you@example.com",
|
|
1430
|
+
buttonText = "Subscribe",
|
|
1431
|
+
onSubmit,
|
|
1432
|
+
color = "white",
|
|
1433
|
+
className
|
|
1434
|
+
}) {
|
|
1435
|
+
return /* @__PURE__ */ jsx(BrutalSection, { color, padding: "sm", className, children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-md border-brutal border-foreground bg-background p-8 text-foreground shadow-brutal-lg", children: [
|
|
1436
|
+
/* @__PURE__ */ jsx("h3", { className: "brutal-h3 mb-2", children: headline }),
|
|
1437
|
+
description && /* @__PURE__ */ jsx("p", { className: "brutal-body mb-6 text-muted-foreground", children: description }),
|
|
1438
|
+
/* @__PURE__ */ jsxs(
|
|
1439
|
+
"form",
|
|
1440
|
+
{
|
|
1441
|
+
onSubmit: (e) => {
|
|
1442
|
+
e.preventDefault();
|
|
1443
|
+
const form = e.target;
|
|
1444
|
+
const email = new FormData(form).get("email");
|
|
1445
|
+
onSubmit?.(email);
|
|
1446
|
+
},
|
|
1447
|
+
className: "flex gap-3",
|
|
1448
|
+
children: [
|
|
1449
|
+
/* @__PURE__ */ jsx(Input, { type: "email", name: "email", placeholder, required: true, className: "flex-1" }),
|
|
1450
|
+
/* @__PURE__ */ jsx(Button, { type: "submit", variant: "cta", children: buttonText })
|
|
1451
|
+
]
|
|
1452
|
+
}
|
|
1453
|
+
)
|
|
1454
|
+
] }) });
|
|
1455
|
+
}
|
|
1456
|
+
function StudioTemplate({
|
|
1457
|
+
logo,
|
|
1458
|
+
nav,
|
|
1459
|
+
hero,
|
|
1460
|
+
features,
|
|
1461
|
+
testimonials,
|
|
1462
|
+
newsletter,
|
|
1463
|
+
cta,
|
|
1464
|
+
footer
|
|
1465
|
+
}) {
|
|
1466
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
1467
|
+
/* @__PURE__ */ jsx(BrutalNav, { logo, links: nav.links, ctaText: nav.ctaText, ctaHref: nav.ctaHref, variant: "floating-pill" }),
|
|
1468
|
+
/* @__PURE__ */ jsx(
|
|
1469
|
+
BrutalHero,
|
|
1470
|
+
{
|
|
1471
|
+
variant: "asymmetric",
|
|
1472
|
+
badge: hero.badge,
|
|
1473
|
+
headline: hero.headline,
|
|
1474
|
+
description: hero.description,
|
|
1475
|
+
ctaText: hero.ctaText,
|
|
1476
|
+
ctaHref: hero.ctaHref,
|
|
1477
|
+
visual: hero.visual,
|
|
1478
|
+
proof: hero.proof,
|
|
1479
|
+
color: "brand",
|
|
1480
|
+
pattern: "grain"
|
|
1481
|
+
}
|
|
1482
|
+
),
|
|
1483
|
+
/* @__PURE__ */ jsx(SectionDivider, { from: "hsl(var(--brand))", to: "hsl(var(--background))", variant: "brush-stroke" }),
|
|
1484
|
+
/* @__PURE__ */ jsx(
|
|
1485
|
+
BrutalFeatureGrid,
|
|
1486
|
+
{
|
|
1487
|
+
variant: "numbered",
|
|
1488
|
+
badge: features.badge,
|
|
1489
|
+
headline: features.headline,
|
|
1490
|
+
description: features.description,
|
|
1491
|
+
features: features.items,
|
|
1492
|
+
color: "white"
|
|
1493
|
+
}
|
|
1494
|
+
),
|
|
1495
|
+
testimonials && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1496
|
+
/* @__PURE__ */ jsx(SectionDivider, { from: "hsl(var(--background))", to: "hsl(var(--section-gray))", variant: "diagonal" }),
|
|
1497
|
+
/* @__PURE__ */ jsx(
|
|
1498
|
+
BrutalTestimonials,
|
|
1499
|
+
{
|
|
1500
|
+
variant: "featured-grid",
|
|
1501
|
+
badge: testimonials.badge,
|
|
1502
|
+
headline: testimonials.headline,
|
|
1503
|
+
testimonials: testimonials.items,
|
|
1504
|
+
color: "gray"
|
|
1505
|
+
}
|
|
1506
|
+
),
|
|
1507
|
+
/* @__PURE__ */ jsx(SectionDivider, { from: "hsl(var(--section-gray))", to: "hsl(var(--background))", variant: "diagonal", flip: true })
|
|
1508
|
+
] }),
|
|
1509
|
+
newsletter && /* @__PURE__ */ jsx(
|
|
1510
|
+
Newsletter,
|
|
1511
|
+
{
|
|
1512
|
+
headline: newsletter.headline,
|
|
1513
|
+
description: newsletter.description,
|
|
1514
|
+
onSubmit: newsletter.onSubmit
|
|
1515
|
+
}
|
|
1516
|
+
),
|
|
1517
|
+
/* @__PURE__ */ jsx(
|
|
1518
|
+
BrutalCTA,
|
|
1519
|
+
{
|
|
1520
|
+
variant: "floating-card",
|
|
1521
|
+
headline: cta.headline,
|
|
1522
|
+
description: cta.description,
|
|
1523
|
+
ctaText: cta.ctaText,
|
|
1524
|
+
ctaHref: cta.ctaHref,
|
|
1525
|
+
color: "brand"
|
|
1526
|
+
}
|
|
1527
|
+
),
|
|
1528
|
+
/* @__PURE__ */ jsx(
|
|
1529
|
+
BrutalFooter,
|
|
1530
|
+
{
|
|
1531
|
+
variant: "minimal",
|
|
1532
|
+
logo,
|
|
1533
|
+
tagline: footer.tagline,
|
|
1534
|
+
columns: footer.columns
|
|
1535
|
+
}
|
|
1536
|
+
)
|
|
1537
|
+
] });
|
|
1538
|
+
}
|
|
1539
|
+
var AppShellContext = createContext({
|
|
1540
|
+
collapsed: false,
|
|
1541
|
+
setCollapsed: () => {
|
|
1542
|
+
},
|
|
1543
|
+
mobileOpen: false,
|
|
1544
|
+
setMobileOpen: () => {
|
|
1545
|
+
}
|
|
1546
|
+
});
|
|
1547
|
+
var useAppShell = () => useContext(AppShellContext);
|
|
1548
|
+
function AppShell({
|
|
1549
|
+
sidebar,
|
|
1550
|
+
header,
|
|
1551
|
+
children,
|
|
1552
|
+
defaultCollapsed = false,
|
|
1553
|
+
className
|
|
1554
|
+
}) {
|
|
1555
|
+
const [collapsed, setCollapsed] = useState(defaultCollapsed);
|
|
1556
|
+
const [mobileOpen, setMobileOpen] = useState(false);
|
|
1557
|
+
return /* @__PURE__ */ jsx(
|
|
1558
|
+
AppShellContext.Provider,
|
|
1559
|
+
{
|
|
1560
|
+
value: { collapsed, setCollapsed, mobileOpen, setMobileOpen },
|
|
1561
|
+
children: /* @__PURE__ */ jsxs("div", { className: cn("flex h-screen bg-background", className), children: [
|
|
1562
|
+
/* @__PURE__ */ jsx(
|
|
1563
|
+
"aside",
|
|
1564
|
+
{
|
|
1565
|
+
className: cn(
|
|
1566
|
+
"hidden border-r-brutal border-foreground bg-background transition-all duration-200 md:block",
|
|
1567
|
+
collapsed ? "w-16" : "w-64"
|
|
1568
|
+
),
|
|
1569
|
+
children: sidebar
|
|
1570
|
+
}
|
|
1571
|
+
),
|
|
1572
|
+
/* @__PURE__ */ jsx(Sheet, { open: mobileOpen, onOpenChange: setMobileOpen, children: /* @__PURE__ */ jsxs(SheetContent, { side: "left", className: "w-64 p-0 md:hidden", children: [
|
|
1573
|
+
/* @__PURE__ */ jsx(SheetTitle, { className: "sr-only", children: "Navigation" }),
|
|
1574
|
+
sidebar
|
|
1575
|
+
] }) }),
|
|
1576
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
1577
|
+
header && /* @__PURE__ */ jsxs("header", { className: "flex h-14 items-center gap-4 border-b-brutal border-foreground px-6", children: [
|
|
1578
|
+
/* @__PURE__ */ jsx(
|
|
1579
|
+
Button,
|
|
1580
|
+
{
|
|
1581
|
+
variant: "ghost",
|
|
1582
|
+
size: "sm",
|
|
1583
|
+
className: "md:hidden",
|
|
1584
|
+
onClick: () => setMobileOpen(true),
|
|
1585
|
+
children: "\u2630"
|
|
1586
|
+
}
|
|
1587
|
+
),
|
|
1588
|
+
header
|
|
1589
|
+
] }),
|
|
1590
|
+
/* @__PURE__ */ jsx("main", { className: "flex-1 overflow-auto p-6", children })
|
|
1591
|
+
] })
|
|
1592
|
+
] })
|
|
1593
|
+
}
|
|
1594
|
+
);
|
|
1595
|
+
}
|
|
1596
|
+
function Sidebar({
|
|
1597
|
+
logo,
|
|
1598
|
+
logoCollapsed,
|
|
1599
|
+
groups,
|
|
1600
|
+
footer,
|
|
1601
|
+
className
|
|
1602
|
+
}) {
|
|
1603
|
+
const { collapsed, setCollapsed } = useAppShell();
|
|
1604
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("flex h-full flex-col", className), children: [
|
|
1605
|
+
/* @__PURE__ */ jsxs("div", { className: "flex h-14 items-center justify-between border-b-brutal border-foreground px-4", children: [
|
|
1606
|
+
/* @__PURE__ */ jsx("div", { className: "font-black", children: collapsed ? logoCollapsed || logo : logo }),
|
|
1607
|
+
/* @__PURE__ */ jsx(
|
|
1608
|
+
"button",
|
|
1609
|
+
{
|
|
1610
|
+
onClick: () => setCollapsed(!collapsed),
|
|
1611
|
+
className: "hidden text-xs text-muted-foreground hover:text-foreground md:block",
|
|
1612
|
+
children: collapsed ? "\u2192" : "\u2190"
|
|
1613
|
+
}
|
|
1614
|
+
)
|
|
1615
|
+
] }),
|
|
1616
|
+
/* @__PURE__ */ jsx("nav", { className: "flex-1 overflow-auto p-2", children: groups.map((group, gi) => /* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
|
|
1617
|
+
group.title && !collapsed && /* @__PURE__ */ jsx("p", { className: "brutal-label mb-2 px-2 text-muted-foreground", children: group.title }),
|
|
1618
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-0.5", children: group.links.map((link) => /* @__PURE__ */ jsxs(
|
|
1619
|
+
"a",
|
|
1620
|
+
{
|
|
1621
|
+
href: link.href,
|
|
1622
|
+
className: cn(
|
|
1623
|
+
"flex items-center gap-3 rounded-sm px-3 py-2 text-sm font-medium transition-colors",
|
|
1624
|
+
link.active ? "bg-brand text-brand-foreground" : "hover:bg-secondary",
|
|
1625
|
+
collapsed && "justify-center"
|
|
1626
|
+
),
|
|
1627
|
+
title: collapsed ? link.label : void 0,
|
|
1628
|
+
children: [
|
|
1629
|
+
/* @__PURE__ */ jsx("span", { className: "size-5 shrink-0", children: link.icon }),
|
|
1630
|
+
!collapsed && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1631
|
+
/* @__PURE__ */ jsx("span", { className: "flex-1", children: link.label }),
|
|
1632
|
+
link.badge !== void 0 && /* @__PURE__ */ jsx("span", { className: "border border-foreground bg-brand-muted px-1.5 font-mono text-[10px] font-bold", children: link.badge })
|
|
1633
|
+
] })
|
|
1634
|
+
]
|
|
1635
|
+
},
|
|
1636
|
+
link.href
|
|
1637
|
+
)) })
|
|
1638
|
+
] }, gi)) }),
|
|
1639
|
+
footer && /* @__PURE__ */ jsx("div", { className: "border-t-brutal border-foreground p-3", children: footer })
|
|
1640
|
+
] });
|
|
1641
|
+
}
|
|
1642
|
+
function SearchBar({
|
|
1643
|
+
placeholder = "Search...",
|
|
1644
|
+
shortcut = "\u2318K",
|
|
1645
|
+
value,
|
|
1646
|
+
onChange,
|
|
1647
|
+
className
|
|
1648
|
+
}) {
|
|
1649
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("relative", className), children: [
|
|
1650
|
+
/* @__PURE__ */ jsx(
|
|
1651
|
+
Input,
|
|
1652
|
+
{
|
|
1653
|
+
type: "search",
|
|
1654
|
+
placeholder,
|
|
1655
|
+
value,
|
|
1656
|
+
onChange: (e) => onChange?.(e.target.value),
|
|
1657
|
+
className: "pr-12"
|
|
1658
|
+
}
|
|
1659
|
+
),
|
|
1660
|
+
shortcut && /* @__PURE__ */ jsx("span", { className: "absolute right-2 top-1/2 -translate-y-1/2 border border-foreground bg-secondary px-1.5 font-mono text-[10px] text-muted-foreground", children: shortcut })
|
|
1661
|
+
] });
|
|
1662
|
+
}
|
|
1663
|
+
function DropdownMenu({ ...props }) {
|
|
1664
|
+
return /* @__PURE__ */ jsx(Menu$1.Root, { "data-slot": "dropdown-menu", ...props });
|
|
1665
|
+
}
|
|
1666
|
+
function DropdownMenuTrigger({ ...props }) {
|
|
1667
|
+
return /* @__PURE__ */ jsx(Menu$1.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
1668
|
+
}
|
|
1669
|
+
function DropdownMenuContent({
|
|
1670
|
+
align = "start",
|
|
1671
|
+
alignOffset = 0,
|
|
1672
|
+
side = "bottom",
|
|
1673
|
+
sideOffset = 4,
|
|
1674
|
+
className,
|
|
1675
|
+
...props
|
|
1676
|
+
}) {
|
|
1677
|
+
return /* @__PURE__ */ jsx(Menu$1.Portal, { children: /* @__PURE__ */ jsx(
|
|
1678
|
+
Menu$1.Positioner,
|
|
1679
|
+
{
|
|
1680
|
+
className: "isolate z-50 outline-none",
|
|
1681
|
+
align,
|
|
1682
|
+
alignOffset,
|
|
1683
|
+
side,
|
|
1684
|
+
sideOffset,
|
|
1685
|
+
children: /* @__PURE__ */ jsx(
|
|
1686
|
+
Menu$1.Popup,
|
|
1687
|
+
{
|
|
1688
|
+
"data-slot": "dropdown-menu-content",
|
|
1689
|
+
className: cn("z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border-brutal border-foreground bg-popover p-1 text-popover-foreground shadow-brutal duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
1690
|
+
...props
|
|
1691
|
+
}
|
|
1692
|
+
)
|
|
1693
|
+
}
|
|
1694
|
+
) });
|
|
1695
|
+
}
|
|
1696
|
+
function DropdownMenuGroup({ ...props }) {
|
|
1697
|
+
return /* @__PURE__ */ jsx(Menu$1.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
1698
|
+
}
|
|
1699
|
+
function DropdownMenuLabel({
|
|
1700
|
+
className,
|
|
1701
|
+
inset,
|
|
1702
|
+
...props
|
|
1703
|
+
}) {
|
|
1704
|
+
return /* @__PURE__ */ jsx(
|
|
1705
|
+
Menu$1.GroupLabel,
|
|
1706
|
+
{
|
|
1707
|
+
"data-slot": "dropdown-menu-label",
|
|
1708
|
+
"data-inset": inset,
|
|
1709
|
+
className: cn(
|
|
1710
|
+
"px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",
|
|
1711
|
+
className
|
|
1712
|
+
),
|
|
1713
|
+
...props
|
|
1714
|
+
}
|
|
1715
|
+
);
|
|
1716
|
+
}
|
|
1717
|
+
function DropdownMenuItem({
|
|
1718
|
+
className,
|
|
1719
|
+
inset,
|
|
1720
|
+
variant = "default",
|
|
1721
|
+
...props
|
|
1722
|
+
}) {
|
|
1723
|
+
return /* @__PURE__ */ jsx(
|
|
1724
|
+
Menu$1.Item,
|
|
1725
|
+
{
|
|
1726
|
+
"data-slot": "dropdown-menu-item",
|
|
1727
|
+
"data-inset": inset,
|
|
1728
|
+
"data-variant": variant,
|
|
1729
|
+
className: cn(
|
|
1730
|
+
"group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",
|
|
1731
|
+
className
|
|
1732
|
+
),
|
|
1733
|
+
...props
|
|
1734
|
+
}
|
|
1735
|
+
);
|
|
1736
|
+
}
|
|
1737
|
+
function DropdownMenuSeparator({
|
|
1738
|
+
className,
|
|
1739
|
+
...props
|
|
1740
|
+
}) {
|
|
1741
|
+
return /* @__PURE__ */ jsx(
|
|
1742
|
+
Menu$1.Separator,
|
|
1743
|
+
{
|
|
1744
|
+
"data-slot": "dropdown-menu-separator",
|
|
1745
|
+
className: cn("-mx-1 my-1 h-px bg-border", className),
|
|
1746
|
+
...props
|
|
1747
|
+
}
|
|
1748
|
+
);
|
|
1749
|
+
}
|
|
1750
|
+
function Avatar({
|
|
1751
|
+
className,
|
|
1752
|
+
size = "default",
|
|
1753
|
+
...props
|
|
1754
|
+
}) {
|
|
1755
|
+
return /* @__PURE__ */ jsx(
|
|
1756
|
+
Avatar$1.Root,
|
|
1757
|
+
{
|
|
1758
|
+
"data-slot": "avatar",
|
|
1759
|
+
"data-size": size,
|
|
1760
|
+
className: cn(
|
|
1761
|
+
"group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",
|
|
1762
|
+
className
|
|
1763
|
+
),
|
|
1764
|
+
...props
|
|
1765
|
+
}
|
|
1766
|
+
);
|
|
1767
|
+
}
|
|
1768
|
+
function AvatarImage({ className, ...props }) {
|
|
1769
|
+
return /* @__PURE__ */ jsx(
|
|
1770
|
+
Avatar$1.Image,
|
|
1771
|
+
{
|
|
1772
|
+
"data-slot": "avatar-image",
|
|
1773
|
+
className: cn(
|
|
1774
|
+
"aspect-square size-full rounded-full object-cover",
|
|
1775
|
+
className
|
|
1776
|
+
),
|
|
1777
|
+
...props
|
|
1778
|
+
}
|
|
1779
|
+
);
|
|
1780
|
+
}
|
|
1781
|
+
function AvatarFallback({
|
|
1782
|
+
className,
|
|
1783
|
+
...props
|
|
1784
|
+
}) {
|
|
1785
|
+
return /* @__PURE__ */ jsx(
|
|
1786
|
+
Avatar$1.Fallback,
|
|
1787
|
+
{
|
|
1788
|
+
"data-slot": "avatar-fallback",
|
|
1789
|
+
className: cn(
|
|
1790
|
+
"flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",
|
|
1791
|
+
className
|
|
1792
|
+
),
|
|
1793
|
+
...props
|
|
1794
|
+
}
|
|
1795
|
+
);
|
|
1796
|
+
}
|
|
1797
|
+
function UserMenu({ name, email, avatar, items, onSignOut }) {
|
|
1798
|
+
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
1799
|
+
/* @__PURE__ */ jsxs(
|
|
1800
|
+
DropdownMenuTrigger,
|
|
1801
|
+
{
|
|
1802
|
+
className: "inline-flex shrink-0 cursor-pointer items-center gap-2 rounded-lg px-3 py-1.5 text-sm font-medium outline-none hover:bg-secondary",
|
|
1803
|
+
children: [
|
|
1804
|
+
/* @__PURE__ */ jsxs(Avatar, { className: "size-7", children: [
|
|
1805
|
+
avatar && /* @__PURE__ */ jsx(AvatarImage, { src: avatar, alt: name }),
|
|
1806
|
+
/* @__PURE__ */ jsx(AvatarFallback, { children: name[0] })
|
|
1807
|
+
] }),
|
|
1808
|
+
/* @__PURE__ */ jsx("span", { className: "hidden text-sm font-medium sm:inline", children: name })
|
|
1809
|
+
]
|
|
1810
|
+
}
|
|
1811
|
+
),
|
|
1812
|
+
/* @__PURE__ */ jsxs(DropdownMenuContent, { align: "end", className: "w-48", children: [
|
|
1813
|
+
/* @__PURE__ */ jsxs(DropdownMenuLabel, { children: [
|
|
1814
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-bold", children: name }),
|
|
1815
|
+
email && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: email })
|
|
1816
|
+
] }),
|
|
1817
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
1818
|
+
items && /* @__PURE__ */ jsx(DropdownMenuGroup, { children: items.map((item) => /* @__PURE__ */ jsx(DropdownMenuItem, { onClick: item.onClick, children: item.href ? /* @__PURE__ */ jsx("a", { href: item.href, children: item.label }) : item.label }, item.label)) }),
|
|
1819
|
+
onSignOut && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1820
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
1821
|
+
/* @__PURE__ */ jsx(DropdownMenuItem, { onClick: onSignOut, children: "Sign out" })
|
|
1822
|
+
] })
|
|
1823
|
+
] })
|
|
1824
|
+
] });
|
|
1825
|
+
}
|
|
1826
|
+
function StatCard({
|
|
1827
|
+
label,
|
|
1828
|
+
value,
|
|
1829
|
+
change,
|
|
1830
|
+
changeLabel,
|
|
1831
|
+
icon,
|
|
1832
|
+
className
|
|
1833
|
+
}) {
|
|
1834
|
+
return /* @__PURE__ */ jsxs(
|
|
1835
|
+
"div",
|
|
1836
|
+
{
|
|
1837
|
+
className: cn(
|
|
1838
|
+
"border-brutal border-foreground bg-background p-5 shadow-brutal",
|
|
1839
|
+
className
|
|
1840
|
+
),
|
|
1841
|
+
children: [
|
|
1842
|
+
/* @__PURE__ */ jsxs("div", { className: "mb-3 flex items-center justify-between", children: [
|
|
1843
|
+
/* @__PURE__ */ jsx("p", { className: "brutal-label text-muted-foreground", children: label }),
|
|
1844
|
+
icon && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: icon })
|
|
1845
|
+
] }),
|
|
1846
|
+
/* @__PURE__ */ jsx("p", { className: "brutal-h1 mb-1", children: value }),
|
|
1847
|
+
change !== void 0 && /* @__PURE__ */ jsxs(
|
|
1848
|
+
"p",
|
|
1849
|
+
{
|
|
1850
|
+
className: cn(
|
|
1851
|
+
"flex items-center gap-1 font-mono text-xs font-bold",
|
|
1852
|
+
change >= 0 ? "text-cta" : "text-destructive"
|
|
1853
|
+
),
|
|
1854
|
+
children: [
|
|
1855
|
+
/* @__PURE__ */ jsx("span", { children: change >= 0 ? "\u2191" : "\u2193" }),
|
|
1856
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
1857
|
+
Math.abs(change),
|
|
1858
|
+
"%"
|
|
1859
|
+
] }),
|
|
1860
|
+
changeLabel && /* @__PURE__ */ jsx("span", { className: "font-normal text-muted-foreground", children: changeLabel })
|
|
1861
|
+
]
|
|
1862
|
+
}
|
|
1863
|
+
)
|
|
1864
|
+
]
|
|
1865
|
+
}
|
|
1866
|
+
);
|
|
1867
|
+
}
|
|
1868
|
+
var toggleVariants = cva(
|
|
1869
|
+
"group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:border-brutal aria-pressed:border-foreground aria-pressed:bg-muted aria-pressed:shadow-brutal-sm data-[state=on]:border-brutal data-[state=on]:border-foreground data-[state=on]:bg-muted data-[state=on]:shadow-brutal-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1870
|
+
{
|
|
1871
|
+
variants: {
|
|
1872
|
+
variant: {
|
|
1873
|
+
default: "bg-transparent",
|
|
1874
|
+
outline: "border-brutal border-foreground bg-transparent shadow-brutal-sm hover:bg-muted"
|
|
1875
|
+
},
|
|
1876
|
+
size: {
|
|
1877
|
+
default: "h-8 min-w-8 px-2",
|
|
1878
|
+
sm: "h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-1.5 text-[0.8rem]",
|
|
1879
|
+
lg: "h-9 min-w-9 px-2.5"
|
|
1880
|
+
}
|
|
1881
|
+
},
|
|
1882
|
+
defaultVariants: {
|
|
1883
|
+
variant: "default",
|
|
1884
|
+
size: "default"
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
);
|
|
1888
|
+
var ToggleGroupContext = React.createContext({
|
|
1889
|
+
size: "default",
|
|
1890
|
+
variant: "default",
|
|
1891
|
+
spacing: 0,
|
|
1892
|
+
orientation: "horizontal"
|
|
1893
|
+
});
|
|
1894
|
+
function ToggleGroup({
|
|
1895
|
+
className,
|
|
1896
|
+
variant,
|
|
1897
|
+
size,
|
|
1898
|
+
spacing = 0,
|
|
1899
|
+
orientation = "horizontal",
|
|
1900
|
+
children,
|
|
1901
|
+
...props
|
|
1902
|
+
}) {
|
|
1903
|
+
return /* @__PURE__ */ jsx(
|
|
1904
|
+
ToggleGroup$1,
|
|
1905
|
+
{
|
|
1906
|
+
"data-slot": "toggle-group",
|
|
1907
|
+
"data-variant": variant,
|
|
1908
|
+
"data-size": size,
|
|
1909
|
+
"data-spacing": spacing,
|
|
1910
|
+
"data-orientation": orientation,
|
|
1911
|
+
style: { "--gap": spacing },
|
|
1912
|
+
className: cn(
|
|
1913
|
+
"group/toggle-group flex w-fit flex-row items-center gap-[var(--gap)] rounded-lg border-brutal border-foreground data-vertical:flex-col data-vertical:items-stretch",
|
|
1914
|
+
className
|
|
1915
|
+
),
|
|
1916
|
+
...props,
|
|
1917
|
+
children: /* @__PURE__ */ jsx(
|
|
1918
|
+
ToggleGroupContext.Provider,
|
|
1919
|
+
{
|
|
1920
|
+
value: { variant, size, spacing, orientation },
|
|
1921
|
+
children
|
|
1922
|
+
}
|
|
1923
|
+
)
|
|
1924
|
+
}
|
|
1925
|
+
);
|
|
1926
|
+
}
|
|
1927
|
+
function ToggleGroupItem({
|
|
1928
|
+
className,
|
|
1929
|
+
children,
|
|
1930
|
+
variant = "default",
|
|
1931
|
+
size = "default",
|
|
1932
|
+
...props
|
|
1933
|
+
}) {
|
|
1934
|
+
const context = React.useContext(ToggleGroupContext);
|
|
1935
|
+
return /* @__PURE__ */ jsx(
|
|
1936
|
+
Toggle,
|
|
1937
|
+
{
|
|
1938
|
+
"data-slot": "toggle-group-item",
|
|
1939
|
+
"data-variant": context.variant || variant,
|
|
1940
|
+
"data-size": context.size || size,
|
|
1941
|
+
"data-spacing": context.spacing,
|
|
1942
|
+
className: cn(
|
|
1943
|
+
"shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t",
|
|
1944
|
+
toggleVariants({
|
|
1945
|
+
variant: context.variant || variant,
|
|
1946
|
+
size: context.size || size
|
|
1947
|
+
}),
|
|
1948
|
+
className
|
|
1949
|
+
),
|
|
1950
|
+
...props,
|
|
1951
|
+
children
|
|
1952
|
+
}
|
|
1953
|
+
);
|
|
1954
|
+
}
|
|
1955
|
+
var viewLabels = {
|
|
1956
|
+
table: "Table",
|
|
1957
|
+
kanban: "Board",
|
|
1958
|
+
grid: "Grid",
|
|
1959
|
+
calendar: "Calendar",
|
|
1960
|
+
list: "List"
|
|
1961
|
+
};
|
|
1962
|
+
function ViewSwitcher({
|
|
1963
|
+
value,
|
|
1964
|
+
onChange,
|
|
1965
|
+
views = ["table", "kanban", "grid", "calendar", "list"],
|
|
1966
|
+
className
|
|
1967
|
+
}) {
|
|
1968
|
+
return /* @__PURE__ */ jsx(
|
|
1969
|
+
ToggleGroup,
|
|
1970
|
+
{
|
|
1971
|
+
value: [value],
|
|
1972
|
+
onValueChange: (vals) => {
|
|
1973
|
+
if (vals.length > 0) {
|
|
1974
|
+
onChange(vals[0]);
|
|
1975
|
+
}
|
|
1976
|
+
},
|
|
1977
|
+
className,
|
|
1978
|
+
children: views.map((view) => /* @__PURE__ */ jsx(ToggleGroupItem, { value: view, className: "brutal-label text-xs", children: viewLabels[view] }, view))
|
|
1979
|
+
}
|
|
1980
|
+
);
|
|
1981
|
+
}
|
|
1982
|
+
function DashboardTemplate({
|
|
1983
|
+
logo,
|
|
1984
|
+
logoCollapsed,
|
|
1985
|
+
sidebarGroups,
|
|
1986
|
+
user,
|
|
1987
|
+
userMenuItems,
|
|
1988
|
+
onSignOut,
|
|
1989
|
+
stats,
|
|
1990
|
+
views,
|
|
1991
|
+
children,
|
|
1992
|
+
sidebarFooter
|
|
1993
|
+
}) {
|
|
1994
|
+
const [view, setView] = useState("table");
|
|
1995
|
+
return /* @__PURE__ */ jsxs(
|
|
1996
|
+
AppShell,
|
|
1997
|
+
{
|
|
1998
|
+
sidebar: /* @__PURE__ */ jsx(
|
|
1999
|
+
Sidebar,
|
|
2000
|
+
{
|
|
2001
|
+
logo,
|
|
2002
|
+
logoCollapsed,
|
|
2003
|
+
groups: sidebarGroups,
|
|
2004
|
+
footer: sidebarFooter
|
|
2005
|
+
}
|
|
2006
|
+
),
|
|
2007
|
+
header: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2008
|
+
/* @__PURE__ */ jsx(SearchBar, { className: "flex-1 max-w-sm" }),
|
|
2009
|
+
/* @__PURE__ */ jsx("div", { className: "ml-auto", children: /* @__PURE__ */ jsx(
|
|
2010
|
+
UserMenu,
|
|
2011
|
+
{
|
|
2012
|
+
name: user.name,
|
|
2013
|
+
email: user.email,
|
|
2014
|
+
avatar: user.avatar,
|
|
2015
|
+
items: userMenuItems,
|
|
2016
|
+
onSignOut
|
|
2017
|
+
}
|
|
2018
|
+
) })
|
|
2019
|
+
] }),
|
|
2020
|
+
children: [
|
|
2021
|
+
stats && stats.length > 0 && /* @__PURE__ */ jsx("div", { className: "mb-6 grid gap-4 sm:grid-cols-2 lg:grid-cols-4", children: stats.map((stat) => /* @__PURE__ */ jsx(StatCard, { ...stat }, stat.label)) }),
|
|
2022
|
+
views && views.length > 1 && /* @__PURE__ */ jsx("div", { className: "mb-4", children: /* @__PURE__ */ jsx(ViewSwitcher, { value: view, onChange: setView, views }) }),
|
|
2023
|
+
children
|
|
2024
|
+
]
|
|
2025
|
+
}
|
|
2026
|
+
);
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
export { DashboardTemplate, SaaSLaunchTemplate, StudioTemplate };
|
|
2030
|
+
//# sourceMappingURL=index.js.map
|
|
2031
|
+
//# sourceMappingURL=index.js.map
|