@theguild/components 9.2.0-alpha-20250121201855-4665b7b7379ce16ff723f516a6d331ab85ae8056 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
import { ReactElement,
|
|
1
|
+
import { FC, ReactElement, ComponentProps, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
declare const Hero: FC<{
|
|
4
4
|
className?: string;
|
|
5
5
|
heading: string;
|
|
6
6
|
text: string;
|
|
7
7
|
checkmarks: string[];
|
|
8
|
-
|
|
9
|
-
logo: ReactElement<{
|
|
10
|
-
className?: string;
|
|
11
|
-
fill?: string;
|
|
12
|
-
}>;
|
|
13
|
-
} | {
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
};
|
|
8
|
+
logo: ReactElement<ComponentProps<'svg'>>;
|
|
16
9
|
children?: ReactNode;
|
|
17
|
-
}
|
|
18
|
-
declare const Hero: FC<HeroProps>;
|
|
10
|
+
}>;
|
|
19
11
|
|
|
20
|
-
export { Hero
|
|
12
|
+
export { Hero };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cloneElement, useId } from "react";
|
|
3
3
|
import { cn } from "../../cn";
|
|
4
|
+
import { DecorationIsolation } from "../decorations";
|
|
4
5
|
import { Heading } from "../heading";
|
|
5
6
|
import { CheckIcon } from "../icons";
|
|
6
7
|
const Hero = (props) => {
|
|
@@ -15,13 +16,32 @@ const Hero = (props) => {
|
|
|
15
16
|
props.className
|
|
16
17
|
),
|
|
17
18
|
children: [
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
cloneElement(props.
|
|
20
|
-
|
|
19
|
+
/* @__PURE__ */ jsxs(DecorationIsolation, { className: "-z-10", children: [
|
|
20
|
+
cloneElement(props.logo, {
|
|
21
|
+
className: cn(
|
|
22
|
+
"absolute stroke-white/10 max-lg:hidden",
|
|
23
|
+
"-left-1/2 top-1/2 -translate-y-1/2"
|
|
24
|
+
),
|
|
25
|
+
fill: `url(#${gradientWhiteId2})`,
|
|
26
|
+
strokeWidth: "0.1",
|
|
27
|
+
width: "auto",
|
|
28
|
+
height: "50%"
|
|
29
|
+
}),
|
|
30
|
+
cloneElement(props.logo, {
|
|
21
31
|
className: cn(
|
|
22
|
-
"absolute
|
|
23
|
-
|
|
24
|
-
|
|
32
|
+
"absolute top-1/2 -translate-y-1/2 stroke-white/10",
|
|
33
|
+
"-right-1/2 lg:-right-1/3",
|
|
34
|
+
"h-2/3 lg:h-[calc(100%-5%)]"
|
|
35
|
+
),
|
|
36
|
+
fill: `url(#${gradientWhiteId2})`,
|
|
37
|
+
strokeWidth: "0.1",
|
|
38
|
+
width: "auto"
|
|
39
|
+
})
|
|
40
|
+
] }),
|
|
41
|
+
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
42
|
+
cloneElement(props.logo, {
|
|
43
|
+
fill: `url(#${gradientWhiteId})`,
|
|
44
|
+
className: "absolute inset-1/2 -translate-x-1/2 -translate-y-1/2 size-1/2"
|
|
25
45
|
}),
|
|
26
46
|
/* @__PURE__ */ jsxs(
|
|
27
47
|
"svg",
|
|
@@ -95,7 +115,7 @@ const Hero = (props) => {
|
|
|
95
115
|
]
|
|
96
116
|
}
|
|
97
117
|
)
|
|
98
|
-
] })
|
|
118
|
+
] }),
|
|
99
119
|
/* @__PURE__ */ jsx(Heading, { as: "h1", size: "xl", className: "mx-auto max-w-3xl text-balance text-center", children: props.heading }),
|
|
100
120
|
/* @__PURE__ */ jsx("p", { className: "mx-auto w-[512px] max-w-[80%] text-center leading-6 text-green-800", children: props.text }),
|
|
101
121
|
/* @__PURE__ */ jsx("ul", { className: "mx-auto flex list-none gap-x-6 gap-y-2 text-sm font-medium max-md:flex-col", children: props.checkmarks.map((text) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-2", children: [
|
package/package.json
CHANGED