@redocly/marketing-pages 0.1.22 → 0.1.23
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,6 +1,6 @@
|
|
|
1
|
-
import*as e from"react";import r from"styled-components";import{Link as d}from"@redocly/theme";import{Card as
|
|
1
|
+
import*as e from"react";import r from"styled-components";import{Link as d}from"@redocly/theme";import{Card as s}from"@redocly/theme/markdoc/components/Cards/Card";import{Cards as p}from"@redocly/theme/markdoc/components/Cards/Cards";const L=({cards:l})=>{const[a,c]=e.useState(!1);return e.useEffect(()=>{c(!0)},[]),e.useEffect(()=>{const t=document?.getElementsByTagName("h3");for(let i=0;i<t.length;i++)t[i].getElementsByTagName("path")[0]?.setAttribute("d","M8.53906 2.625L7.91344 3.23444L11.2297 6.5625H2.41406V7.4375H11.2297L7.91344 10.7507L8.53906 11.375L12.9141 7L8.53906 2.625Z")},[]),a?e.createElement(u,{columns:3,children:l.map((t,i)=>e.createElement(m,{key:i,title:`Learn ${t.title}`,image:t.thumbnail,to:t.landingPage,children:e.createElement(g,null,e.createElement(x,null,t.description),e.createElement(y,{onClick:o=>o.stopPropagation()},t.items.map((o,n)=>e.createElement("div",{key:n,style:{width:"100%"}},e.createElement(h,{key:n,to:o.link},e.createElement("div",null,e.createElement("img",{src:require("../images/ellipse.svg")}),e.createElement("p",null,o.title)),e.createElement("svg",{width:"22",height:"23",viewBox:"0 0 23 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{x:"0.664062",width:"22",height:"22",rx:"11",fill:"inherit"}),e.createElement("path",{d:"M12.5391 6.625L11.9134 7.23444L15.2297 10.5625H6.41406V11.4375H15.2297L11.9134 14.7507L12.5391 15.375L16.9141 11L12.5391 6.625Z",fill:"inherit"}))),e.createElement(f,null))),t.moreItems&&e.createElement(v,null,"and ",t.moreItems)))}))}):null},m=r(s)`
|
|
2
2
|
max-width: 405px;
|
|
3
|
-
`,
|
|
3
|
+
`,x=r.p`
|
|
4
4
|
color: var(--text-color-primary);
|
|
5
5
|
font-family: Inter;
|
|
6
6
|
font-size: 16px;
|
|
@@ -14,11 +14,11 @@ import*as e from"react";import r from"styled-components";import{Link as d}from"@
|
|
|
14
14
|
padding: 0 16px;
|
|
15
15
|
|
|
16
16
|
margin: 0;
|
|
17
|
-
`,
|
|
17
|
+
`,g=r.div`
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
gap: 12px;
|
|
21
|
-
`,
|
|
21
|
+
`,f=r.div`
|
|
22
22
|
margin: 2px 8px;
|
|
23
23
|
height: 1px;
|
|
24
24
|
background: var(--border-color-secondary);
|
|
@@ -73,7 +73,7 @@ import*as e from"react";import r from"styled-components";import{Link as d}from"@
|
|
|
73
73
|
transition: transform 0.3s ease-in-out;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
`,
|
|
76
|
+
`,v=r.div`
|
|
77
77
|
display: flex;
|
|
78
78
|
padding: 8px;
|
|
79
79
|
align-items: center;
|
|
@@ -86,11 +86,11 @@ import*as e from"react";import r from"styled-components";import{Link as d}from"@
|
|
|
86
86
|
font-size: 14px;
|
|
87
87
|
font-weight: 400;
|
|
88
88
|
line-height: 22px;
|
|
89
|
-
`,
|
|
89
|
+
`,y=r.div`
|
|
90
90
|
display: flex;
|
|
91
91
|
flex-direction: column;
|
|
92
92
|
padding: 0 8px 16px 8px;
|
|
93
|
-
`,
|
|
93
|
+
`,u=r(p)`
|
|
94
94
|
--cards-gap: 24px;
|
|
95
95
|
--card-content-gap: 8px;
|
|
96
96
|
--card-padding: 16px 0 0 0;
|
|
@@ -129,4 +129,4 @@ import*as e from"react";import r from"styled-components";import{Link as d}from"@
|
|
|
129
129
|
height: unset;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
`;export{
|
|
132
|
+
`;export{L as CardsBlock};
|