@tampadevs/react 0.1.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/Avatar.d.ts +16 -0
- package/dist/components/Avatar.d.ts.map +1 -0
- package/dist/components/AvatarGroup.d.ts +14 -0
- package/dist/components/AvatarGroup.d.ts.map +1 -0
- package/dist/components/Button.d.ts +13 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Button.test.d.ts +2 -0
- package/dist/components/Button.test.d.ts.map +1 -0
- package/dist/components/Calendar.d.ts +27 -0
- package/dist/components/Calendar.d.ts.map +1 -0
- package/dist/components/Carousel.d.ts +11 -0
- package/dist/components/Carousel.d.ts.map +1 -0
- package/dist/components/CtaSection.d.ts +13 -0
- package/dist/components/CtaSection.d.ts.map +1 -0
- package/dist/components/EventCard.d.ts +19 -0
- package/dist/components/EventCard.d.ts.map +1 -0
- package/dist/components/Footer.d.ts +25 -0
- package/dist/components/Footer.d.ts.map +1 -0
- package/dist/components/Header.d.ts +17 -0
- package/dist/components/Header.d.ts.map +1 -0
- package/dist/components/Icon.d.ts +8 -0
- package/dist/components/Icon.d.ts.map +1 -0
- package/dist/components/Image.d.ts +17 -0
- package/dist/components/Image.d.ts.map +1 -0
- package/dist/components/ImageCarousel.d.ts +18 -0
- package/dist/components/ImageCarousel.d.ts.map +1 -0
- package/dist/components/ImageText.d.ts +16 -0
- package/dist/components/ImageText.d.ts.map +1 -0
- package/dist/components/Logo.d.ts +15 -0
- package/dist/components/Logo.d.ts.map +1 -0
- package/dist/components/Logo3d.d.ts +28 -0
- package/dist/components/Logo3d.d.ts.map +1 -0
- package/dist/components/LogoMarquee.d.ts +18 -0
- package/dist/components/LogoMarquee.d.ts.map +1 -0
- package/dist/components/NewsletterSignup.d.ts +11 -0
- package/dist/components/NewsletterSignup.d.ts.map +1 -0
- package/dist/components/OpenCollective.d.ts +16 -0
- package/dist/components/OpenCollective.d.ts.map +1 -0
- package/dist/components/PersonCard.d.ts +20 -0
- package/dist/components/PersonCard.d.ts.map +1 -0
- package/dist/components/PersonTable.d.ts +28 -0
- package/dist/components/PersonTable.d.ts.map +1 -0
- package/dist/components/PromoSection.d.ts +20 -0
- package/dist/components/PromoSection.d.ts.map +1 -0
- package/dist/components/SponsorCard.d.ts +10 -0
- package/dist/components/SponsorCard.d.ts.map +1 -0
- package/dist/components/SponsorGrid.d.ts +21 -0
- package/dist/components/SponsorGrid.d.ts.map +1 -0
- package/dist/components/Table.d.ts +30 -0
- package/dist/components/Table.d.ts.map +1 -0
- package/dist/components/VideoEmbed.d.ts +14 -0
- package/dist/components/VideoEmbed.d.ts.map +1 -0
- package/dist/components/VideoHero.d.ts +16 -0
- package/dist/components/VideoHero.d.ts.map +1 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -0
- package/dist/index10.js +185 -0
- package/dist/index10.js.map +1 -0
- package/dist/index11.js +268 -0
- package/dist/index11.js.map +1 -0
- package/dist/index12.js +133 -0
- package/dist/index12.js.map +1 -0
- package/dist/index13.js +112 -0
- package/dist/index13.js.map +1 -0
- package/dist/index14.js +286 -0
- package/dist/index14.js.map +1 -0
- package/dist/index15.js +325 -0
- package/dist/index15.js.map +1 -0
- package/dist/index16.js +204 -0
- package/dist/index16.js.map +1 -0
- package/dist/index17.js +269 -0
- package/dist/index17.js.map +1 -0
- package/dist/index18.js +147 -0
- package/dist/index18.js.map +1 -0
- package/dist/index19.js +697 -0
- package/dist/index19.js.map +1 -0
- package/dist/index2.js +181 -0
- package/dist/index2.js.map +1 -0
- package/dist/index20.js +492 -0
- package/dist/index20.js.map +1 -0
- package/dist/index21.js +277 -0
- package/dist/index21.js.map +1 -0
- package/dist/index22.js +331 -0
- package/dist/index22.js.map +1 -0
- package/dist/index23.js +98 -0
- package/dist/index23.js.map +1 -0
- package/dist/index24.js +406 -0
- package/dist/index24.js.map +1 -0
- package/dist/index25.js +464 -0
- package/dist/index25.js.map +1 -0
- package/dist/index26.js +280 -0
- package/dist/index26.js.map +1 -0
- package/dist/index27.js +234 -0
- package/dist/index27.js.map +1 -0
- package/dist/index28.js +18 -0
- package/dist/index28.js.map +1 -0
- package/dist/index29.js +10779 -0
- package/dist/index29.js.map +1 -0
- package/dist/index3.js +39 -0
- package/dist/index3.js.map +1 -0
- package/dist/index30.js +358 -0
- package/dist/index30.js.map +1 -0
- package/dist/index31.js +199 -0
- package/dist/index31.js.map +1 -0
- package/dist/index32.js +22762 -0
- package/dist/index32.js.map +1 -0
- package/dist/index4.js +142 -0
- package/dist/index4.js.map +1 -0
- package/dist/index5.js +128 -0
- package/dist/index5.js.map +1 -0
- package/dist/index6.js +109 -0
- package/dist/index6.js.map +1 -0
- package/dist/index7.js +254 -0
- package/dist/index7.js.map +1 -0
- package/dist/index8.js +237 -0
- package/dist/index8.js.map +1 -0
- package/dist/index9.js +142 -0
- package/dist/index9.js.map +1 -0
- package/dist/test/setup.d.ts +2 -0
- package/dist/test/setup.d.ts.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VideoHero.d.ts","sourceRoot":"","sources":["../../src/components/VideoHero.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlC,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,MAAW,EACX,IAAI,EACJ,OAAO,EACP,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,SAAS,GACV,EAAE,cAAc,2CA4KhB"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export { Button } from './components/Button';
|
|
2
|
+
export type { ButtonProps, ButtonVariant, ButtonSize } from './components/Button';
|
|
3
|
+
export { Icon } from './components/Icon';
|
|
4
|
+
export type { IconProps, IconSize } from './components/Icon';
|
|
5
|
+
export { Avatar } from './components/Avatar';
|
|
6
|
+
export type { AvatarProps, AvatarSize, AvatarShape, AvatarStatus } from './components/Avatar';
|
|
7
|
+
export { AvatarGroup } from './components/AvatarGroup';
|
|
8
|
+
export type { AvatarGroupProps, AvatarGroupItem, AvatarGroupSize } from './components/AvatarGroup';
|
|
9
|
+
export { Logo } from './components/Logo';
|
|
10
|
+
export type { LogoProps, LogoVariant, LogoSize } from './components/Logo';
|
|
11
|
+
export { Header } from './components/Header';
|
|
12
|
+
export type { HeaderProps, NavLink } from './components/Header';
|
|
13
|
+
export { Footer } from './components/Footer';
|
|
14
|
+
export type { FooterProps, FooterLink, FooterLinkGroup, FooterSocialLink } from './components/Footer';
|
|
15
|
+
export { Carousel } from './components/Carousel';
|
|
16
|
+
export type { CarouselProps } from './components/Carousel';
|
|
17
|
+
export { VideoHero } from './components/VideoHero';
|
|
18
|
+
export type { VideoHeroProps } from './components/VideoHero';
|
|
19
|
+
export { PromoSection } from './components/PromoSection';
|
|
20
|
+
export type { PromoSectionProps, PromoSectionVariant } from './components/PromoSection';
|
|
21
|
+
export { CtaSection } from './components/CtaSection';
|
|
22
|
+
export type { CtaSectionProps } from './components/CtaSection';
|
|
23
|
+
export { ImageText } from './components/ImageText';
|
|
24
|
+
export type { ImageTextProps } from './components/ImageText';
|
|
25
|
+
export { NewsletterSignup } from './components/NewsletterSignup';
|
|
26
|
+
export type { NewsletterSignupProps } from './components/NewsletterSignup';
|
|
27
|
+
export { Image } from './components/Image';
|
|
28
|
+
export type { ImageProps, ImageFit } from './components/Image';
|
|
29
|
+
export { ImageCarousel } from './components/ImageCarousel';
|
|
30
|
+
export type { ImageCarouselProps, CarouselImage } from './components/ImageCarousel';
|
|
31
|
+
export { VideoEmbed } from './components/VideoEmbed';
|
|
32
|
+
export type { VideoEmbedProps } from './components/VideoEmbed';
|
|
33
|
+
export { LogoMarquee } from './components/LogoMarquee';
|
|
34
|
+
export type { LogoMarqueeProps, MarqueeLogo } from './components/LogoMarquee';
|
|
35
|
+
export { EventCard } from './components/EventCard';
|
|
36
|
+
export type { EventCardProps, EventCardVariant } from './components/EventCard';
|
|
37
|
+
export { Calendar } from './components/Calendar';
|
|
38
|
+
export type { CalendarProps, CalendarEvent, CalendarVariant } from './components/Calendar';
|
|
39
|
+
export { PersonCard } from './components/PersonCard';
|
|
40
|
+
export type { PersonCardProps, PersonCardVariant, SocialLink } from './components/PersonCard';
|
|
41
|
+
export { PersonTable } from './components/PersonTable';
|
|
42
|
+
export type { PersonTableProps, PersonTableMember, PersonTableYear } from './components/PersonTable';
|
|
43
|
+
export { SponsorCard } from './components/SponsorCard';
|
|
44
|
+
export type { SponsorCardProps, SponsorCardTier } from './components/SponsorCard';
|
|
45
|
+
export { SponsorGrid } from './components/SponsorGrid';
|
|
46
|
+
export type { SponsorGridProps, Sponsor, SponsorTier } from './components/SponsorGrid';
|
|
47
|
+
export { OpenCollective } from './components/OpenCollective';
|
|
48
|
+
export type { OpenCollectiveProps, OpenCollectiveMode } from './components/OpenCollective';
|
|
49
|
+
export { Table } from './components/Table';
|
|
50
|
+
export type { TableProps, TableColumn, TableTab } from './components/Table';
|
|
51
|
+
export { Logo3d } from './components/Logo3d';
|
|
52
|
+
export type { Logo3dProps } from './components/Logo3d';
|
|
53
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1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E,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAGrG,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAElF,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,YAAY,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvF,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAG3F,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG5E,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Button as e } from "./index2.js";
|
|
2
|
+
import { Icon as m } from "./index3.js";
|
|
3
|
+
import { Avatar as x } from "./index4.js";
|
|
4
|
+
import { AvatarGroup as a } from "./index5.js";
|
|
5
|
+
import { Logo as d } from "./index6.js";
|
|
6
|
+
import { Header as C } from "./index7.js";
|
|
7
|
+
import { Footer as i } from "./index8.js";
|
|
8
|
+
import { Carousel as u } from "./index9.js";
|
|
9
|
+
import { VideoHero as c } from "./index10.js";
|
|
10
|
+
import { PromoSection as I } from "./index11.js";
|
|
11
|
+
import { CtaSection as L } from "./index12.js";
|
|
12
|
+
import { ImageText as T } from "./index13.js";
|
|
13
|
+
import { NewsletterSignup as E } from "./index14.js";
|
|
14
|
+
import { Image as H } from "./index15.js";
|
|
15
|
+
import { ImageCarousel as q } from "./index16.js";
|
|
16
|
+
import { VideoEmbed as B } from "./index17.js";
|
|
17
|
+
import { LogoMarquee as M } from "./index18.js";
|
|
18
|
+
import { EventCard as O } from "./index19.js";
|
|
19
|
+
import { Calendar as j } from "./index20.js";
|
|
20
|
+
import { PersonCard as y } from "./index21.js";
|
|
21
|
+
import { PersonTable as D } from "./index22.js";
|
|
22
|
+
import { SponsorCard as K } from "./index23.js";
|
|
23
|
+
import { SponsorGrid as R } from "./index24.js";
|
|
24
|
+
import { OpenCollective as W } from "./index25.js";
|
|
25
|
+
import { Table as Y } from "./index26.js";
|
|
26
|
+
import { Logo3d as _ } from "./index27.js";
|
|
27
|
+
export {
|
|
28
|
+
x as Avatar,
|
|
29
|
+
a as AvatarGroup,
|
|
30
|
+
e as Button,
|
|
31
|
+
j as Calendar,
|
|
32
|
+
u as Carousel,
|
|
33
|
+
L as CtaSection,
|
|
34
|
+
O as EventCard,
|
|
35
|
+
i as Footer,
|
|
36
|
+
C as Header,
|
|
37
|
+
m as Icon,
|
|
38
|
+
H as Image,
|
|
39
|
+
q as ImageCarousel,
|
|
40
|
+
T as ImageText,
|
|
41
|
+
d as Logo,
|
|
42
|
+
_ as Logo3d,
|
|
43
|
+
M as LogoMarquee,
|
|
44
|
+
E as NewsletterSignup,
|
|
45
|
+
W as OpenCollective,
|
|
46
|
+
y as PersonCard,
|
|
47
|
+
D as PersonTable,
|
|
48
|
+
I as PromoSection,
|
|
49
|
+
K as SponsorCard,
|
|
50
|
+
R as SponsorGrid,
|
|
51
|
+
Y as Table,
|
|
52
|
+
B as VideoEmbed,
|
|
53
|
+
c as VideoHero
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index10.js
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as g } from "./index28.js";
|
|
3
|
+
function u({
|
|
4
|
+
videoWebm: i,
|
|
5
|
+
videoMp4: r,
|
|
6
|
+
poster: a,
|
|
7
|
+
overlayColor: h,
|
|
8
|
+
height: t = 80,
|
|
9
|
+
logo: d,
|
|
10
|
+
heading: l,
|
|
11
|
+
subheading: s,
|
|
12
|
+
ctas: n,
|
|
13
|
+
children: c,
|
|
14
|
+
className: m
|
|
15
|
+
}) {
|
|
16
|
+
const v = {
|
|
17
|
+
"--hero-height": `${t}vh`,
|
|
18
|
+
"--hero-height-desktop": `${Math.min(t, 66.66)}vh`,
|
|
19
|
+
"--overlay-color": h || "rgba(28, 36, 56, 0.6)"
|
|
20
|
+
};
|
|
21
|
+
return /* @__PURE__ */ o("div", { className: g("td-video-hero", m), style: v, children: [
|
|
22
|
+
/* @__PURE__ */ o("div", { className: "td-video-hero__container", children: [
|
|
23
|
+
/* @__PURE__ */ o(
|
|
24
|
+
"video",
|
|
25
|
+
{
|
|
26
|
+
className: "td-video-hero__video",
|
|
27
|
+
autoPlay: !0,
|
|
28
|
+
muted: !0,
|
|
29
|
+
playsInline: !0,
|
|
30
|
+
loop: !0,
|
|
31
|
+
poster: a,
|
|
32
|
+
children: [
|
|
33
|
+
i && /* @__PURE__ */ e("source", { type: "video/webm", src: i }),
|
|
34
|
+
r && /* @__PURE__ */ e("source", { type: "video/mp4", src: r })
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ e("div", { className: "td-video-hero__overlay", children: /* @__PURE__ */ o("div", { className: "td-video-hero__content", children: [
|
|
39
|
+
d && /* @__PURE__ */ e("div", { className: "td-video-hero__logo", children: d }),
|
|
40
|
+
/* @__PURE__ */ o("div", { className: "td-video-hero__heading-group", children: [
|
|
41
|
+
l,
|
|
42
|
+
s
|
|
43
|
+
] }),
|
|
44
|
+
n && /* @__PURE__ */ e("div", { className: "td-video-hero__ctas", children: n }),
|
|
45
|
+
c
|
|
46
|
+
] }) })
|
|
47
|
+
] }),
|
|
48
|
+
/* @__PURE__ */ e("style", { children: `
|
|
49
|
+
.td-video-hero {
|
|
50
|
+
display: block;
|
|
51
|
+
position: relative;
|
|
52
|
+
width: 100%;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.td-video-hero__container {
|
|
57
|
+
position: relative;
|
|
58
|
+
width: 100%;
|
|
59
|
+
min-height: var(--hero-height, 80vh);
|
|
60
|
+
border-radius: 0.375rem;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@media (min-width: 800px) and (orientation: landscape) {
|
|
65
|
+
.td-video-hero__container {
|
|
66
|
+
min-height: var(--hero-height-desktop, 66.66vh);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.td-video-hero__video {
|
|
71
|
+
display: block;
|
|
72
|
+
position: absolute;
|
|
73
|
+
top: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
width: 100%;
|
|
76
|
+
height: 100%;
|
|
77
|
+
object-fit: cover;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.td-video-hero__overlay {
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 0;
|
|
83
|
+
left: 0;
|
|
84
|
+
width: 100%;
|
|
85
|
+
height: 100%;
|
|
86
|
+
background-color: var(--overlay-color, rgba(28, 36, 56, 0.6));
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
align-items: center;
|
|
91
|
+
text-align: center;
|
|
92
|
+
padding: 4rem 2rem 5rem;
|
|
93
|
+
color: white;
|
|
94
|
+
box-sizing: border-box;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.td-video-hero__content {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: 1rem;
|
|
102
|
+
max-width: 800px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.td-video-hero__logo {
|
|
106
|
+
margin-bottom: 1rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.td-video-hero__logo img {
|
|
110
|
+
max-width: 120px;
|
|
111
|
+
height: auto;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@media (min-width: 768px) {
|
|
115
|
+
.td-video-hero__logo img {
|
|
116
|
+
max-width: 145px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.td-video-hero__heading-group {
|
|
121
|
+
margin-bottom: 1rem;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.td-video-hero__heading-group h1 {
|
|
125
|
+
font-size: 2rem;
|
|
126
|
+
font-weight: 700;
|
|
127
|
+
margin: 0;
|
|
128
|
+
color: white;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.td-video-hero__heading-group h2 {
|
|
132
|
+
font-size: 1.25rem;
|
|
133
|
+
font-weight: 400;
|
|
134
|
+
margin: 0.5rem 0 0 0;
|
|
135
|
+
color: rgba(255, 255, 255, 0.9);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@media (min-width: 768px) {
|
|
139
|
+
.td-video-hero__heading-group h1 {
|
|
140
|
+
font-size: 3rem;
|
|
141
|
+
}
|
|
142
|
+
.td-video-hero__heading-group h2 {
|
|
143
|
+
font-size: 1.5rem;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.td-video-hero__ctas {
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-wrap: wrap;
|
|
150
|
+
justify-content: center;
|
|
151
|
+
gap: 1rem;
|
|
152
|
+
margin-top: 1.5rem;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.td-video-hero__ctas a,
|
|
156
|
+
.td-video-hero__ctas button {
|
|
157
|
+
display: inline-flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
gap: 0.5rem;
|
|
161
|
+
min-width: 180px;
|
|
162
|
+
padding: 0.75rem 1.5rem;
|
|
163
|
+
border-radius: 0.5rem;
|
|
164
|
+
font-size: 1.125rem;
|
|
165
|
+
font-weight: 600;
|
|
166
|
+
text-transform: uppercase;
|
|
167
|
+
text-decoration: none;
|
|
168
|
+
color: white;
|
|
169
|
+
background: rgba(232, 90, 79, 0.4);
|
|
170
|
+
border: 1px solid #E85A4F;
|
|
171
|
+
transition: background-color 0.3s ease;
|
|
172
|
+
cursor: pointer;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.td-video-hero__ctas a:hover,
|
|
176
|
+
.td-video-hero__ctas button:hover {
|
|
177
|
+
background: #E85A4F;
|
|
178
|
+
}
|
|
179
|
+
` })
|
|
180
|
+
] });
|
|
181
|
+
}
|
|
182
|
+
export {
|
|
183
|
+
u as VideoHero
|
|
184
|
+
};
|
|
185
|
+
//# sourceMappingURL=index10.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index10.js","sources":["../src/components/VideoHero.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport { clsx } from 'clsx';\n\nexport interface VideoHeroProps {\n videoWebm?: string;\n videoMp4?: string;\n poster?: string;\n overlayColor?: string;\n height?: number;\n logo?: ReactNode;\n heading?: ReactNode;\n subheading?: ReactNode;\n ctas?: ReactNode;\n children?: ReactNode;\n className?: string;\n}\n\nexport function VideoHero({\n videoWebm,\n videoMp4,\n poster,\n overlayColor,\n height = 80,\n logo,\n heading,\n subheading,\n ctas,\n children,\n className,\n}: VideoHeroProps) {\n const heroStyle = {\n '--hero-height': `${height}vh`,\n '--hero-height-desktop': `${Math.min(height, 66.66)}vh`,\n '--overlay-color': overlayColor || 'rgba(28, 36, 56, 0.6)',\n } as React.CSSProperties;\n\n return (\n <div className={clsx('td-video-hero', className)} style={heroStyle}>\n <div className=\"td-video-hero__container\">\n <video\n className=\"td-video-hero__video\"\n autoPlay\n muted\n playsInline\n loop\n poster={poster}\n >\n {videoWebm && <source type=\"video/webm\" src={videoWebm} />}\n {videoMp4 && <source type=\"video/mp4\" src={videoMp4} />}\n </video>\n\n <div className=\"td-video-hero__overlay\">\n <div className=\"td-video-hero__content\">\n {logo && <div className=\"td-video-hero__logo\">{logo}</div>}\n\n <div className=\"td-video-hero__heading-group\">\n {heading}\n {subheading}\n </div>\n\n {ctas && <div className=\"td-video-hero__ctas\">{ctas}</div>}\n\n {children}\n </div>\n </div>\n </div>\n\n <style>{`\n .td-video-hero {\n display: block;\n position: relative;\n width: 100%;\n overflow: hidden;\n }\n\n .td-video-hero__container {\n position: relative;\n width: 100%;\n min-height: var(--hero-height, 80vh);\n border-radius: 0.375rem;\n overflow: hidden;\n }\n\n @media (min-width: 800px) and (orientation: landscape) {\n .td-video-hero__container {\n min-height: var(--hero-height-desktop, 66.66vh);\n }\n }\n\n .td-video-hero__video {\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n .td-video-hero__overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--overlay-color, rgba(28, 36, 56, 0.6));\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n padding: 4rem 2rem 5rem;\n color: white;\n box-sizing: border-box;\n }\n\n .td-video-hero__content {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1rem;\n max-width: 800px;\n }\n\n .td-video-hero__logo {\n margin-bottom: 1rem;\n }\n\n .td-video-hero__logo img {\n max-width: 120px;\n height: auto;\n }\n\n @media (min-width: 768px) {\n .td-video-hero__logo img {\n max-width: 145px;\n }\n }\n\n .td-video-hero__heading-group {\n margin-bottom: 1rem;\n }\n\n .td-video-hero__heading-group h1 {\n font-size: 2rem;\n font-weight: 700;\n margin: 0;\n color: white;\n }\n\n .td-video-hero__heading-group h2 {\n font-size: 1.25rem;\n font-weight: 400;\n margin: 0.5rem 0 0 0;\n color: rgba(255, 255, 255, 0.9);\n }\n\n @media (min-width: 768px) {\n .td-video-hero__heading-group h1 {\n font-size: 3rem;\n }\n .td-video-hero__heading-group h2 {\n font-size: 1.5rem;\n }\n }\n\n .td-video-hero__ctas {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: 1rem;\n margin-top: 1.5rem;\n }\n\n .td-video-hero__ctas a,\n .td-video-hero__ctas button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.5rem;\n min-width: 180px;\n padding: 0.75rem 1.5rem;\n border-radius: 0.5rem;\n font-size: 1.125rem;\n font-weight: 600;\n text-transform: uppercase;\n text-decoration: none;\n color: white;\n background: rgba(232, 90, 79, 0.4);\n border: 1px solid #E85A4F;\n transition: background-color 0.3s ease;\n cursor: pointer;\n }\n\n .td-video-hero__ctas a:hover,\n .td-video-hero__ctas button:hover {\n background: #E85A4F;\n }\n `}</style>\n </div>\n );\n}\n"],"names":["VideoHero","videoWebm","videoMp4","poster","overlayColor","height","logo","heading","subheading","ctas","children","className","heroStyle","jsxs","clsx","jsx"],"mappings":";;AAiBO,SAASA,EAAU;AAAA,EACxB,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,cAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,MAAAC;AAAA,EACA,SAAAC;AAAA,EACA,YAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AACF,GAAmB;AACjB,QAAMC,IAAY;AAAA,IAChB,iBAAiB,GAAGP,CAAM;AAAA,IAC1B,yBAAyB,GAAG,KAAK,IAAIA,GAAQ,KAAK,CAAC;AAAA,IACnD,mBAAmBD,KAAgB;AAAA,EAAA;AAGrC,SACE,gBAAAS,EAAC,SAAI,WAAWC,EAAK,iBAAiBH,CAAS,GAAG,OAAOC,GACvD,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,4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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAAA,CAmIN;AAAA,EAAA,GACJ;AAEJ;"}
|
package/dist/index11.js
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as f } from "./index28.js";
|
|
3
|
+
function k({
|
|
4
|
+
backgroundImage: e,
|
|
5
|
+
tag: o,
|
|
6
|
+
title: a,
|
|
7
|
+
description: n,
|
|
8
|
+
ctaText: i,
|
|
9
|
+
ctaHref: d,
|
|
10
|
+
flipped: s = !1,
|
|
11
|
+
logoSrc: r,
|
|
12
|
+
variant: c = "gradient",
|
|
13
|
+
logo: m,
|
|
14
|
+
cta: p,
|
|
15
|
+
children: g,
|
|
16
|
+
className: b,
|
|
17
|
+
id: _
|
|
18
|
+
}) {
|
|
19
|
+
const h = e ? { backgroundImage: `url(${e})` } : { backgroundColor: "#1C2438" };
|
|
20
|
+
return /* @__PURE__ */ l(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
id: _,
|
|
24
|
+
className: f(
|
|
25
|
+
"td-promo",
|
|
26
|
+
`td-promo--${c}`,
|
|
27
|
+
s && "td-promo--flipped",
|
|
28
|
+
b
|
|
29
|
+
),
|
|
30
|
+
style: h,
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ l("div", { className: "td-promo__content", children: [
|
|
33
|
+
(r || m) && /* @__PURE__ */ t("div", { className: "td-promo__logo", children: r ? /* @__PURE__ */ t("img", { src: r, alt: "" }) : m }),
|
|
34
|
+
o && /* @__PURE__ */ t("p", { className: "td-promo__tag", children: o }),
|
|
35
|
+
a && /* @__PURE__ */ t("h2", { className: "td-promo__title", children: a }),
|
|
36
|
+
n && /* @__PURE__ */ t("p", { className: "td-promo__description", children: n }),
|
|
37
|
+
i && d ? /* @__PURE__ */ t("a", { className: "td-promo__cta", href: d, children: i }) : p && /* @__PURE__ */ t("div", { className: "td-promo__cta-slot", children: p }),
|
|
38
|
+
g
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ t("style", { children: `
|
|
41
|
+
.td-promo {
|
|
42
|
+
background-position: center center;
|
|
43
|
+
background-size: cover;
|
|
44
|
+
border-radius: 0.75rem;
|
|
45
|
+
position: relative;
|
|
46
|
+
width: 100%;
|
|
47
|
+
min-height: 320px;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.td-promo--gradient .td-promo__content {
|
|
52
|
+
background-image: linear-gradient(
|
|
53
|
+
to right,
|
|
54
|
+
rgba(28, 36, 56, 0.95) 0%,
|
|
55
|
+
rgba(28, 36, 56, 0.7) 50%,
|
|
56
|
+
transparent 100%
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.td-promo--gradient.td-promo--flipped .td-promo__content {
|
|
61
|
+
background-image: linear-gradient(
|
|
62
|
+
to left,
|
|
63
|
+
rgba(28, 36, 56, 0.95) 0%,
|
|
64
|
+
rgba(28, 36, 56, 0.7) 50%,
|
|
65
|
+
transparent 100%
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.td-promo--glass::before {
|
|
70
|
+
content: '';
|
|
71
|
+
position: absolute;
|
|
72
|
+
inset: 0;
|
|
73
|
+
background: linear-gradient(
|
|
74
|
+
to right,
|
|
75
|
+
rgba(28, 36, 56, 0.85) 0%,
|
|
76
|
+
rgba(28, 36, 56, 0.7) 30%,
|
|
77
|
+
rgba(28, 36, 56, 0.3) 60%,
|
|
78
|
+
transparent 100%
|
|
79
|
+
);
|
|
80
|
+
backdrop-filter: blur(8px);
|
|
81
|
+
-webkit-backdrop-filter: blur(8px);
|
|
82
|
+
mask-image: linear-gradient(
|
|
83
|
+
to right,
|
|
84
|
+
black 0%,
|
|
85
|
+
black 40%,
|
|
86
|
+
transparent 100%
|
|
87
|
+
);
|
|
88
|
+
-webkit-mask-image: linear-gradient(
|
|
89
|
+
to right,
|
|
90
|
+
black 0%,
|
|
91
|
+
black 40%,
|
|
92
|
+
transparent 100%
|
|
93
|
+
);
|
|
94
|
+
border-radius: 0.75rem;
|
|
95
|
+
pointer-events: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.td-promo--glass.td-promo--flipped::before {
|
|
99
|
+
background: linear-gradient(
|
|
100
|
+
to left,
|
|
101
|
+
rgba(28, 36, 56, 0.85) 0%,
|
|
102
|
+
rgba(28, 36, 56, 0.7) 30%,
|
|
103
|
+
rgba(28, 36, 56, 0.3) 60%,
|
|
104
|
+
transparent 100%
|
|
105
|
+
);
|
|
106
|
+
mask-image: linear-gradient(
|
|
107
|
+
to left,
|
|
108
|
+
black 0%,
|
|
109
|
+
black 40%,
|
|
110
|
+
transparent 100%
|
|
111
|
+
);
|
|
112
|
+
-webkit-mask-image: linear-gradient(
|
|
113
|
+
to left,
|
|
114
|
+
black 0%,
|
|
115
|
+
black 40%,
|
|
116
|
+
transparent 100%
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.td-promo--glass .td-promo__content {
|
|
121
|
+
background: transparent;
|
|
122
|
+
position: relative;
|
|
123
|
+
z-index: 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.td-promo--solid .td-promo__content {
|
|
127
|
+
background: rgba(28, 36, 56, 0.9);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.td-promo__content {
|
|
131
|
+
display: flex;
|
|
132
|
+
flex-direction: column;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
align-items: flex-start;
|
|
135
|
+
height: 100%;
|
|
136
|
+
min-height: 320px;
|
|
137
|
+
padding: 2rem;
|
|
138
|
+
color: white;
|
|
139
|
+
border-radius: 0.75rem;
|
|
140
|
+
transition: all 0.2s ease;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@media (min-width: 640px) {
|
|
144
|
+
.td-promo__content {
|
|
145
|
+
padding: 3rem;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@media (min-width: 768px) {
|
|
150
|
+
.td-promo__content {
|
|
151
|
+
padding: 4rem;
|
|
152
|
+
max-width: 60%;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.td-promo--flipped .td-promo__content {
|
|
157
|
+
align-items: flex-end;
|
|
158
|
+
text-align: right;
|
|
159
|
+
margin-left: auto;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.td-promo__logo {
|
|
163
|
+
max-width: 180px;
|
|
164
|
+
margin-bottom: 1.5rem;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.td-promo__logo img {
|
|
168
|
+
max-width: 180px;
|
|
169
|
+
height: auto;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.td-promo__tag {
|
|
173
|
+
text-transform: uppercase;
|
|
174
|
+
font-weight: 600;
|
|
175
|
+
font-size: 0.75rem;
|
|
176
|
+
letter-spacing: 0.1em;
|
|
177
|
+
margin: 0 0 0.5rem 0;
|
|
178
|
+
color: #E85A4F;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.td-promo__title {
|
|
182
|
+
color: white;
|
|
183
|
+
margin: 0;
|
|
184
|
+
font-size: 1.75rem;
|
|
185
|
+
font-weight: 700;
|
|
186
|
+
line-height: 1.2;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@media (min-width: 640px) {
|
|
190
|
+
.td-promo__title {
|
|
191
|
+
font-size: 2.25rem;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.td-promo__description {
|
|
196
|
+
color: rgba(255, 255, 255, 0.85);
|
|
197
|
+
max-width: 500px;
|
|
198
|
+
font-size: 1rem;
|
|
199
|
+
line-height: 1.6;
|
|
200
|
+
margin: 1rem 0 0 0;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@media (min-width: 640px) {
|
|
204
|
+
.td-promo__description {
|
|
205
|
+
font-size: 1.125rem;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.td-promo__cta {
|
|
210
|
+
display: inline-flex;
|
|
211
|
+
align-items: center;
|
|
212
|
+
justify-content: center;
|
|
213
|
+
gap: 0.5rem;
|
|
214
|
+
color: white;
|
|
215
|
+
background-color: #E85A4F;
|
|
216
|
+
padding: 0.875rem 1.5rem;
|
|
217
|
+
border-radius: 0.5rem;
|
|
218
|
+
font-weight: 600;
|
|
219
|
+
font-size: 0.875rem;
|
|
220
|
+
text-decoration: none;
|
|
221
|
+
text-transform: uppercase;
|
|
222
|
+
letter-spacing: 0.025em;
|
|
223
|
+
margin-top: 1.5rem;
|
|
224
|
+
transition: all 0.15s ease;
|
|
225
|
+
box-shadow: 0 4px 6px -1px rgba(232, 90, 79, 0.25);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.td-promo__cta:hover {
|
|
229
|
+
background-color: #F07167;
|
|
230
|
+
transform: translateY(-1px);
|
|
231
|
+
box-shadow: 0 6px 10px -2px rgba(232, 90, 79, 0.3);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.td-promo__cta-slot a,
|
|
235
|
+
.td-promo__cta-slot button {
|
|
236
|
+
display: inline-flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
justify-content: center;
|
|
239
|
+
gap: 0.5rem;
|
|
240
|
+
color: white;
|
|
241
|
+
background-color: #E85A4F;
|
|
242
|
+
padding: 0.875rem 1.5rem;
|
|
243
|
+
border-radius: 0.5rem;
|
|
244
|
+
font-weight: 600;
|
|
245
|
+
font-size: 0.875rem;
|
|
246
|
+
text-decoration: none;
|
|
247
|
+
text-transform: uppercase;
|
|
248
|
+
letter-spacing: 0.025em;
|
|
249
|
+
margin-top: 1.5rem;
|
|
250
|
+
margin-right: 0.5rem;
|
|
251
|
+
border: none;
|
|
252
|
+
cursor: pointer;
|
|
253
|
+
transition: all 0.15s ease;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.td-promo__cta-slot a:hover,
|
|
257
|
+
.td-promo__cta-slot button:hover {
|
|
258
|
+
background-color: #F07167;
|
|
259
|
+
}
|
|
260
|
+
` })
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
export {
|
|
266
|
+
k as PromoSection
|
|
267
|
+
};
|
|
268
|
+
//# sourceMappingURL=index11.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index11.js","sources":["../src/components/PromoSection.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport { clsx } from 'clsx';\n\nexport type PromoSectionVariant = 'gradient' | 'glass' | 'solid';\n\nexport interface PromoSectionProps {\n backgroundImage?: string;\n tag?: string;\n title?: string;\n description?: string;\n ctaText?: string;\n ctaHref?: string;\n flipped?: boolean;\n logoSrc?: string;\n variant?: PromoSectionVariant;\n logo?: ReactNode;\n cta?: ReactNode;\n children?: ReactNode;\n className?: string;\n id?: string;\n}\n\nexport function PromoSection({\n backgroundImage,\n tag,\n title,\n description,\n ctaText,\n ctaHref,\n flipped = false,\n logoSrc,\n variant = 'gradient',\n logo,\n cta,\n children,\n className,\n id,\n}: PromoSectionProps) {\n const containerStyle: React.CSSProperties = backgroundImage\n ? { backgroundImage: `url(${backgroundImage})` }\n : { backgroundColor: '#1C2438' };\n\n return (\n <div\n id={id}\n className={clsx(\n 'td-promo',\n `td-promo--${variant}`,\n flipped && 'td-promo--flipped',\n className\n )}\n style={containerStyle}\n >\n <div className=\"td-promo__content\">\n {(logoSrc || logo) && (\n <div className=\"td-promo__logo\">\n {logoSrc ? <img src={logoSrc} alt=\"\" /> : logo}\n </div>\n )}\n\n {tag && <p className=\"td-promo__tag\">{tag}</p>}\n {title && <h2 className=\"td-promo__title\">{title}</h2>}\n {description && <p className=\"td-promo__description\">{description}</p>}\n\n {ctaText && ctaHref ? (\n <a className=\"td-promo__cta\" href={ctaHref}>\n {ctaText}\n </a>\n ) : (\n cta && <div className=\"td-promo__cta-slot\">{cta}</div>\n )}\n\n {children}\n </div>\n\n <style>{`\n .td-promo {\n background-position: center center;\n background-size: cover;\n border-radius: 0.75rem;\n position: relative;\n width: 100%;\n min-height: 320px;\n overflow: hidden;\n }\n\n .td-promo--gradient .td-promo__content {\n background-image: linear-gradient(\n to right,\n rgba(28, 36, 56, 0.95) 0%,\n rgba(28, 36, 56, 0.7) 50%,\n transparent 100%\n );\n }\n\n .td-promo--gradient.td-promo--flipped .td-promo__content {\n background-image: linear-gradient(\n to left,\n rgba(28, 36, 56, 0.95) 0%,\n rgba(28, 36, 56, 0.7) 50%,\n transparent 100%\n );\n }\n\n .td-promo--glass::before {\n content: '';\n position: absolute;\n inset: 0;\n background: linear-gradient(\n to right,\n rgba(28, 36, 56, 0.85) 0%,\n rgba(28, 36, 56, 0.7) 30%,\n rgba(28, 36, 56, 0.3) 60%,\n transparent 100%\n );\n backdrop-filter: blur(8px);\n -webkit-backdrop-filter: blur(8px);\n mask-image: linear-gradient(\n to right,\n black 0%,\n black 40%,\n transparent 100%\n );\n -webkit-mask-image: linear-gradient(\n to right,\n black 0%,\n black 40%,\n transparent 100%\n );\n border-radius: 0.75rem;\n pointer-events: none;\n }\n\n .td-promo--glass.td-promo--flipped::before {\n background: linear-gradient(\n to left,\n rgba(28, 36, 56, 0.85) 0%,\n rgba(28, 36, 56, 0.7) 30%,\n rgba(28, 36, 56, 0.3) 60%,\n transparent 100%\n );\n mask-image: linear-gradient(\n to left,\n black 0%,\n black 40%,\n transparent 100%\n );\n -webkit-mask-image: linear-gradient(\n to left,\n black 0%,\n black 40%,\n transparent 100%\n );\n }\n\n .td-promo--glass .td-promo__content {\n background: transparent;\n position: relative;\n z-index: 1;\n }\n\n .td-promo--solid .td-promo__content {\n background: rgba(28, 36, 56, 0.9);\n }\n\n .td-promo__content {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n height: 100%;\n min-height: 320px;\n padding: 2rem;\n color: white;\n border-radius: 0.75rem;\n transition: all 0.2s ease;\n }\n\n @media (min-width: 640px) {\n .td-promo__content {\n padding: 3rem;\n }\n }\n\n @media (min-width: 768px) {\n .td-promo__content {\n padding: 4rem;\n max-width: 60%;\n }\n }\n\n .td-promo--flipped .td-promo__content {\n align-items: flex-end;\n text-align: right;\n margin-left: auto;\n }\n\n .td-promo__logo {\n max-width: 180px;\n margin-bottom: 1.5rem;\n }\n\n .td-promo__logo img {\n max-width: 180px;\n height: auto;\n }\n\n .td-promo__tag {\n text-transform: uppercase;\n font-weight: 600;\n font-size: 0.75rem;\n letter-spacing: 0.1em;\n margin: 0 0 0.5rem 0;\n color: #E85A4F;\n }\n\n .td-promo__title {\n color: white;\n margin: 0;\n font-size: 1.75rem;\n font-weight: 700;\n line-height: 1.2;\n }\n\n @media (min-width: 640px) {\n .td-promo__title {\n font-size: 2.25rem;\n }\n }\n\n .td-promo__description {\n color: rgba(255, 255, 255, 0.85);\n max-width: 500px;\n font-size: 1rem;\n line-height: 1.6;\n margin: 1rem 0 0 0;\n }\n\n @media (min-width: 640px) {\n .td-promo__description {\n font-size: 1.125rem;\n }\n }\n\n .td-promo__cta {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.5rem;\n color: white;\n background-color: #E85A4F;\n padding: 0.875rem 1.5rem;\n border-radius: 0.5rem;\n font-weight: 600;\n font-size: 0.875rem;\n text-decoration: none;\n text-transform: uppercase;\n letter-spacing: 0.025em;\n margin-top: 1.5rem;\n transition: all 0.15s ease;\n box-shadow: 0 4px 6px -1px rgba(232, 90, 79, 0.25);\n }\n\n .td-promo__cta:hover {\n background-color: #F07167;\n transform: translateY(-1px);\n box-shadow: 0 6px 10px -2px rgba(232, 90, 79, 0.3);\n }\n\n .td-promo__cta-slot a,\n .td-promo__cta-slot button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.5rem;\n color: white;\n background-color: #E85A4F;\n padding: 0.875rem 1.5rem;\n border-radius: 0.5rem;\n font-weight: 600;\n font-size: 0.875rem;\n text-decoration: none;\n text-transform: uppercase;\n letter-spacing: 0.025em;\n margin-top: 1.5rem;\n margin-right: 0.5rem;\n border: none;\n cursor: pointer;\n transition: all 0.15s ease;\n }\n\n .td-promo__cta-slot a:hover,\n .td-promo__cta-slot button:hover {\n background-color: #F07167;\n }\n `}</style>\n </div>\n );\n}\n"],"names":["PromoSection","backgroundImage","tag","title","description","ctaText","ctaHref","flipped","logoSrc","variant","logo","cta","children","className","id","containerStyle","jsxs","clsx","jsx"],"mappings":";;AAsBO,SAASA,EAAa;AAAA,EAC3B,iBAAAC;AAAA,EACA,KAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,SAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,MAAAC;AAAA,EACA,KAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,IAAAC;AACF,GAAsB;AACpB,QAAMC,IAAsCd,IACxC,EAAE,iBAAiB,OAAOA,CAAe,IAAA,IACzC,EAAE,iBAAiB,UAAA;AAEvB,SACE,gBAAAe;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAAF;AAAA,MACA,WAAWG;AAAA,QACT;AAAA,QACA,aAAaR,CAAO;AAAA,QACpBF,KAAW;AAAA,QACXM;AAAA,MAAA;AAAA,MAEF,OAAOE;AAAA,MAEP,UAAA;AAAA,QAAA,gBAAAC,EAAC,OAAA,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