@zenpatient-org/healthspan-marketing-ui 0.2.18 → 0.2.19
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/modules/HomepageHeroV2/HomepageHeroV2.cjs.js +1 -0
- package/dist/modules/HomepageHeroV2/HomepageHeroV2.d.ts +13 -0
- package/dist/modules/HomepageHeroV2/HomepageHeroV2.es.js +27 -0
- package/dist/modules/HomepageHeroV2/assets/bg.jpg +0 -0
- package/dist/modules/HomepageHeroV2/assets/bgmobile.jpg +0 -0
- package/dist/modules/HomepageHeroV2/homepageHeroV2.module.css +125 -0
- package/dist/modules/HomepageHeroV2/index.d.ts +1 -0
- package/package.json +6 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("../../pageComponents/HomepageHero/components/MiddleCarousel/MiddleCarousel.cjs.js"),o=require("../../components/Button/Button.cjs.js"),s=require("../../src/modules/HomepageHeroV2/homepageHeroV2.module.css"),l=require("../../components/Icon/Icon.cjs.js"),d=require("../../components/Icon/constants.cjs.js"),n=require("../../components/Typography/Typography.cjs.js");function m({title:t,description:i,button:r,buttonInverted:a}){return e.jsx("section",{className:s.root,"data-type":"hero",children:e.jsxs("div",{className:s.container,children:[e.jsxs("div",{className:s.textContent,children:[e.jsxs("div",{className:s.hsaContainer,children:[e.jsx(l.Icon,{name:d.EIconName.CIRCLE_CHECK,className:s.checkIcon}),e.jsx(n.Typography,{className:s.hsaText,as:"p",defaultVariant:"bodySm",children:"HSA/FSA Eligible"})]}),e.jsx(n.Typography,{className:s.title,as:"h2",defaultVariant:"displayXs",mobileVariant:"headingLg",children:t}),e.jsx(n.Typography,{className:s.description,as:"p",defaultVariant:"bodySm",mobileVariant:"bodyXs",children:i}),e.jsxs("div",{className:s.buttonContainer,children:[e.jsx(o.Button,{as:"a",href:r.link,variant:"secondary",size:"md",children:r.text}),a&&e.jsx(o.Button,{as:"a",href:a.link,variant:"muted-invert",size:"md",children:a.text})]})]}),e.jsx("div",{className:s.carouselArea,children:e.jsx(c.MiddleCarousel,{})})]})})}exports.HomepageHeroV2=m;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type HomepageHeroV2Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
button: {
|
|
5
|
+
text: string;
|
|
6
|
+
link: string;
|
|
7
|
+
};
|
|
8
|
+
buttonInverted?: {
|
|
9
|
+
text: string;
|
|
10
|
+
link: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare function HomepageHeroV2({ title, description, button, buttonInverted }: HomepageHeroV2Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { MiddleCarousel as m } from "../../pageComponents/HomepageHero/components/MiddleCarousel/MiddleCarousel.es.js";
|
|
3
|
+
import { Button as t } from "../../components/Button/Button.es.js";
|
|
4
|
+
import a from "../../modules/HomepageHeroV2/homepageHeroV2.module.css";
|
|
5
|
+
import { Icon as c } from "../../components/Icon/Icon.es.js";
|
|
6
|
+
import { EIconName as d } from "../../components/Icon/constants.es.js";
|
|
7
|
+
import { Typography as s } from "../../components/Typography/Typography.es.js";
|
|
8
|
+
function x({ title: n, description: l, button: o, buttonInverted: r }) {
|
|
9
|
+
return /* @__PURE__ */ e("section", { className: a.root, "data-type": "hero", children: /* @__PURE__ */ i("div", { className: a.container, children: [
|
|
10
|
+
/* @__PURE__ */ i("div", { className: a.textContent, children: [
|
|
11
|
+
/* @__PURE__ */ i("div", { className: a.hsaContainer, children: [
|
|
12
|
+
/* @__PURE__ */ e(c, { name: d.CIRCLE_CHECK, className: a.checkIcon }),
|
|
13
|
+
/* @__PURE__ */ e(s, { className: a.hsaText, as: "p", defaultVariant: "bodySm", children: "HSA/FSA Eligible" })
|
|
14
|
+
] }),
|
|
15
|
+
/* @__PURE__ */ e(s, { className: a.title, as: "h2", defaultVariant: "displayXs", mobileVariant: "headingLg", children: n }),
|
|
16
|
+
/* @__PURE__ */ e(s, { className: a.description, as: "p", defaultVariant: "bodySm", mobileVariant: "bodyXs", children: l }),
|
|
17
|
+
/* @__PURE__ */ i("div", { className: a.buttonContainer, children: [
|
|
18
|
+
/* @__PURE__ */ e(t, { as: "a", href: o.link, variant: "secondary", size: "md", children: o.text }),
|
|
19
|
+
r && /* @__PURE__ */ e(t, { as: "a", href: r.link, variant: "muted-invert", size: "md", children: r.text })
|
|
20
|
+
] })
|
|
21
|
+
] }),
|
|
22
|
+
/* @__PURE__ */ e("div", { className: a.carouselArea, children: /* @__PURE__ */ e(m, {}) })
|
|
23
|
+
] }) });
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
x as HomepageHeroV2
|
|
27
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
width: 100%;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
padding: 0 32px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.container {
|
|
12
|
+
position: relative;
|
|
13
|
+
display: flex;
|
|
14
|
+
height: 100%;
|
|
15
|
+
width: 100%;
|
|
16
|
+
max-width: var(--content-max-width);
|
|
17
|
+
align-items: center;
|
|
18
|
+
border-radius: var(--border-radius-lg);
|
|
19
|
+
background-image: url('./assets/bg.jpg');
|
|
20
|
+
background-size: cover;
|
|
21
|
+
background-position: center;
|
|
22
|
+
background-repeat: no-repeat;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.textContent {
|
|
26
|
+
position: relative;
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
gap: 24px;
|
|
30
|
+
color: var(--color-text-primary-inverted);
|
|
31
|
+
max-width: 480px;
|
|
32
|
+
margin-left: 88px;
|
|
33
|
+
margin-bottom: 196px;
|
|
34
|
+
margin-top: 196px;
|
|
35
|
+
justify-content: flex-start;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.hsaContainer {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: 8px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.checkIcon {
|
|
45
|
+
margin-top: -2px;
|
|
46
|
+
width: 20px;
|
|
47
|
+
height: 20px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.buttonContainer {
|
|
51
|
+
display: flex;
|
|
52
|
+
gap: 12px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.buttonContainer a {
|
|
56
|
+
width: fit-content;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.carouselArea {
|
|
60
|
+
display: flex;
|
|
61
|
+
position: absolute;
|
|
62
|
+
width: 360px;
|
|
63
|
+
height: 540px;
|
|
64
|
+
left: 50%;
|
|
65
|
+
transform: translateX(30px);
|
|
66
|
+
overflow: visible;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@media (width <= 1150px) {
|
|
70
|
+
.textContent {
|
|
71
|
+
max-width: 319px;
|
|
72
|
+
gap: 12px;
|
|
73
|
+
margin-top: 222px;
|
|
74
|
+
margin-bottom: 287px;
|
|
75
|
+
margin-left: 32px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.title {
|
|
79
|
+
font-size: 32px;
|
|
80
|
+
line-height: 110%;
|
|
81
|
+
letter-spacing: -1.28px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.description {
|
|
85
|
+
font-size: 14px;
|
|
86
|
+
letter-spacing: -0.28px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.buttonContainer {
|
|
90
|
+
margin-top: 4px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@media (width <= 868px) {
|
|
95
|
+
.root {
|
|
96
|
+
padding: 0 4px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.container {
|
|
100
|
+
background-image: url('./assets/bgmobile.jpg');
|
|
101
|
+
align-items: center;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.textContent {
|
|
106
|
+
justify-content: center;
|
|
107
|
+
text-align: center;
|
|
108
|
+
margin: unset;
|
|
109
|
+
margin-top: 221px;
|
|
110
|
+
padding: 32px 24px;
|
|
111
|
+
max-width: 510px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.hsaContainer {
|
|
115
|
+
justify-content: inherit;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.buttonContainer {
|
|
119
|
+
justify-content: inherit;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.carouselArea {
|
|
123
|
+
display: none;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { HomepageHeroV2 } from './HomepageHeroV2';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenpatient-org/healthspan-marketing-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"description": "Design system",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -595,6 +595,11 @@
|
|
|
595
595
|
"import": "./dist/modules/ScrollingText/ScrollingText.es.js",
|
|
596
596
|
"require": "./dist/modules/ScrollingText/ScrollingText.cjs.js"
|
|
597
597
|
},
|
|
598
|
+
"./HomepageHeroV2": {
|
|
599
|
+
"types": "./dist/modules/HomepageHeroV2/HomepageHeroV2.d.ts",
|
|
600
|
+
"import": "./dist/modules/HomepageHeroV2/HomepageHeroV2.es.js",
|
|
601
|
+
"require": "./dist/modules/HomepageHeroV2/HomepageHeroV2.cjs.js"
|
|
602
|
+
},
|
|
598
603
|
"./Bubbles": {
|
|
599
604
|
"types": "./dist/pageComponents/Bubbles/Bubbles.d.ts",
|
|
600
605
|
"import": "./dist/pageComponents/Bubbles/Bubbles.es.js",
|