@brillout/docpress 0.1.0 → 0.1.2
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/package.json
CHANGED
package/src/PageLayout.css
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
#page-layout > #navigation-wrapper,
|
|
10
10
|
#page-layout > #page-wrapper {
|
|
11
11
|
flex-grow: 1;
|
|
12
|
-
|
|
12
|
+
}
|
|
13
|
+
/* Avoid overflow, see https://stackoverflow.com/questions/36230944/prevent-flex-items-from-overflowing-a-container/66689926#66689926 */
|
|
14
|
+
#page-layout > #page-wrapper {
|
|
13
15
|
min-width: 0;
|
|
14
16
|
}
|
|
15
17
|
|
package/src/components/index.ts
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { TextContactUs } from './TextContactUs'
|
|
3
|
-
|
|
4
|
-
export { ContactUs }
|
|
5
|
-
|
|
6
|
-
function ContactUs({ text }: { text: string }) {
|
|
7
|
-
const style: React.CSSProperties = {
|
|
8
|
-
fontSize: '1.5em',
|
|
9
|
-
textAlign: 'center',
|
|
10
|
-
margin: 'auto',
|
|
11
|
-
padding: 'var(--header-padding)',
|
|
12
|
-
maxWidth: 'var(--header-max-width)'
|
|
13
|
-
}
|
|
14
|
-
return (
|
|
15
|
-
<p style={style}>
|
|
16
|
-
{text} <TextContactUs />
|
|
17
|
-
</p>
|
|
18
|
-
)
|
|
19
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { usePageContext } from '../renderer/usePageContext'
|
|
3
|
-
|
|
4
|
-
export { TextContactUs }
|
|
5
|
-
|
|
6
|
-
function TextContactUs() {
|
|
7
|
-
const pageContext = usePageContext()
|
|
8
|
-
const { projectInfo } = pageContext.config
|
|
9
|
-
return (
|
|
10
|
-
<>
|
|
11
|
-
<a href={projectInfo.discordInvite}>Join our Discord</a> or{' '}
|
|
12
|
-
<a href={projectInfo.githubIssues}>open a GitHub ticket</a>.
|
|
13
|
-
</>
|
|
14
|
-
)
|
|
15
|
-
}
|