@redocly/marketing-pages 0.1.19 → 0.1.20

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,8 +1,13 @@
1
- import e from"react";import n from"styled-components";import{Box as l}from"../../ui/Box";import{breakpoints as t}from"@redocly/theme/core/utils";import{TopLearnBlock as m,CardsBlock as p,BottomLearnBlock as c}from"./components";const b={seo:{title:"Learn"},slug:"/learn"};function w({cards:a}){const[i,r]=e.useState(localStorage.getItem("colorSchema")||"light");return e.useEffect(()=>{const o=new MutationObserver(()=>{document.documentElement.classList.contains("dark")?r("dark"):r("light")});return o.observe(document.documentElement,{attributes:!0}),()=>{o.disconnect()}},[]),e.createElement(s,{backgroundColor:"var(--bg-color)",width:"100vw",height:"fit-content",position:"relative"},e.createElement(d,{src:i==="light"?require("./images/hero-img.svg"):require("./images/hero-img-dark.svg")}),e.createElement(m,null),e.createElement(p,{cards:a}),e.createElement(c,null))}const d=n.img`
1
+ import e from"react";import r from"styled-components";import{Box as i}from"../../ui/Box";import{breakpoints as t}from"@redocly/theme/core/utils";import{TopLearnBlock as n,CardsBlock as o,BottomLearnBlock as p}from"./components";const u={seo:{title:"Learn"},slug:"/learn"};function f({cards:a}){return e.createElement(d,{backgroundColor:"var(--bg-color)",width:"100vw",height:"fit-content",position:"relative"},e.createElement(l,null),e.createElement(n,null),e.createElement(o,{cards:a}),e.createElement(p,null))}const l=r.div`
2
2
  position: absolute;
3
3
  max-width: 1384px;
4
4
  width: -webkit-fill-available;
5
- `,s=n(l)`
5
+
6
+ background-image: url(${require("./images/hero-img.svg")});
7
+ .dark & {
8
+ background-image: url(${require("./images/hero-img-dark.svg")});
9
+ }
10
+ `,d=r(i)`
6
11
  display: flex;
7
12
  align-items: center;
8
13
  flex-direction: column;
@@ -23,4 +28,4 @@ import e from"react";import n from"styled-components";import{Box as l}from"../..
23
28
  gap: 64px;
24
29
  padding: 0 128px 64px 128px;
25
30
  }
26
- `;export{w as default,b as frontmatter};
31
+ `;export{f as default,u as frontmatter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/marketing-pages",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "keywords": [],
5
5
  "author": "",
6
6
  "license": "UNLICENSED",