diff --git a/website/src/components/code.js b/website/src/components/code.js index 28e3cb5d4..199de6bbd 100644 --- a/website/src/components/code.js +++ b/website/src/components/code.js @@ -26,12 +26,12 @@ const CodeBlock = (props) => ( export default CodeBlock export const Pre = (props) => { - return
{props.children}+ return
{props.children}} export const InlineCode = ({ wrap = false, className, children, ...props }) => { - const codeClassNames = classNames(classes.inlineCode, className, { - [classes.wrap]: wrap || (isString(children) && children.length >= WRAP_THRESHOLD), + const codeClassNames = classNames(classes['inline-code'], className, { + [classes['wrap']]: wrap || (isString(children) && children.length >= WRAP_THRESHOLD), }) return (
@@ -78,10 +78,10 @@ export const TypeAnnotation = ({ lang = 'python', link = true, children }) => {
const annotClassNames = classNames(
'type-annotation',
`language-${lang}`,
- classes.inlineCode,
- classes.typeAnnotation,
+ classes['inline-code'],
+ classes['type-annotation'],
{
- [classes.wrap]: code.length >= WRAP_THRESHOLD,
+ [classes['wrap']]: code.length >= WRAP_THRESHOLD,
}
)
return (
@@ -89,7 +89,7 @@ export const TypeAnnotation = ({ lang = 'python', link = true, children }) => {
{elements.map((el, i) => (
{linkType(el, !!link)}
))}
- {meta && {meta}}
+ {meta && {meta}}
)
}
@@ -134,7 +134,7 @@ function convertLine(line, i) {
})
return (
{html}
>
)
@@ -275,10 +275,10 @@ const JuniperWrapper = ({ Juniper, title, lang, children }) => {
const { binderUrl, binderVersion } = siteMetadata
const juniperTitle = title || 'Editable Code'
return (
-
+
{rawUrl.split('.com/')[1]}
diff --git a/website/src/components/landing.js b/website/src/components/landing.js
index ec8cf88d6..7a58c0fd7 100644
--- a/website/src/components/landing.js
+++ b/website/src/components/landing.js
@@ -27,9 +27,9 @@ export const LandingHeader = ({ nightly, legacy, style = {}, children }) => {
const wrapperStyle = { backgroundImage: `url(${pattern})` }
const contentStyle = { backgroundImage: `url(${overlay})`, ...style }
return (
-
-
-
+
+
+
{children}
@@ -37,17 +37,17 @@ export const LandingHeader = ({ nightly, legacy, style = {}, children }) => {
)
}
-export const LandingTitle = ({ children }) => {children}
+export const LandingTitle = ({ children }) => {children}
export const LandingSubtitle = ({ children }) => (
- {children}
+ {children}
)
export const LandingGrid = ({ cols = 3, blocks = false, style, children }) => (
-
-
+
+
{children}
@@ -56,8 +56,8 @@ export const LandingGrid = ({ cols = 3, blocks = false, style, children }) => (
export const LandingCol = ({ children }) => {children}
export const LandingCard = ({ title, button, url, children }) => (
-
-
+
+
{title && {title}
}
{children}
@@ -70,14 +70,14 @@ export const LandingCard = ({ title, button, url, children }) => (
)
export const LandingButton = ({ to, children }) => (
-