diff --git a/website/src/components/landing.js b/website/src/components/landing.js index 7a58c0fd7..c811ff5b3 100644 --- a/website/src/components/landing.js +++ b/website/src/components/landing.js @@ -24,8 +24,8 @@ function getPattern(nightly, legacy) { export const LandingHeader = ({ nightly, legacy, style = {}, children }) => { const { pattern, overlay } = getPattern(nightly, legacy) - const wrapperStyle = { backgroundImage: `url(${pattern})` } - const contentStyle = { backgroundImage: `url(${overlay})`, ...style } + const wrapperStyle = { backgroundImage: `url(${pattern.src})` } + const contentStyle = { backgroundImage: `url(${overlay.src})`, ...style } return (
diff --git a/website/src/components/main.js b/website/src/components/main.js index ff9aab6be..700a3f54f 100644 --- a/website/src/components/main.js +++ b/website/src/components/main.js @@ -39,7 +39,7 @@ export default function Main({
{wrapContent ? {children} : children} {asides && ( -
+
)} {footer}
diff --git a/website/src/components/seo.js b/website/src/components/seo.js index a426317af..02f2a27a8 100644 --- a/website/src/components/seo.js +++ b/website/src/components/seo.js @@ -8,7 +8,6 @@ import socialImageUniverse from '../images/social_universe.jpg' import socialImageNightly from '../images/social_nightly.jpg' import socialImageLegacy from '../images/social_legacy.jpg' import siteMetadata from '../../meta/site.json' -import { siteUrl } from '../../meta/dynamicMeta' function getPageTitle(title, sitename, slogan, sectionTitle, nightly, legacy) { if (sectionTitle && title) { @@ -48,7 +47,7 @@ export default function SEO({ nightly, legacy ) - const socialImage = siteUrl + getImage(section, nightly, legacy) + const socialImage = getImage(section, nightly, legacy).src const meta = [ { name: 'description', diff --git a/website/src/widgets/landing.js b/website/src/widgets/landing.js index f3c3573bd..22476d20b 100644 --- a/website/src/widgets/landing.js +++ b/website/src/widgets/landing.js @@ -60,7 +60,7 @@ for entity in doc.ents: const Landing = () => { const codeExample = getCodeExample(nightly) return ( - <> + Industrial-Strength @@ -112,7 +112,7 @@ const Landing = () => { small > - spaCy Tailored Pipelines + spaCy Tailored Pipelines Get a custom spaCy pipeline, tailor-made for your NLP problem by @@ -158,7 +158,7 @@ const Landing = () => { {/** Update image */} Prodigy: Radically efficient machine teaching @@ -199,7 +199,7 @@ const Landing = () => { - +

@@ -253,7 +253,7 @@ const Landing = () => { > Advanced NLP with spaCy: A free online course @@ -285,7 +285,7 @@ const Landing = () => {
- +
) } diff --git a/website/src/widgets/styleguide.js b/website/src/widgets/styleguide.js index c42a42211..d1327801a 100644 --- a/website/src/widgets/styleguide.js +++ b/website/src/widgets/styleguide.js @@ -64,7 +64,7 @@ export const Colors = () => ( export const Patterns = () => { const imgStyle = (name) => ({ height: 125, - background: `url(${patterns[name]}) center/150% repeat`, + background: `url(${patterns[name].src}) center/150% repeat`, }) const textStyle = { fontSize: 'var(--font-size-xs)', color: 'var(--color-subtle-dark)' } const linkStyle = { color: 'var(--color-dark)' }