@designa8/vibedesign-attio-internal-v1-2-176b 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +70 -11
- package/dist/index.js +70 -11
- package/dist/styles.css +3 -0
- package/package.json +1 -1
- package/src/atoms/HeroSection/HeroSection.tsx +29 -2
- package/src/atoms/HeroSection/index.ts +1 -1
- package/src/atoms/HeroSection/preview.tsx +82 -11
- package/src/atoms/HeroSectionDesktop/HeroSectionDesktop.tsx +24 -3
- package/src/atoms/HeroSectionDesktop/index.ts +8 -1
- package/src/atoms/HeroSectionMobile/HeroSectionMobile.tsx +23 -3
- package/src/atoms/Icon/icons.data.ts +16 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @designa8/vibedesign-attio-internal-v1-2-176b
|
|
2
2
|
|
|
3
|
-
Complete design system generated by Atoms Design, version **0.1.
|
|
3
|
+
Complete design system generated by Atoms Design, version **0.1.2**.
|
|
4
4
|
Tokens, atoms, molecules, organisms, and templates — import from the package root;
|
|
5
5
|
never hardcode visual values in consumer code.
|
|
6
6
|
|
package/dist/index.cjs
CHANGED
|
@@ -219,7 +219,23 @@ var ICON_REGISTRY = {
|
|
|
219
219
|
"slash": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M22 2 2 22" }] },
|
|
220
220
|
"mic": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M12 19v3" }, { tag: "path", d: "M19 10v2a7 7 0 0 1-14 0v-2" }, { tag: "rect", x: "9", y: "2", width: "6", height: "13", rx: "3" }] },
|
|
221
221
|
"sun": { viewBox: "0 0 24 24", nodes: [{ tag: "circle", cx: "12", cy: "12", r: "4" }, { tag: "path", d: "M12 2v2" }, { tag: "path", d: "M12 20v2" }, { tag: "path", d: "m4.93 4.93 1.41 1.41" }, { tag: "path", d: "m17.66 17.66 1.41 1.41" }, { tag: "path", d: "M2 12h2" }, { tag: "path", d: "M20 12h2" }, { tag: "path", d: "m6.34 17.66-1.41 1.41" }, { tag: "path", d: "m19.07 4.93-1.41 1.41" }] },
|
|
222
|
-
"moon": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" }] }
|
|
222
|
+
"moon": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" }] },
|
|
223
|
+
"log-out": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "m16 17 5-5-5-5" }, { tag: "path", d: "M21 12H9" }, { tag: "path", d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }] },
|
|
224
|
+
"git-merge": { viewBox: "0 0 24 24", nodes: [{ tag: "circle", cx: "18", cy: "18", r: "3" }, { tag: "circle", cx: "6", cy: "6", r: "3" }, { tag: "path", d: "M6 21V9a9 9 0 0 0 9 9" }] },
|
|
225
|
+
"square-kanban": { viewBox: "0 0 24 24", nodes: [{ tag: "rect", width: "18", height: "18", x: "3", y: "3", rx: "2" }, { tag: "path", d: "M8 7v7" }, { tag: "path", d: "M12 7v4" }, { tag: "path", d: "M16 7v9" }] },
|
|
226
|
+
"list": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M3 12h.01" }, { tag: "path", d: "M3 18h.01" }, { tag: "path", d: "M3 6h.01" }, { tag: "path", d: "M8 12h13" }, { tag: "path", d: "M8 18h13" }, { tag: "path", d: "M8 6h13" }] },
|
|
227
|
+
"arrow-left": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "m12 19-7-7 7-7" }, { tag: "path", d: "M19 12H5" }] },
|
|
228
|
+
"trophy": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978" }, { tag: "path", d: "M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978" }, { tag: "path", d: "M18 9h1.5a1 1 0 0 0 0-5H18" }, { tag: "path", d: "M4 22h16" }, { tag: "path", d: "M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z" }, { tag: "path", d: "M6 9H4.5a1 1 0 0 1 0-5H6" }] },
|
|
229
|
+
"refresh-cw": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }, { tag: "path", d: "M21 3v5h-5" }, { tag: "path", d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }, { tag: "path", d: "M8 16H3v5" }] },
|
|
230
|
+
"rotate-ccw": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }, { tag: "path", d: "M3 3v5h5" }] },
|
|
231
|
+
"table-of-contents": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M16 12H3" }, { tag: "path", d: "M16 18H3" }, { tag: "path", d: "M16 6H3" }, { tag: "path", d: "M21 12h.01" }, { tag: "path", d: "M21 18h.01" }, { tag: "path", d: "M21 6h.01" }] },
|
|
232
|
+
"badge": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z" }] },
|
|
233
|
+
"book-a": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" }, { tag: "path", d: "m8 13 4-7 4 7" }, { tag: "path", d: "M9.1 11h5.7" }] },
|
|
234
|
+
"cross": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M4 9a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z" }, { tag: "path", d: "M14 9a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2z" }, { tag: "path", d: "M4 15a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z" }, { tag: "path", d: "M14 15a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2z" }] },
|
|
235
|
+
"users": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }, { tag: "circle", cx: "9", cy: "7", r: "4" }, { tag: "path", d: "M22 21v-2a4 4 0 0 0-3-3.87" }, { tag: "path", d: "M16 3.13a4 4 0 0 1 0 7.75" }] },
|
|
236
|
+
"user-plus": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }, { tag: "circle", cx: "9", cy: "7", r: "4" }, { tag: "line", x1: "19", x2: "19", y1: "8", y2: "14" }, { tag: "line", x1: "22", x2: "16", y1: "11", y2: "11" }] },
|
|
237
|
+
"circle-x": { viewBox: "0 0 24 24", nodes: [{ tag: "circle", cx: "12", cy: "12", r: "10" }, { tag: "path", d: "m15 9-6 6" }, { tag: "path", d: "m9 9 6 6" }] },
|
|
238
|
+
"calendar-clock": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5" }, { tag: "path", d: "M16 2v4" }, { tag: "path", d: "M8 2v4" }, { tag: "path", d: "M3 10h5" }, { tag: "path", d: "M17.5 17.5 16 16.3V14" }, { tag: "circle", cx: "16", cy: "16", r: "6" }] }
|
|
223
239
|
};
|
|
224
240
|
|
|
225
241
|
// virtual-pkg:src/atoms/Icon/Icon.tsx
|
|
@@ -4821,17 +4837,22 @@ var HeroSectionDesktop = React48.forwardRef(
|
|
|
4821
4837
|
secondaryAction = { label: "Watch demo", icon: "play" },
|
|
4822
4838
|
media,
|
|
4823
4839
|
proof,
|
|
4840
|
+
surface: surface2 = "card",
|
|
4841
|
+
titleSize = "heading",
|
|
4824
4842
|
className,
|
|
4825
4843
|
...rest
|
|
4826
4844
|
}, ref) => {
|
|
4827
4845
|
const titleId = React48.useId();
|
|
4846
|
+
const onCanvas = surface2 === "transparent";
|
|
4847
|
+
const display = titleSize === "display";
|
|
4828
4848
|
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
4829
4849
|
"section",
|
|
4830
4850
|
{
|
|
4831
4851
|
ref,
|
|
4832
4852
|
"aria-labelledby": titleId,
|
|
4833
4853
|
className: cn46(
|
|
4834
|
-
"grid w-full grid-cols-12 items-center gap-xl overflow-hidden
|
|
4854
|
+
"grid w-full grid-cols-12 items-center gap-xl overflow-hidden text-ink",
|
|
4855
|
+
onCanvas ? "rounded-none bg-transparent p-0" : "rounded-xl border border-hairline bg-surface p-xl shadow-card",
|
|
4835
4856
|
className
|
|
4836
4857
|
),
|
|
4837
4858
|
...rest,
|
|
@@ -4839,8 +4860,15 @@ var HeroSectionDesktop = React48.forwardRef(
|
|
|
4839
4860
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: cn46("flex flex-col gap-lg", media ? "col-span-12 md:col-span-6 lg:col-span-5" : "col-span-12 md:col-span-10 lg:col-span-8"), children: [
|
|
4840
4861
|
announcement ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("span", { className: "inline-flex self-start rounded-xl border border-hairline bg-surface px-md py-xxs shadow-sm", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Link, { href: announcement.href, tone: "muted", underline: "hover", size: "sm", trailingIcon: "chevron-right", children: announcement.label }) }) : null,
|
|
4841
4862
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-base", children: [
|
|
4842
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4843
|
-
|
|
4863
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
4864
|
+
"h1",
|
|
4865
|
+
{
|
|
4866
|
+
id: titleId,
|
|
4867
|
+
className: cn46("text-ink", display ? "text-balance text-display-lg" : "text-heading-lg"),
|
|
4868
|
+
children: title
|
|
4869
|
+
}
|
|
4870
|
+
),
|
|
4871
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: cn46("text-muted", display ? "text-body-lg" : "text-body-md"), children: description }) : null
|
|
4844
4872
|
] }),
|
|
4845
4873
|
primaryAction || secondaryAction ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
|
|
4846
4874
|
primaryAction ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
@@ -4894,25 +4922,37 @@ var HeroSectionMobile = React49.forwardRef(
|
|
|
4894
4922
|
media,
|
|
4895
4923
|
proof,
|
|
4896
4924
|
actionsLayout = "stack",
|
|
4925
|
+
surface: surface2 = "card",
|
|
4926
|
+
titleSize = "heading",
|
|
4897
4927
|
className,
|
|
4898
4928
|
...rest
|
|
4899
4929
|
}, ref) => {
|
|
4900
4930
|
const titleId = React49.useId();
|
|
4901
4931
|
const stack = actionsLayout === "stack";
|
|
4932
|
+
const onCanvas = surface2 === "transparent";
|
|
4933
|
+
const display = titleSize === "display";
|
|
4902
4934
|
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
4903
4935
|
"section",
|
|
4904
4936
|
{
|
|
4905
4937
|
ref,
|
|
4906
4938
|
"aria-labelledby": titleId,
|
|
4907
4939
|
className: cn47(
|
|
4908
|
-
"flex w-full flex-col gap-lg overflow-hidden
|
|
4940
|
+
"flex w-full flex-col gap-lg overflow-hidden text-ink",
|
|
4941
|
+
onCanvas ? "rounded-none bg-transparent p-0" : "rounded-xl border border-hairline bg-surface p-lg shadow-card",
|
|
4909
4942
|
className
|
|
4910
4943
|
),
|
|
4911
4944
|
...rest,
|
|
4912
4945
|
children: [
|
|
4913
4946
|
announcement ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "inline-flex max-w-full self-start rounded-xl border border-hairline bg-surface px-md py-xxs shadow-sm", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Link, { href: announcement.href, tone: "muted", underline: "hover", size: "sm", trailingIcon: "chevron-right", className: "min-w-0", children: announcement.label }) }) : null,
|
|
4914
4947
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-md", children: [
|
|
4915
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
4948
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
4949
|
+
"h1",
|
|
4950
|
+
{
|
|
4951
|
+
id: titleId,
|
|
4952
|
+
className: cn47("text-ink", display ? "text-balance text-display-lg" : "text-heading-lg"),
|
|
4953
|
+
children: title
|
|
4954
|
+
}
|
|
4955
|
+
),
|
|
4916
4956
|
description ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "text-body-lg text-muted", children: description }) : null
|
|
4917
4957
|
] }),
|
|
4918
4958
|
primaryAction || secondaryAction ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: cn47("flex gap-sm", stack ? "flex-col" : "flex-row"), children: [
|
|
@@ -4969,16 +5009,35 @@ var HeroSection = React50.forwardRef(
|
|
|
4969
5009
|
media,
|
|
4970
5010
|
mobileMedia,
|
|
4971
5011
|
proof,
|
|
5012
|
+
surface: surface2 = "card",
|
|
5013
|
+
titleSize = "heading",
|
|
4972
5014
|
desktopProps,
|
|
4973
5015
|
mobileProps,
|
|
4974
5016
|
className,
|
|
4975
5017
|
...rest
|
|
4976
5018
|
}, ref) => {
|
|
4977
|
-
const shared = {
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
5019
|
+
const shared = {
|
|
5020
|
+
announcement,
|
|
5021
|
+
title,
|
|
5022
|
+
description,
|
|
5023
|
+
primaryAction,
|
|
5024
|
+
secondaryAction,
|
|
5025
|
+
proof,
|
|
5026
|
+
surface: surface2,
|
|
5027
|
+
titleSize
|
|
5028
|
+
};
|
|
5029
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
5030
|
+
"div",
|
|
5031
|
+
{
|
|
5032
|
+
ref,
|
|
5033
|
+
className: cn48("w-full", surface2 === "transparent" ? "rounded-none" : "rounded-xl", className),
|
|
5034
|
+
...rest,
|
|
5035
|
+
children: [
|
|
5036
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "hidden w-full md:block", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(HeroSectionDesktop, { ...shared, media, ...desktopProps }) }),
|
|
5037
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "w-full md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(HeroSectionMobile, { ...shared, media: mobileMedia ?? media, ...mobileProps }) })
|
|
5038
|
+
]
|
|
5039
|
+
}
|
|
5040
|
+
);
|
|
4982
5041
|
}
|
|
4983
5042
|
);
|
|
4984
5043
|
HeroSection.displayName = "HeroSection";
|
package/dist/index.js
CHANGED
|
@@ -100,7 +100,23 @@ var ICON_REGISTRY = {
|
|
|
100
100
|
"slash": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M22 2 2 22" }] },
|
|
101
101
|
"mic": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M12 19v3" }, { tag: "path", d: "M19 10v2a7 7 0 0 1-14 0v-2" }, { tag: "rect", x: "9", y: "2", width: "6", height: "13", rx: "3" }] },
|
|
102
102
|
"sun": { viewBox: "0 0 24 24", nodes: [{ tag: "circle", cx: "12", cy: "12", r: "4" }, { tag: "path", d: "M12 2v2" }, { tag: "path", d: "M12 20v2" }, { tag: "path", d: "m4.93 4.93 1.41 1.41" }, { tag: "path", d: "m17.66 17.66 1.41 1.41" }, { tag: "path", d: "M2 12h2" }, { tag: "path", d: "M20 12h2" }, { tag: "path", d: "m6.34 17.66-1.41 1.41" }, { tag: "path", d: "m19.07 4.93-1.41 1.41" }] },
|
|
103
|
-
"moon": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" }] }
|
|
103
|
+
"moon": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" }] },
|
|
104
|
+
"log-out": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "m16 17 5-5-5-5" }, { tag: "path", d: "M21 12H9" }, { tag: "path", d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }] },
|
|
105
|
+
"git-merge": { viewBox: "0 0 24 24", nodes: [{ tag: "circle", cx: "18", cy: "18", r: "3" }, { tag: "circle", cx: "6", cy: "6", r: "3" }, { tag: "path", d: "M6 21V9a9 9 0 0 0 9 9" }] },
|
|
106
|
+
"square-kanban": { viewBox: "0 0 24 24", nodes: [{ tag: "rect", width: "18", height: "18", x: "3", y: "3", rx: "2" }, { tag: "path", d: "M8 7v7" }, { tag: "path", d: "M12 7v4" }, { tag: "path", d: "M16 7v9" }] },
|
|
107
|
+
"list": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M3 12h.01" }, { tag: "path", d: "M3 18h.01" }, { tag: "path", d: "M3 6h.01" }, { tag: "path", d: "M8 12h13" }, { tag: "path", d: "M8 18h13" }, { tag: "path", d: "M8 6h13" }] },
|
|
108
|
+
"arrow-left": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "m12 19-7-7 7-7" }, { tag: "path", d: "M19 12H5" }] },
|
|
109
|
+
"trophy": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978" }, { tag: "path", d: "M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978" }, { tag: "path", d: "M18 9h1.5a1 1 0 0 0 0-5H18" }, { tag: "path", d: "M4 22h16" }, { tag: "path", d: "M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z" }, { tag: "path", d: "M6 9H4.5a1 1 0 0 1 0-5H6" }] },
|
|
110
|
+
"refresh-cw": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }, { tag: "path", d: "M21 3v5h-5" }, { tag: "path", d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }, { tag: "path", d: "M8 16H3v5" }] },
|
|
111
|
+
"rotate-ccw": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }, { tag: "path", d: "M3 3v5h5" }] },
|
|
112
|
+
"table-of-contents": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M16 12H3" }, { tag: "path", d: "M16 18H3" }, { tag: "path", d: "M16 6H3" }, { tag: "path", d: "M21 12h.01" }, { tag: "path", d: "M21 18h.01" }, { tag: "path", d: "M21 6h.01" }] },
|
|
113
|
+
"badge": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z" }] },
|
|
114
|
+
"book-a": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" }, { tag: "path", d: "m8 13 4-7 4 7" }, { tag: "path", d: "M9.1 11h5.7" }] },
|
|
115
|
+
"cross": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M4 9a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z" }, { tag: "path", d: "M14 9a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2z" }, { tag: "path", d: "M4 15a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z" }, { tag: "path", d: "M14 15a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2z" }] },
|
|
116
|
+
"users": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }, { tag: "circle", cx: "9", cy: "7", r: "4" }, { tag: "path", d: "M22 21v-2a4 4 0 0 0-3-3.87" }, { tag: "path", d: "M16 3.13a4 4 0 0 1 0 7.75" }] },
|
|
117
|
+
"user-plus": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }, { tag: "circle", cx: "9", cy: "7", r: "4" }, { tag: "line", x1: "19", x2: "19", y1: "8", y2: "14" }, { tag: "line", x1: "22", x2: "16", y1: "11", y2: "11" }] },
|
|
118
|
+
"circle-x": { viewBox: "0 0 24 24", nodes: [{ tag: "circle", cx: "12", cy: "12", r: "10" }, { tag: "path", d: "m15 9-6 6" }, { tag: "path", d: "m9 9 6 6" }] },
|
|
119
|
+
"calendar-clock": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5" }, { tag: "path", d: "M16 2v4" }, { tag: "path", d: "M8 2v4" }, { tag: "path", d: "M3 10h5" }, { tag: "path", d: "M17.5 17.5 16 16.3V14" }, { tag: "circle", cx: "16", cy: "16", r: "6" }] }
|
|
104
120
|
};
|
|
105
121
|
|
|
106
122
|
// virtual-pkg:src/atoms/Icon/Icon.tsx
|
|
@@ -4702,17 +4718,22 @@ var HeroSectionDesktop = React48.forwardRef(
|
|
|
4702
4718
|
secondaryAction = { label: "Watch demo", icon: "play" },
|
|
4703
4719
|
media,
|
|
4704
4720
|
proof,
|
|
4721
|
+
surface: surface2 = "card",
|
|
4722
|
+
titleSize = "heading",
|
|
4705
4723
|
className,
|
|
4706
4724
|
...rest
|
|
4707
4725
|
}, ref) => {
|
|
4708
4726
|
const titleId = React48.useId();
|
|
4727
|
+
const onCanvas = surface2 === "transparent";
|
|
4728
|
+
const display = titleSize === "display";
|
|
4709
4729
|
return /* @__PURE__ */ jsxs44(
|
|
4710
4730
|
"section",
|
|
4711
4731
|
{
|
|
4712
4732
|
ref,
|
|
4713
4733
|
"aria-labelledby": titleId,
|
|
4714
4734
|
className: cn46(
|
|
4715
|
-
"grid w-full grid-cols-12 items-center gap-xl overflow-hidden
|
|
4735
|
+
"grid w-full grid-cols-12 items-center gap-xl overflow-hidden text-ink",
|
|
4736
|
+
onCanvas ? "rounded-none bg-transparent p-0" : "rounded-xl border border-hairline bg-surface p-xl shadow-card",
|
|
4716
4737
|
className
|
|
4717
4738
|
),
|
|
4718
4739
|
...rest,
|
|
@@ -4720,8 +4741,15 @@ var HeroSectionDesktop = React48.forwardRef(
|
|
|
4720
4741
|
/* @__PURE__ */ jsxs44("div", { className: cn46("flex flex-col gap-lg", media ? "col-span-12 md:col-span-6 lg:col-span-5" : "col-span-12 md:col-span-10 lg:col-span-8"), children: [
|
|
4721
4742
|
announcement ? /* @__PURE__ */ jsx48("span", { className: "inline-flex self-start rounded-xl border border-hairline bg-surface px-md py-xxs shadow-sm", children: /* @__PURE__ */ jsx48(Link, { href: announcement.href, tone: "muted", underline: "hover", size: "sm", trailingIcon: "chevron-right", children: announcement.label }) }) : null,
|
|
4722
4743
|
/* @__PURE__ */ jsxs44("div", { className: "flex flex-col gap-base", children: [
|
|
4723
|
-
/* @__PURE__ */ jsx48(
|
|
4724
|
-
|
|
4744
|
+
/* @__PURE__ */ jsx48(
|
|
4745
|
+
"h1",
|
|
4746
|
+
{
|
|
4747
|
+
id: titleId,
|
|
4748
|
+
className: cn46("text-ink", display ? "text-balance text-display-lg" : "text-heading-lg"),
|
|
4749
|
+
children: title
|
|
4750
|
+
}
|
|
4751
|
+
),
|
|
4752
|
+
description ? /* @__PURE__ */ jsx48("p", { className: cn46("text-muted", display ? "text-body-lg" : "text-body-md"), children: description }) : null
|
|
4725
4753
|
] }),
|
|
4726
4754
|
primaryAction || secondaryAction ? /* @__PURE__ */ jsxs44("div", { className: "flex flex-wrap items-center gap-sm", children: [
|
|
4727
4755
|
primaryAction ? /* @__PURE__ */ jsx48(
|
|
@@ -4775,25 +4803,37 @@ var HeroSectionMobile = React49.forwardRef(
|
|
|
4775
4803
|
media,
|
|
4776
4804
|
proof,
|
|
4777
4805
|
actionsLayout = "stack",
|
|
4806
|
+
surface: surface2 = "card",
|
|
4807
|
+
titleSize = "heading",
|
|
4778
4808
|
className,
|
|
4779
4809
|
...rest
|
|
4780
4810
|
}, ref) => {
|
|
4781
4811
|
const titleId = React49.useId();
|
|
4782
4812
|
const stack = actionsLayout === "stack";
|
|
4813
|
+
const onCanvas = surface2 === "transparent";
|
|
4814
|
+
const display = titleSize === "display";
|
|
4783
4815
|
return /* @__PURE__ */ jsxs45(
|
|
4784
4816
|
"section",
|
|
4785
4817
|
{
|
|
4786
4818
|
ref,
|
|
4787
4819
|
"aria-labelledby": titleId,
|
|
4788
4820
|
className: cn47(
|
|
4789
|
-
"flex w-full flex-col gap-lg overflow-hidden
|
|
4821
|
+
"flex w-full flex-col gap-lg overflow-hidden text-ink",
|
|
4822
|
+
onCanvas ? "rounded-none bg-transparent p-0" : "rounded-xl border border-hairline bg-surface p-lg shadow-card",
|
|
4790
4823
|
className
|
|
4791
4824
|
),
|
|
4792
4825
|
...rest,
|
|
4793
4826
|
children: [
|
|
4794
4827
|
announcement ? /* @__PURE__ */ jsx49("span", { className: "inline-flex max-w-full self-start rounded-xl border border-hairline bg-surface px-md py-xxs shadow-sm", children: /* @__PURE__ */ jsx49(Link, { href: announcement.href, tone: "muted", underline: "hover", size: "sm", trailingIcon: "chevron-right", className: "min-w-0", children: announcement.label }) }) : null,
|
|
4795
4828
|
/* @__PURE__ */ jsxs45("div", { className: "flex flex-col gap-md", children: [
|
|
4796
|
-
/* @__PURE__ */ jsx49(
|
|
4829
|
+
/* @__PURE__ */ jsx49(
|
|
4830
|
+
"h1",
|
|
4831
|
+
{
|
|
4832
|
+
id: titleId,
|
|
4833
|
+
className: cn47("text-ink", display ? "text-balance text-display-lg" : "text-heading-lg"),
|
|
4834
|
+
children: title
|
|
4835
|
+
}
|
|
4836
|
+
),
|
|
4797
4837
|
description ? /* @__PURE__ */ jsx49("p", { className: "text-body-lg text-muted", children: description }) : null
|
|
4798
4838
|
] }),
|
|
4799
4839
|
primaryAction || secondaryAction ? /* @__PURE__ */ jsxs45("div", { className: cn47("flex gap-sm", stack ? "flex-col" : "flex-row"), children: [
|
|
@@ -4850,16 +4890,35 @@ var HeroSection = React50.forwardRef(
|
|
|
4850
4890
|
media,
|
|
4851
4891
|
mobileMedia,
|
|
4852
4892
|
proof,
|
|
4893
|
+
surface: surface2 = "card",
|
|
4894
|
+
titleSize = "heading",
|
|
4853
4895
|
desktopProps,
|
|
4854
4896
|
mobileProps,
|
|
4855
4897
|
className,
|
|
4856
4898
|
...rest
|
|
4857
4899
|
}, ref) => {
|
|
4858
|
-
const shared = {
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4900
|
+
const shared = {
|
|
4901
|
+
announcement,
|
|
4902
|
+
title,
|
|
4903
|
+
description,
|
|
4904
|
+
primaryAction,
|
|
4905
|
+
secondaryAction,
|
|
4906
|
+
proof,
|
|
4907
|
+
surface: surface2,
|
|
4908
|
+
titleSize
|
|
4909
|
+
};
|
|
4910
|
+
return /* @__PURE__ */ jsxs46(
|
|
4911
|
+
"div",
|
|
4912
|
+
{
|
|
4913
|
+
ref,
|
|
4914
|
+
className: cn48("w-full", surface2 === "transparent" ? "rounded-none" : "rounded-xl", className),
|
|
4915
|
+
...rest,
|
|
4916
|
+
children: [
|
|
4917
|
+
/* @__PURE__ */ jsx50("div", { className: "hidden w-full md:block", children: /* @__PURE__ */ jsx50(HeroSectionDesktop, { ...shared, media, ...desktopProps }) }),
|
|
4918
|
+
/* @__PURE__ */ jsx50("div", { className: "w-full md:hidden", children: /* @__PURE__ */ jsx50(HeroSectionMobile, { ...shared, media: mobileMedia ?? media, ...mobileProps }) })
|
|
4919
|
+
]
|
|
4920
|
+
}
|
|
4921
|
+
);
|
|
4863
4922
|
}
|
|
4864
4923
|
);
|
|
4865
4924
|
HeroSection.displayName = "HeroSection";
|
package/dist/styles.css
CHANGED
package/package.json
CHANGED
|
@@ -5,12 +5,16 @@ import {
|
|
|
5
5
|
type HeroAnnouncement,
|
|
6
6
|
type HeroProof,
|
|
7
7
|
type HeroSectionDesktopProps,
|
|
8
|
+
type HeroSurface,
|
|
9
|
+
type HeroTitleSize,
|
|
8
10
|
} from "../HeroSectionDesktop";
|
|
9
11
|
import { HeroSectionMobile, type HeroSectionMobileProps } from "../HeroSectionMobile";
|
|
10
12
|
|
|
11
13
|
const cn = (...parts: Array<string | false | null | undefined>) =>
|
|
12
14
|
parts.filter(Boolean).join(" ");
|
|
13
15
|
|
|
16
|
+
export type { HeroSurface, HeroTitleSize };
|
|
17
|
+
|
|
14
18
|
export interface HeroSectionProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
15
19
|
announcement?: HeroAnnouncement;
|
|
16
20
|
title?: React.ReactNode;
|
|
@@ -22,6 +26,14 @@ export interface HeroSectionProps extends Omit<React.HTMLAttributes<HTMLDivEleme
|
|
|
22
26
|
/** Separate (e.g. cropped) media for the mobile layout; falls back to `media`. */
|
|
23
27
|
mobileMedia?: React.ReactNode;
|
|
24
28
|
proof?: HeroProof;
|
|
29
|
+
/**
|
|
30
|
+
* `card` (default) keeps the bordered surface card.
|
|
31
|
+
* `transparent` drops border, fill, shadow and outer padding so the hero sits
|
|
32
|
+
* directly on the page canvas (e.g. over an ambient brand glow).
|
|
33
|
+
*/
|
|
34
|
+
surface?: HeroSurface;
|
|
35
|
+
/** `heading` (default) keeps `text-heading-lg`; `display` uses `text-display-lg`. */
|
|
36
|
+
titleSize?: HeroTitleSize;
|
|
25
37
|
desktopProps?: Partial<HeroSectionDesktopProps>;
|
|
26
38
|
mobileProps?: Partial<HeroSectionMobileProps>;
|
|
27
39
|
}
|
|
@@ -37,6 +49,8 @@ export const HeroSection = React.forwardRef<HTMLDivElement, HeroSectionProps>(
|
|
|
37
49
|
media,
|
|
38
50
|
mobileMedia,
|
|
39
51
|
proof,
|
|
52
|
+
surface = "card",
|
|
53
|
+
titleSize = "heading",
|
|
40
54
|
desktopProps,
|
|
41
55
|
mobileProps,
|
|
42
56
|
className,
|
|
@@ -44,9 +58,22 @@ export const HeroSection = React.forwardRef<HTMLDivElement, HeroSectionProps>(
|
|
|
44
58
|
},
|
|
45
59
|
ref,
|
|
46
60
|
) => {
|
|
47
|
-
const shared = {
|
|
61
|
+
const shared = {
|
|
62
|
+
announcement,
|
|
63
|
+
title,
|
|
64
|
+
description,
|
|
65
|
+
primaryAction,
|
|
66
|
+
secondaryAction,
|
|
67
|
+
proof,
|
|
68
|
+
surface,
|
|
69
|
+
titleSize,
|
|
70
|
+
};
|
|
48
71
|
return (
|
|
49
|
-
<div
|
|
72
|
+
<div
|
|
73
|
+
ref={ref}
|
|
74
|
+
className={cn("w-full", surface === "transparent" ? "rounded-none" : "rounded-xl", className)}
|
|
75
|
+
{...rest}
|
|
76
|
+
>
|
|
50
77
|
<div className="hidden w-full md:block">
|
|
51
78
|
<HeroSectionDesktop {...shared} media={media} {...desktopProps} />
|
|
52
79
|
</div>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { HeroSection } from "./HeroSection";
|
|
2
|
-
export type { HeroSectionProps } from "./HeroSection";
|
|
2
|
+
export type { HeroSectionProps, HeroSurface, HeroTitleSize } from "./HeroSection";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { HeroSection } from "./HeroSection";
|
|
3
|
+
import { HeroSectionMobile } from "../HeroSectionMobile";
|
|
3
4
|
import { Avatar } from "../Avatar";
|
|
5
|
+
import { Button } from "../Button";
|
|
4
6
|
import { Icon } from "../Icon";
|
|
5
7
|
import { Input } from "../Input";
|
|
6
8
|
|
|
@@ -26,18 +28,87 @@ function AppShot() {
|
|
|
26
28
|
|
|
27
29
|
export default function HeroSectionPreview() {
|
|
28
30
|
const [last, setLast] = React.useState("—");
|
|
31
|
+
const [surface, setSurface] = React.useState<"card" | "transparent">("card");
|
|
32
|
+
const [titleSize, setTitleSize] = React.useState<"heading" | "display">("display");
|
|
33
|
+
|
|
29
34
|
return (
|
|
30
|
-
<div className="w-full p-lg space-y-
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
<div className="w-full max-w-5xl mx-auto p-lg space-y-xl">
|
|
36
|
+
<div className="flex flex-wrap items-center gap-sm">
|
|
37
|
+
<span className="text-caption text-muted">surface</span>
|
|
38
|
+
<Button
|
|
39
|
+
variant={surface === "card" ? "primary" : "secondary"}
|
|
40
|
+
size="sm"
|
|
41
|
+
onClick={() => setSurface("card")}
|
|
42
|
+
>
|
|
43
|
+
card
|
|
44
|
+
</Button>
|
|
45
|
+
<Button
|
|
46
|
+
variant={surface === "transparent" ? "primary" : "secondary"}
|
|
47
|
+
size="sm"
|
|
48
|
+
onClick={() => setSurface("transparent")}
|
|
49
|
+
>
|
|
50
|
+
transparent
|
|
51
|
+
</Button>
|
|
52
|
+
<span className="text-caption text-muted">titleSize</span>
|
|
53
|
+
<Button
|
|
54
|
+
variant={titleSize === "heading" ? "primary" : "secondary"}
|
|
55
|
+
size="sm"
|
|
56
|
+
onClick={() => setTitleSize("heading")}
|
|
57
|
+
>
|
|
58
|
+
heading
|
|
59
|
+
</Button>
|
|
60
|
+
<Button
|
|
61
|
+
variant={titleSize === "display" ? "primary" : "secondary"}
|
|
62
|
+
size="sm"
|
|
63
|
+
onClick={() => setTitleSize("display")}
|
|
64
|
+
>
|
|
65
|
+
display
|
|
66
|
+
</Button>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
<div className="space-y-base">
|
|
70
|
+
<p className="text-caption text-muted">
|
|
71
|
+
Desktop + mobile layout · surface="{surface}" titleSize="{titleSize}"
|
|
72
|
+
</p>
|
|
73
|
+
<HeroSection
|
|
74
|
+
surface={surface}
|
|
75
|
+
titleSize={titleSize}
|
|
76
|
+
announcement={{ label: "Lessons on modern go-to-market", href: "#lessons" }}
|
|
77
|
+
title="The agentic CRM that meets you where you work."
|
|
78
|
+
description="Bring your company, people, and work together in a powerful, flexible workspace."
|
|
79
|
+
primaryAction={{ label: "Get started", onClick: () => setLast("Get started") }}
|
|
80
|
+
secondaryAction={{ label: "Watch demo", icon: "play", onClick: () => setLast("Watch demo") }}
|
|
81
|
+
media={<AppShot />}
|
|
82
|
+
proof={{ label: "Trusted by growing teams", logos: ["Northwind", "Dialline", "MAISON"] }}
|
|
83
|
+
/>
|
|
84
|
+
<p className="text-body-sm text-muted">Last action: {last}</p>
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
<div className="space-y-base border-t border-hairline pt-lg">
|
|
88
|
+
<p className="text-caption text-muted">
|
|
89
|
+
Mobile layout · surface="transparent" titleSize="display"
|
|
90
|
+
</p>
|
|
91
|
+
<HeroSectionMobile
|
|
92
|
+
surface="transparent"
|
|
93
|
+
titleSize="display"
|
|
94
|
+
title="Welcome to agentic revenue."
|
|
95
|
+
description="The CRM that builds pipeline, advances deals, and grows accounts around the clock."
|
|
96
|
+
primaryAction={{ label: "Start for free", onClick: () => setLast("Start for free") }}
|
|
97
|
+
secondaryAction={{ label: "Talk to sales", onClick: () => setLast("Talk to sales") }}
|
|
98
|
+
proof={{ label: "Trusted by growing teams", logos: ["Northwind", "Dialline"] }}
|
|
99
|
+
/>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<div className="space-y-base">
|
|
103
|
+
<p className="text-caption text-muted">Defaults unchanged · surface="card" titleSize="heading"</p>
|
|
104
|
+
<HeroSectionMobile
|
|
105
|
+
title="Welcome to agentic revenue."
|
|
106
|
+
description="The CRM that builds pipeline, advances deals, and grows accounts around the clock."
|
|
107
|
+
primaryAction={{ label: "Start for free", onClick: () => setLast("Start for free") }}
|
|
108
|
+
secondaryAction={{ label: "Talk to sales", onClick: () => setLast("Talk to sales") }}
|
|
109
|
+
proof={{ label: "Trusted by growing teams", logos: ["Northwind", "Dialline"] }}
|
|
110
|
+
/>
|
|
111
|
+
</div>
|
|
41
112
|
</div>
|
|
42
113
|
);
|
|
43
114
|
}
|
|
@@ -24,6 +24,11 @@ export interface HeroProof {
|
|
|
24
24
|
logos: React.ReactNode[];
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/** `card` = bordered surface card (default). `transparent` = sits flush on the page canvas. */
|
|
28
|
+
export type HeroSurface = "card" | "transparent";
|
|
29
|
+
/** `heading` = heading-lg title (default). `display` = display-lg title. */
|
|
30
|
+
export type HeroTitleSize = "heading" | "display";
|
|
31
|
+
|
|
27
32
|
export interface HeroSectionDesktopProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> {
|
|
28
33
|
/** Optional announcement pill above the headline. */
|
|
29
34
|
announcement?: HeroAnnouncement;
|
|
@@ -35,6 +40,10 @@ export interface HeroSectionDesktopProps extends Omit<React.HTMLAttributes<HTMLE
|
|
|
35
40
|
media?: React.ReactNode;
|
|
36
41
|
/** Social-proof row under the actions. */
|
|
37
42
|
proof?: HeroProof;
|
|
43
|
+
/** Drops the border, fill, shadow and outer padding so the hero aligns with the page container. */
|
|
44
|
+
surface?: HeroSurface;
|
|
45
|
+
/** Title scale: `heading` keeps `text-heading-lg`, `display` uses `text-display-lg`. */
|
|
46
|
+
titleSize?: HeroTitleSize;
|
|
38
47
|
}
|
|
39
48
|
|
|
40
49
|
export const HeroSectionDesktop = React.forwardRef<HTMLElement, HeroSectionDesktopProps>(
|
|
@@ -47,18 +56,25 @@ export const HeroSectionDesktop = React.forwardRef<HTMLElement, HeroSectionDeskt
|
|
|
47
56
|
secondaryAction = { label: "Watch demo", icon: "play" },
|
|
48
57
|
media,
|
|
49
58
|
proof,
|
|
59
|
+
surface = "card",
|
|
60
|
+
titleSize = "heading",
|
|
50
61
|
className,
|
|
51
62
|
...rest
|
|
52
63
|
},
|
|
53
64
|
ref,
|
|
54
65
|
) => {
|
|
55
66
|
const titleId = React.useId();
|
|
67
|
+
const onCanvas = surface === "transparent";
|
|
68
|
+
const display = titleSize === "display";
|
|
56
69
|
return (
|
|
57
70
|
<section
|
|
58
71
|
ref={ref}
|
|
59
72
|
aria-labelledby={titleId}
|
|
60
73
|
className={cn(
|
|
61
|
-
"grid w-full grid-cols-12 items-center gap-xl overflow-hidden
|
|
74
|
+
"grid w-full grid-cols-12 items-center gap-xl overflow-hidden text-ink",
|
|
75
|
+
onCanvas
|
|
76
|
+
? "rounded-none bg-transparent p-0"
|
|
77
|
+
: "rounded-xl border border-hairline bg-surface p-xl shadow-card",
|
|
62
78
|
className,
|
|
63
79
|
)}
|
|
64
80
|
{...rest}
|
|
@@ -72,10 +88,15 @@ export const HeroSectionDesktop = React.forwardRef<HTMLElement, HeroSectionDeskt
|
|
|
72
88
|
</span>
|
|
73
89
|
) : null}
|
|
74
90
|
<div className="flex flex-col gap-base">
|
|
75
|
-
<h1
|
|
91
|
+
<h1
|
|
92
|
+
id={titleId}
|
|
93
|
+
className={cn("text-ink", display ? "text-balance text-display-lg" : "text-heading-lg")}
|
|
94
|
+
>
|
|
76
95
|
{title}
|
|
77
96
|
</h1>
|
|
78
|
-
{description ?
|
|
97
|
+
{description ? (
|
|
98
|
+
<p className={cn("text-muted", display ? "text-body-lg" : "text-body-md")}>{description}</p>
|
|
99
|
+
) : null}
|
|
79
100
|
</div>
|
|
80
101
|
{primaryAction || secondaryAction ? (
|
|
81
102
|
<div className="flex flex-wrap items-center gap-sm">
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
export { HeroSectionDesktop } from "./HeroSectionDesktop";
|
|
2
|
-
export type {
|
|
2
|
+
export type {
|
|
3
|
+
HeroSectionDesktopProps,
|
|
4
|
+
HeroAction,
|
|
5
|
+
HeroAnnouncement,
|
|
6
|
+
HeroProof,
|
|
7
|
+
HeroSurface,
|
|
8
|
+
HeroTitleSize,
|
|
9
|
+
} from "./HeroSectionDesktop";
|
|
@@ -2,7 +2,13 @@ import * as React from "react";
|
|
|
2
2
|
import { Button } from "../Button";
|
|
3
3
|
import { Icon } from "../Icon";
|
|
4
4
|
import { Link } from "../Link";
|
|
5
|
-
import type {
|
|
5
|
+
import type {
|
|
6
|
+
HeroAction,
|
|
7
|
+
HeroAnnouncement,
|
|
8
|
+
HeroProof,
|
|
9
|
+
HeroSurface,
|
|
10
|
+
HeroTitleSize,
|
|
11
|
+
} from "../HeroSectionDesktop";
|
|
6
12
|
|
|
7
13
|
const cn = (...parts: Array<string | false | null | undefined>) =>
|
|
8
14
|
parts.filter(Boolean).join(" ");
|
|
@@ -19,6 +25,10 @@ export interface HeroSectionMobileProps extends Omit<React.HTMLAttributes<HTMLEl
|
|
|
19
25
|
proof?: HeroProof;
|
|
20
26
|
/** `stack` = full-width buttons stacked (default); `row` = side by side. */
|
|
21
27
|
actionsLayout?: "stack" | "row";
|
|
28
|
+
/** Drops the border, fill, shadow and outer padding so the hero aligns with the page container. */
|
|
29
|
+
surface?: HeroSurface;
|
|
30
|
+
/** Title scale: `heading` keeps `text-heading-lg`, `display` uses `text-display-lg`. */
|
|
31
|
+
titleSize?: HeroTitleSize;
|
|
22
32
|
}
|
|
23
33
|
|
|
24
34
|
export const HeroSectionMobile = React.forwardRef<HTMLElement, HeroSectionMobileProps>(
|
|
@@ -32,6 +42,8 @@ export const HeroSectionMobile = React.forwardRef<HTMLElement, HeroSectionMobile
|
|
|
32
42
|
media,
|
|
33
43
|
proof,
|
|
34
44
|
actionsLayout = "stack",
|
|
45
|
+
surface = "card",
|
|
46
|
+
titleSize = "heading",
|
|
35
47
|
className,
|
|
36
48
|
...rest
|
|
37
49
|
},
|
|
@@ -39,12 +51,17 @@ export const HeroSectionMobile = React.forwardRef<HTMLElement, HeroSectionMobile
|
|
|
39
51
|
) => {
|
|
40
52
|
const titleId = React.useId();
|
|
41
53
|
const stack = actionsLayout === "stack";
|
|
54
|
+
const onCanvas = surface === "transparent";
|
|
55
|
+
const display = titleSize === "display";
|
|
42
56
|
return (
|
|
43
57
|
<section
|
|
44
58
|
ref={ref}
|
|
45
59
|
aria-labelledby={titleId}
|
|
46
60
|
className={cn(
|
|
47
|
-
"flex w-full flex-col gap-lg overflow-hidden
|
|
61
|
+
"flex w-full flex-col gap-lg overflow-hidden text-ink",
|
|
62
|
+
onCanvas
|
|
63
|
+
? "rounded-none bg-transparent p-0"
|
|
64
|
+
: "rounded-xl border border-hairline bg-surface p-lg shadow-card",
|
|
48
65
|
className,
|
|
49
66
|
)}
|
|
50
67
|
{...rest}
|
|
@@ -57,7 +74,10 @@ export const HeroSectionMobile = React.forwardRef<HTMLElement, HeroSectionMobile
|
|
|
57
74
|
</span>
|
|
58
75
|
) : null}
|
|
59
76
|
<div className="flex flex-col gap-md">
|
|
60
|
-
<h1
|
|
77
|
+
<h1
|
|
78
|
+
id={titleId}
|
|
79
|
+
className={cn("text-ink", display ? "text-balance text-display-lg" : "text-heading-lg")}
|
|
80
|
+
>
|
|
61
81
|
{title}
|
|
62
82
|
</h1>
|
|
63
83
|
{description ? <p className="text-body-lg text-muted">{description}</p> : null}
|
|
@@ -85,6 +85,22 @@ export const ICON_REGISTRY = {
|
|
|
85
85
|
"mic": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M12 19v3" }, { tag: "path", d: "M19 10v2a7 7 0 0 1-14 0v-2" }, { tag: "rect", x: "9", y: "2", width: "6", height: "13", rx: "3" }] },
|
|
86
86
|
"sun": { viewBox: "0 0 24 24", nodes: [{ tag: "circle", cx: "12", cy: "12", r: "4" }, { tag: "path", d: "M12 2v2" }, { tag: "path", d: "M12 20v2" }, { tag: "path", d: "m4.93 4.93 1.41 1.41" }, { tag: "path", d: "m17.66 17.66 1.41 1.41" }, { tag: "path", d: "M2 12h2" }, { tag: "path", d: "M20 12h2" }, { tag: "path", d: "m6.34 17.66-1.41 1.41" }, { tag: "path", d: "m19.07 4.93-1.41 1.41" }] },
|
|
87
87
|
"moon": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z" }] },
|
|
88
|
+
"log-out": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "m16 17 5-5-5-5" }, { tag: "path", d: "M21 12H9" }, { tag: "path", d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" }] },
|
|
89
|
+
"git-merge": { viewBox: "0 0 24 24", nodes: [{ tag: "circle", cx: "18", cy: "18", r: "3" }, { tag: "circle", cx: "6", cy: "6", r: "3" }, { tag: "path", d: "M6 21V9a9 9 0 0 0 9 9" }] },
|
|
90
|
+
"square-kanban": { viewBox: "0 0 24 24", nodes: [{ tag: "rect", width: "18", height: "18", x: "3", y: "3", rx: "2" }, { tag: "path", d: "M8 7v7" }, { tag: "path", d: "M12 7v4" }, { tag: "path", d: "M16 7v9" }] },
|
|
91
|
+
"list": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M3 12h.01" }, { tag: "path", d: "M3 18h.01" }, { tag: "path", d: "M3 6h.01" }, { tag: "path", d: "M8 12h13" }, { tag: "path", d: "M8 18h13" }, { tag: "path", d: "M8 6h13" }] },
|
|
92
|
+
"arrow-left": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "m12 19-7-7 7-7" }, { tag: "path", d: "M19 12H5" }] },
|
|
93
|
+
"trophy": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978" }, { tag: "path", d: "M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978" }, { tag: "path", d: "M18 9h1.5a1 1 0 0 0 0-5H18" }, { tag: "path", d: "M4 22h16" }, { tag: "path", d: "M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z" }, { tag: "path", d: "M6 9H4.5a1 1 0 0 1 0-5H6" }] },
|
|
94
|
+
"refresh-cw": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }, { tag: "path", d: "M21 3v5h-5" }, { tag: "path", d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }, { tag: "path", d: "M8 16H3v5" }] },
|
|
95
|
+
"rotate-ccw": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }, { tag: "path", d: "M3 3v5h5" }] },
|
|
96
|
+
"table-of-contents": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M16 12H3" }, { tag: "path", d: "M16 18H3" }, { tag: "path", d: "M16 6H3" }, { tag: "path", d: "M21 12h.01" }, { tag: "path", d: "M21 18h.01" }, { tag: "path", d: "M21 6h.01" }] },
|
|
97
|
+
"badge": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z" }] },
|
|
98
|
+
"book-a": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20" }, { tag: "path", d: "m8 13 4-7 4 7" }, { tag: "path", d: "M9.1 11h5.7" }] },
|
|
99
|
+
"cross": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M4 9a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z" }, { tag: "path", d: "M14 9a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2z" }, { tag: "path", d: "M4 15a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z" }, { tag: "path", d: "M14 15a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2z" }] },
|
|
100
|
+
"users": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }, { tag: "circle", cx: "9", cy: "7", r: "4" }, { tag: "path", d: "M22 21v-2a4 4 0 0 0-3-3.87" }, { tag: "path", d: "M16 3.13a4 4 0 0 1 0 7.75" }] },
|
|
101
|
+
"user-plus": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" }, { tag: "circle", cx: "9", cy: "7", r: "4" }, { tag: "line", x1: "19", x2: "19", y1: "8", y2: "14" }, { tag: "line", x1: "22", x2: "16", y1: "11", y2: "11" }] },
|
|
102
|
+
"circle-x": { viewBox: "0 0 24 24", nodes: [{ tag: "circle", cx: "12", cy: "12", r: "10" }, { tag: "path", d: "m15 9-6 6" }, { tag: "path", d: "m9 9 6 6" }] },
|
|
103
|
+
"calendar-clock": { viewBox: "0 0 24 24", nodes: [{ tag: "path", d: "M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5" }, { tag: "path", d: "M16 2v4" }, { tag: "path", d: "M8 2v4" }, { tag: "path", d: "M3 10h5" }, { tag: "path", d: "M17.5 17.5 16 16.3V14" }, { tag: "circle", cx: "16", cy: "16", r: "6" }] },
|
|
88
104
|
} as const;
|
|
89
105
|
|
|
90
106
|
export type IconName = keyof typeof ICON_REGISTRY;
|