@zenpatient-org/healthspan-marketing-ui 0.1.140 → 0.1.142
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/healthspan-marketing-ui.css +1 -1
- package/dist/modules/CallToAction/CallToAction.cjs.js +1 -1
- package/dist/modules/CallToAction/CallToAction.es.js +1 -1
- package/dist/modules/ExpandingDetails/ExpandingDetails.cjs.js +1 -1
- package/dist/modules/ExpandingDetails/ExpandingDetails.es.js +184 -111
- package/dist/modules/ScienceHero/ScienceHeroCursor.cjs.js +1 -1
- package/dist/modules/ScienceHero/ScienceHeroCursor.d.ts +2 -3
- package/dist/modules/ScienceHero/ScienceHeroCursor.es.js +6 -82
- package/dist/modules/ScienceHero/components/ScienceClientCursor.cjs.js +1 -0
- package/dist/modules/ScienceHero/components/ScienceClientCursor.d.ts +9 -0
- package/dist/modules/ScienceHero/components/ScienceClientCursor.es.js +84 -0
- package/dist/modules/ScienceHero/components/ScienceServerCursor.cjs.js +1 -0
- package/dist/modules/ScienceHero/components/ScienceServerCursor.d.ts +5 -0
- package/dist/modules/ScienceHero/components/ScienceServerCursor.es.js +4 -0
- package/dist/pageComponents/HomepageHero/HomepageHero.cjs.js +1 -1
- package/dist/pageComponents/HomepageHero/HomepageHero.es.js +13 -13
- package/package.json +1 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r, Fragment as f, jsxs as P } from "react/jsx-runtime";
|
|
3
|
+
import { useState as o, useEffect as m } from "react";
|
|
4
|
+
import { createPortal as R } from "react-dom";
|
|
5
|
+
import w from "../scienceHero.module.css.es.js";
|
|
6
|
+
function z({ children: s, backgroundImage: h, cursorLink: v }) {
|
|
7
|
+
const [i, x] = o({ x: 0, y: 0 }), [M, b] = o(0), [g, l] = o(!1), [$, c] = o(!1), [t, y] = o(null), [n, C] = o(!1);
|
|
8
|
+
m(() => {
|
|
9
|
+
c(!0);
|
|
10
|
+
const e = () => C(window.innerWidth <= 768);
|
|
11
|
+
return e(), window.addEventListener("resize", e), () => {
|
|
12
|
+
window.removeEventListener("resize", e), c(!1);
|
|
13
|
+
};
|
|
14
|
+
}, []), m(() => {
|
|
15
|
+
if (n) return;
|
|
16
|
+
const e = (p) => {
|
|
17
|
+
x({
|
|
18
|
+
x: p.clientX,
|
|
19
|
+
y: p.clientY
|
|
20
|
+
});
|
|
21
|
+
}, u = () => {
|
|
22
|
+
b(window.scrollY);
|
|
23
|
+
};
|
|
24
|
+
return window.addEventListener("mousemove", e), window.addEventListener("scroll", u), () => {
|
|
25
|
+
window.removeEventListener("mousemove", e), window.removeEventListener("scroll", u);
|
|
26
|
+
};
|
|
27
|
+
}, [n]);
|
|
28
|
+
const E = (e) => {
|
|
29
|
+
n || (y(e.currentTarget.getBoundingClientRect()), l(!0));
|
|
30
|
+
}, L = () => {
|
|
31
|
+
n || l(!1);
|
|
32
|
+
}, k = () => {
|
|
33
|
+
window.location.href = v;
|
|
34
|
+
};
|
|
35
|
+
if (n)
|
|
36
|
+
return /* @__PURE__ */ r(f, { children: s });
|
|
37
|
+
const a = `circle(270px at ${i.x}px ${i.y}px)`, d = g && t && /* @__PURE__ */ r(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
className: w.cursorContainer,
|
|
41
|
+
style: {
|
|
42
|
+
position: "fixed",
|
|
43
|
+
top: `${t.top}px`,
|
|
44
|
+
left: `${t.left}px`,
|
|
45
|
+
width: `${t.width}px`,
|
|
46
|
+
height: `${t.height}px`,
|
|
47
|
+
overflow: "hidden",
|
|
48
|
+
cursor: "pointer"
|
|
49
|
+
},
|
|
50
|
+
children: /* @__PURE__ */ r(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
className: w.normalBackground,
|
|
54
|
+
style: {
|
|
55
|
+
position: "absolute",
|
|
56
|
+
top: `${-t.top}px`,
|
|
57
|
+
left: `${-t.left}px`,
|
|
58
|
+
backgroundImage: `url(${h})`,
|
|
59
|
+
clipPath: a,
|
|
60
|
+
WebkitClipPath: a,
|
|
61
|
+
backgroundPosition: `center ${-M}px`
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
return /* @__PURE__ */ P(f, { children: [
|
|
68
|
+
/* @__PURE__ */ r(
|
|
69
|
+
"div",
|
|
70
|
+
{
|
|
71
|
+
"data-type": "hero",
|
|
72
|
+
onMouseEnter: E,
|
|
73
|
+
onMouseLeave: L,
|
|
74
|
+
onClick: k,
|
|
75
|
+
style: { cursor: "pointer" },
|
|
76
|
+
children: s
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
$ && d && R(d, document.body)
|
|
80
|
+
] });
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
z as ScienceClientCursor
|
|
84
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=({children:e})=>e;exports.ScienceServerCursor=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("../../components/HighlightedTitle/HighlightedTitle.cjs.js"),a=require("../../components/Typography/Typography.cjs.js"),r=require("../../components/Button/Button.cjs.js"),s=require("./components/MiddleCarousel/MiddleCarousel.cjs.js"),i=require("../../utils/cn/cn.cjs.js"),t=require("./homepageHero.module.css.cjs.js");function n(){return e.jsxs("section",{className:t.default.root,"data-type":"hero",children:[e.jsx("div",{className:t.default.carouselArea,children:e.jsx(s.MiddleCarousel,{})}),e.jsxs("div",{className:t.default.contentContainer,children:[e.jsx("div",{className:t.default.headline,children:e.jsx(o.HighlightedTitle,{colorScheme:"dark",title:e.jsx(a.Typography,{as:"div",defaultVariant:"displayXs",mobileVariant:"headingLg",children:e.jsxs("p",{children:[e.jsx("b",{children:"Transform your quality of living"})," through the science of aging."]})})})}),e.jsxs("div",{className:t.default.callAction,children:[e.jsx(a.Typography,{as:"p",defaultVariant:"bodyLg",mobileVariant:"bodySm",className:t.default.text,children:"Defy your age with advanced longevity protocols tailored to you by clinical experts and optimized over time through ongoing labs, performance coaching, and results tracking."}),e.jsx("div",{className:i.cn(t.default.buttonWrapper,t.default.desktop),children:e.jsx(r.Button,{as:"a",href:"https://app.gethealthspan.com/#/get-started",variant:"secondary",size:"lg",children:"Join Healthspan"})}),e.jsx("div",{className:i.cn(t.default.buttonWrapper,t.default.mobile),children:e.jsx(r.Button,{as:"a",href:"https://app.gethealthspan.com/#/get-started",variant:"secondary",size:"md",children:"Join Healthspan"})})]})]})]})}exports.HomepageHero=n;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { HighlightedTitle as
|
|
3
|
-
import { Typography as
|
|
4
|
-
import { Button as
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { HighlightedTitle as n } from "../../components/HighlightedTitle/HighlightedTitle.es.js";
|
|
3
|
+
import { Typography as t } from "../../components/Typography/Typography.es.js";
|
|
4
|
+
import { Button as i } from "../../components/Button/Button.es.js";
|
|
5
5
|
import { MiddleCarousel as l } from "./components/MiddleCarousel/MiddleCarousel.es.js";
|
|
6
|
-
import { cn as
|
|
6
|
+
import { cn as o } from "../../utils/cn/cn.es.js";
|
|
7
7
|
import a from "./homepageHero.module.css.es.js";
|
|
8
8
|
function f() {
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ r("section", { className: a.root, "data-type": "hero", children: [
|
|
10
10
|
/* @__PURE__ */ e("div", { className: a.carouselArea, children: /* @__PURE__ */ e(l, {}) }),
|
|
11
|
-
/* @__PURE__ */
|
|
11
|
+
/* @__PURE__ */ r("div", { className: a.contentContainer, children: [
|
|
12
12
|
/* @__PURE__ */ e("div", { className: a.headline, children: /* @__PURE__ */ e(
|
|
13
|
-
|
|
13
|
+
n,
|
|
14
14
|
{
|
|
15
15
|
colorScheme: "dark",
|
|
16
|
-
title: /* @__PURE__ */ e(
|
|
16
|
+
title: /* @__PURE__ */ e(t, { as: "div", defaultVariant: "displayXs", mobileVariant: "headingLg", children: /* @__PURE__ */ r("p", { children: [
|
|
17
17
|
/* @__PURE__ */ e("b", { children: "Transform your quality of living" }),
|
|
18
18
|
" through the science of aging."
|
|
19
19
|
] }) })
|
|
20
20
|
}
|
|
21
21
|
) }),
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */ e(
|
|
24
|
-
/* @__PURE__ */ e("div", { className:
|
|
25
|
-
/* @__PURE__ */ e("div", { className:
|
|
22
|
+
/* @__PURE__ */ r("div", { className: a.callAction, children: [
|
|
23
|
+
/* @__PURE__ */ e(t, { as: "p", defaultVariant: "bodyLg", mobileVariant: "bodySm", className: a.text, children: "Defy your age with advanced longevity protocols tailored to you by clinical experts and optimized over time through ongoing labs, performance coaching, and results tracking." }),
|
|
24
|
+
/* @__PURE__ */ e("div", { className: o(a.buttonWrapper, a.desktop), children: /* @__PURE__ */ e(i, { as: "a", href: "https://app.gethealthspan.com/#/get-started", variant: "secondary", size: "lg", children: "Join Healthspan" }) }),
|
|
25
|
+
/* @__PURE__ */ e("div", { className: o(a.buttonWrapper, a.mobile), children: /* @__PURE__ */ e(i, { as: "a", href: "https://app.gethealthspan.com/#/get-started", variant: "secondary", size: "md", children: "Join Healthspan" }) })
|
|
26
26
|
] })
|
|
27
27
|
] })
|
|
28
28
|
] });
|