@brillout/docpress 0.7.6 → 0.7.8

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/Layout.css CHANGED
@@ -22,10 +22,10 @@
22
22
  .landing-page .page-wrapper {
23
23
  --main-view-max-width: 1010px;
24
24
  }
25
- .page-wrapper {
25
+ .page-layout:not(.noSideNavigation) .page-wrapper {
26
26
  max-width: calc(var(--main-view-max-width) + 80px);
27
27
  }
28
- .page-content {
28
+ .page-layout:not(.noSideNavigation) .page-content {
29
29
  box-sizing: content-box;
30
30
  max-width: var(--main-view-max-width);
31
31
  padding: 20px var(--main-view-padding);
package/Layout.tsx CHANGED
@@ -31,8 +31,8 @@ function Layout({ children }: { children: React.ReactNode }) {
31
31
  alignItems: 'center',
32
32
  justifyContent: noSideNavigation === 'no-logo' ? 'center' : 'space-between',
33
33
  textDecoration: 'none',
34
- maxWidth: 1024,
35
- margin: 'auto',
34
+ marginBottom: 'var(--block-margin)',
35
+ backgroundColor: 'var(--bg-color)',
36
36
  ...topNavigationStyle,
37
37
  }}
38
38
  >
@@ -2,7 +2,7 @@ export { Contributors, Maintainer }
2
2
 
3
3
  import React from 'react'
4
4
  import { usePageContext } from '../renderer/usePageContext'
5
- import { Supporter, SupporterSection, SectionDescription, Individuals, SupporterImg } from './Supporters'
5
+ import { Supporter, SupporterSection, Individuals, SupporterImg } from './Supporters'
6
6
  import { maintainers } from '../data/maintainersList'
7
7
  import { contributors } from 'vike-contributors' // sorted by number of contributions
8
8
 
@@ -11,9 +11,15 @@ function Contributors() {
11
11
  const { projectInfo } = pageContext.config
12
12
  return (
13
13
  <SupporterSection>
14
- <SectionDescription>
14
+ <p
15
+ style={{
16
+ maxWidth: 400,
17
+ display: 'inline-block',
18
+ fontSize: '1.2em',
19
+ }}
20
+ >
15
21
  {projectInfo.projectName} is built and maintained by passionate contributors.
16
- </SectionDescription>
22
+ </p>
17
23
  <div style={{ display: 'flex', flexWrap: 'wrap', justifyContent: 'space-evenly', alignItems: 'end' }}>
18
24
  {maintainers.map((maintainer, i) => (
19
25
  <Maintainer maintainer={maintainer} key={i} />
@@ -1,5 +1,5 @@
1
1
  <svg width="59.641mm" height="13.076mm" version="1.1" viewBox="0 0 59.641 13.076" xmlns="http://www.w3.org/2000/svg">
2
2
  <g transform="translate(-91.006 -265.33)">
3
- <path d="m103.72 265.33s-2.2571 0.0965-2.6687 0.40101c-0.9913 0.76735-1.5833 2.111-1.5833 2.111l-3.6393 7.2347c-0.28736 0.57132-1.024 2.1272-1.3956 2.4918-0.55117 0.83221-2.8381 0.81625-3.4273 0.83715h59.641c-0.5892-0.0209-2.8761-5e-3 -3.4273-0.83715-0.37156-0.36462-1.1082-1.9205-1.3956-2.4918l-3.6393-7.2347s-0.59202-1.3436-1.5833-2.111c-0.41164-0.30452-2.6683-0.40101-2.6683-0.40101h-28.632z" fill="#f0f0f0"/>
3
+ <path d="m103.72 265.33s-2.2571 0.0965-2.6687 0.40101c-0.9913 0.76735-1.5833 2.111-1.5833 2.111l-3.6393 7.2347c-0.28736 0.57132-1.024 2.1272-1.3956 2.4918-0.55117 0.83221-2.8381 0.81625-3.4273 0.83715h59.641c-0.5892-0.0209-2.8761-5e-3 -3.4273-0.83715-0.37156-0.36462-1.1082-1.9205-1.3956-2.4918l-3.6393-7.2347s-0.59202-1.3436-1.5833-2.111c-0.41164-0.30452-2.6683-0.40101-2.6683-0.40101h-28.632z" fill="#ebebeb"/>
4
4
  </g>
5
5
  </svg>
@@ -84,7 +84,7 @@ function CompanyDiv({ sponsor }: { sponsor: Sponsor }) {
84
84
  <Label sponsor={sponsor} />
85
85
  <div
86
86
  style={{
87
- backgroundColor: '#f0f0f0',
87
+ backgroundColor: '#ebebeb',
88
88
  borderRadius: 7,
89
89
  overflow: 'hidden',
90
90
  width,
@@ -127,7 +127,7 @@ function Label({ sponsor }: { sponsor: Sponsor }) {
127
127
 
128
128
  function getLabelBg(sponsor: SponsorCompany) {
129
129
  const height = sponsor.plan === 'platinum' ? 32 : 24
130
- return <img src={labelBgImg} style={{ height, position: 'absolute', bottom: 0, zIndex: -1 }} />
130
+ return <img src={labelBgImg} style={{ height, position: 'absolute', bottom: 0 }} />
131
131
  }
132
132
 
133
133
  function getLabelText(sponsor: SponsorCompany) {
@@ -166,9 +166,9 @@ function getLabelText(sponsor: SponsorCompany) {
166
166
  function getLabelIcon(sponsor: SponsorCompany) {
167
167
  let medalSrc: string
168
168
  if (sponsor.plan === 'platinum') {
169
- return <Emoji name="trophy" style={{ fontSize: '1.3em' }} />
169
+ return <Emoji name="trophy" style={{ fontSize: '1.3em', position: 'relative' }} />
170
170
  } else if (sponsor.plan === 'indie') {
171
- return <Emoji name="ribbon" style={{ fontSize: '0.9em' /*, position: 'relative', top: -1*/ }} />
171
+ return <Emoji name="ribbon" style={{ fontSize: '0.9em', position: 'relative', top: 1 }} />
172
172
  } else if (sponsor.plan === 'gold') {
173
173
  medalSrc = medalGold
174
174
  } else if (sponsor.plan === 'silver') {
@@ -11,7 +11,6 @@ function SupporterSection({ children }: { children?: Children }) {
11
11
  <div
12
12
  style={{
13
13
  textAlign: 'center',
14
- marginTop: 19,
15
14
  }}
16
15
  >
17
16
  {children}
@@ -0,0 +1,4 @@
1
+ html {
2
+ --bg-color: #f5f5f7;
3
+ --block-margin: 5px;
4
+ }
package/css/index.css CHANGED
@@ -1,4 +1,5 @@
1
1
  @import './reset.css';
2
+ @import './block-design.css';
2
3
  @import './colorize-on-hover.css';
3
4
  @import './heading.css';
4
5
  @import './button.css';
@@ -1,14 +1,18 @@
1
1
  export { Contributors, Maintainer };
2
2
  import React from 'react';
3
3
  import { usePageContext } from '../renderer/usePageContext';
4
- import { Supporter, SupporterSection, SectionDescription, Individuals, SupporterImg } from './Supporters';
4
+ import { Supporter, SupporterSection, Individuals, SupporterImg } from './Supporters';
5
5
  import { maintainers } from '../data/maintainersList';
6
6
  import { contributors } from 'vike-contributors'; // sorted by number of contributions
7
7
  function Contributors() {
8
8
  var pageContext = usePageContext();
9
9
  var projectInfo = pageContext.config.projectInfo;
10
10
  return (React.createElement(SupporterSection, null,
11
- React.createElement(SectionDescription, null,
11
+ React.createElement("p", { style: {
12
+ maxWidth: 400,
13
+ display: 'inline-block',
14
+ fontSize: '1.2em',
15
+ } },
12
16
  projectInfo.projectName,
13
17
  " is built and maintained by passionate contributors."),
14
18
  React.createElement("div", { style: { display: 'flex', flexWrap: 'wrap', justifyContent: 'space-evenly', alignItems: 'end' } }, maintainers.map(function (maintainer, i) { return (React.createElement(Maintainer, { maintainer: maintainer, key: i })); })),
@@ -44,7 +44,7 @@ function CompanyDiv(_a) {
44
44
  } },
45
45
  React.createElement(Label, { sponsor: sponsor }),
46
46
  React.createElement("div", { style: {
47
- backgroundColor: '#f0f0f0',
47
+ backgroundColor: '#ebebeb',
48
48
  borderRadius: 7,
49
49
  overflow: 'hidden',
50
50
  width: width,
@@ -77,7 +77,7 @@ function Label(_a) {
77
77
  }
78
78
  function getLabelBg(sponsor) {
79
79
  var height = sponsor.plan === 'platinum' ? 32 : 24;
80
- return React.createElement("img", { src: labelBgImg, style: { height: height, position: 'absolute', bottom: 0, zIndex: -1 } });
80
+ return React.createElement("img", { src: labelBgImg, style: { height: height, position: 'absolute', bottom: 0 } });
81
81
  }
82
82
  function getLabelText(sponsor) {
83
83
  if (sponsor.plan === 'platinum') {
@@ -107,10 +107,10 @@ function getLabelText(sponsor) {
107
107
  function getLabelIcon(sponsor) {
108
108
  var medalSrc;
109
109
  if (sponsor.plan === 'platinum') {
110
- return React.createElement(Emoji, { name: "trophy", style: { fontSize: '1.3em' } });
110
+ return React.createElement(Emoji, { name: "trophy", style: { fontSize: '1.3em', position: 'relative' } });
111
111
  }
112
112
  else if (sponsor.plan === 'indie') {
113
- return React.createElement(Emoji, { name: "ribbon", style: { fontSize: '0.9em' /*, position: 'relative', top: -1*/ } });
113
+ return React.createElement(Emoji, { name: "ribbon", style: { fontSize: '0.9em', position: 'relative', top: 1 } });
114
114
  }
115
115
  else if (sponsor.plan === 'gold') {
116
116
  medalSrc = medalGold;
@@ -5,7 +5,6 @@ function SupporterSection(_a) {
5
5
  var children = _a.children;
6
6
  return (React.createElement("div", { style: {
7
7
  textAlign: 'center',
8
- marginTop: 19,
9
8
  } }, children));
10
9
  }
11
10
  function SectionDescription(_a) {
@@ -39,6 +39,6 @@ declare function resolvePageContext(pageContext: PageContextOriginal): {
39
39
  indexName: string;
40
40
  } | null;
41
41
  };
42
- topNavigationStyle: import("react").CSSProperties;
42
+ topNavigationStyle: import("react").CSSProperties | undefined;
43
43
  config: import("../types/Config").Config;
44
44
  };
@@ -18,7 +18,7 @@ type Config = {
18
18
  };
19
19
  headings: HeadingDefinition[];
20
20
  headingsDetached: HeadingDetachedDefinition[];
21
- topNavigationStyle: React.CSSProperties;
21
+ topNavigationStyle?: React.CSSProperties;
22
22
  /** Sets `<meta name="description" content="${tagline}" />` */
23
23
  tagline: string;
24
24
  websiteUrl: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.7.6",
3
+ "version": "0.7.8",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",
package/types/Config.ts CHANGED
@@ -20,7 +20,7 @@ type Config = {
20
20
  }
21
21
  headings: HeadingDefinition[]
22
22
  headingsDetached: HeadingDetachedDefinition[]
23
- topNavigationStyle: React.CSSProperties
23
+ topNavigationStyle?: React.CSSProperties
24
24
 
25
25
  /** Sets `<meta name="description" content="${tagline}" />` */
26
26
  tagline: string