@redocly/marketing-pages 0.1.39 → 0.1.40

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,4 +1,4 @@
1
- import e from"react";import r from"styled-components";import{TextGradient as x}from"../TextGradient/TextGradient";import{TextNormal as l,TextSmall as f}from"../TypographyElements/TypographyElements";import{Box as d}from"../../ui/Box";import{formatDateString as h}from"../../utils/dates";import{breakpoints as n}from"@redocly/theme/core/utils";import{Tag as u}from"@redocly/theme/components/Tag/Tag";function y(t){const{publishedDate:o,author:m,title:c,image:p,categories:s}=t,g=(i,a)=>{typeof window<"u"&&(window.location.href=`/blog/category/${i}${a?`/${a}`:""}`)};return e.createElement(d,{mt:5},e.createElement(E,null,e.createElement(w,null,s.map(i=>e.createElement(b,{key:i.category.id,onClick:()=>g(i.category.id,i.subcategory?.id||null)},i.category.label,i.subcategory?.label&&` \u2022 ${i.subcategory?.label}`))),e.createElement($,{my:5},c)),e.createElement(v,{author:m,publishedDate:h(o)}),e.createElement(C,null,e.createElement(I,{src:p,alt:"post"})))}const b=r(u)`
1
+ import e from"react";import r from"styled-components";import{TextGradient as s}from"../TextGradient/TextGradient";import{TextNormal as a,TextSmall as g}from"../TypographyElements/TypographyElements";import{Box as l}from"../../ui/Box";import{formatDateString as x}from"../../utils/dates";import{breakpoints as n}from"@redocly/theme/core/utils";import{Link as f}from"@redocly/theme/components/Link/Link";function h(t){const{publishedDate:i,author:m,title:d,image:c,categories:p}=t;return e.createElement(l,{mt:5},e.createElement(b,null,e.createElement(y,null,p.map(o=>e.createElement(u,{key:o.category.id,to:`/blog/category/${o.category.id}${o.subcategory?.id?`/${o.subcategory?.id}`:""}`},o.category.label,o.subcategory?.label&&` \u2022 ${o.subcategory?.label}`))),e.createElement(w,{my:5},d)),e.createElement(E,{author:m,publishedDate:x(i)}),e.createElement(I,null,e.createElement(B,{src:c,alt:"post"})))}const u=r(f)`
2
2
  display: flex;
3
3
  height: 32px;
4
4
  padding: 0 12px;
@@ -9,19 +9,21 @@ import e from"react";import r from"styled-components";import{TextGradient as x}f
9
9
  border: 1px solid #dcdde5;
10
10
  background: #fbfbfc;
11
11
  cursor: pointer;
12
- `,w=r.div`
12
+ text-decoration: none;
13
+ color: var(--text-color-primary)
14
+ `,y=r.div`
13
15
  display: flex;
14
16
  align-items: flex-start;
15
17
  gap: 8px;
16
- `,E=r.div`
18
+ `,b=r.div`
17
19
  display: flex;
18
20
  flex-direction: column;
19
21
  gap: 16px;
20
- `,v=({author:t,publishedDate:o})=>e.createElement(d,{display:"flex"},e.createElement(T,{bg:t.image}),e.createElement(B,null,e.createElement(k,{hasAuthorBIO:t.authorBIO},e.createElement(l,{color:"var(--color-text-dark)",fontWeight:500},"By ",t.name),e.createElement(l,{style:{marginLeft:t.authorBIO&&"10px"}},o.toLocaleString("en-US",{year:"numeric",month:"long",day:"2-digit"}))),e.createElement(f,{color:"var(--color-text-dimmed)"},t.authorBIO))),k=r.div`
22
+ `,E=({author:t,publishedDate:i})=>e.createElement(l,{display:"flex"},e.createElement(k,{bg:t.image}),e.createElement($,null,e.createElement(v,{hasAuthorBIO:t.authorBIO},e.createElement(a,{color:"var(--color-text-dark)",fontWeight:500},"By ",t.name),e.createElement(a,{style:{marginLeft:t.authorBIO&&"10px"}},i.toLocaleString("en-US",{year:"numeric",month:"long",day:"2-digit"}))),e.createElement(g,{color:"var(--color-text-dimmed)"},t.authorBIO))),v=r.div`
21
23
  display: flex;
22
24
  flex-wrap: wrap;
23
25
  flex-direction: ${({hasAuthorBIO:t})=>t?"row":"column"};
24
- `,$=r(x)`
26
+ `,w=r(s)`
25
27
  font-family: var(--font-family);
26
28
  font-size: 44px;
27
29
  line-height: 48px;
@@ -32,7 +34,7 @@ import e from"react";import r from"styled-components";import{TextGradient as x}f
32
34
  font-size: 64px;
33
35
  line-height: 78px;
34
36
  }
35
- `,T=r.div`
37
+ `,k=r.div`
36
38
  width: 80px;
37
39
  height: 80px;
38
40
  border-radius: 50%;
@@ -42,7 +44,7 @@ import e from"react";import r from"styled-components";import{TextGradient as x}f
42
44
  background-size: cover;
43
45
  background-position: center;
44
46
  z-index: 1;
45
- `,B=r.div`
47
+ `,$=r.div`
46
48
  display: flex;
47
49
  flex-direction: column;
48
50
  justify-content: center;
@@ -53,7 +55,7 @@ import e from"react";import r from"styled-components";import{TextGradient as x}f
53
55
  padding: 0 10px 0 58px;
54
56
  background: white;
55
57
  border-radius: 8px;
56
- `,I=r.img`
58
+ `,B=r.img`
57
59
  height: 100%;
58
60
  max-height: 210px;
59
61
  width: auto;
@@ -61,7 +63,7 @@ import e from"react";import r from"styled-components";import{TextGradient as x}f
61
63
  @media screen and (min-width: ${n.small}) {
62
64
  max-height: 320px;
63
65
  }
64
- `,C=r.div`
66
+ `,I=r.div`
65
67
  display: flex;
66
68
  align-items: center;
67
69
  justify-content: center;
@@ -73,4 +75,4 @@ import e from"react";import r from"styled-components";import{TextGradient as x}f
73
75
  @media screen and (min-width: ${n.small}) {
74
76
  height: 370px;
75
77
  }
76
- `;export{y as default};
78
+ `;export{h as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/marketing-pages",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "keywords": [],
5
5
  "author": "",
6
6
  "license": "UNLICENSED",