From aebe52efa7908941c1e1702eb2a75b947cc4fdff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Bl=C3=A4ttermann?= Date: Thu, 17 Nov 2022 16:32:42 +0100 Subject: [PATCH] Fix improper component nesting Next doesn't allow block elements inside a `

` --- website/src/components/landing.js | 2 +- website/src/widgets/landing.js | 94 +++++++++++++++++-------------- 2 files changed, 52 insertions(+), 44 deletions(-) diff --git a/website/src/components/landing.js b/website/src/components/landing.js index c811ff5b3..084587b74 100644 --- a/website/src/components/landing.js +++ b/website/src/components/landing.js @@ -130,7 +130,7 @@ export const LandingBanner = ({ )}

-

{children}

+ {children} {button && ( diff --git a/website/src/widgets/landing.js b/website/src/widgets/landing.js index 22476d20b..4091faf30 100644 --- a/website/src/widgets/landing.js +++ b/website/src/widgets/landing.js @@ -111,15 +111,17 @@ const Landing = () => { color="#1e1935" small > - - spaCy Tailored Pipelines - - - Get a custom spaCy pipeline, tailor-made for your NLP problem by - spaCy's core developers. - -
-
+

+ + spaCy Tailored Pipelines + +

+

+ + Get a custom spaCy pipeline, tailor-made for your NLP problem by + spaCy's core developers. + +

  • Streamlined. Nobody knows spaCy better than we do. Send @@ -155,20 +157,22 @@ const Landing = () => { color="#000" small > - - {/** Update image */} - Prodigy: Radically efficient machine teaching - -
    -
    - Prodigy is an annotation tool so efficient that data scientists - can do the annotation themselves, enabling a new level of rapid iteration. - Whether you're working on entity recognition, intent detection or image - classification, Prodigy can help you train and evaluate your - models faster. +

    + + {/** Update image */} + Prodigy: Radically efficient machine teaching + +

    +

    + Prodigy is an annotation tool so efficient that data + scientists can do the annotation themselves, enabling a new level of rapid + iteration. Whether you're working on entity recognition, intent + detection or image classification, Prodigy can help you{' '} + train and evaluate your models faster. +

    @@ -236,13 +240,15 @@ const Landing = () => { button="See what's new" small > - spaCy v3.0 features all new transformer-based pipelines that - bring spaCy's accuracy right up to the current{' '} - state-of-the-art. You can use any pretrained transformer to - train your own pipelines, and even share one transformer between multiple - components with multi-task learning. Training is now fully - configurable and extensible, and you can define your own custom models using{' '} - PyTorch, TensorFlow and other frameworks. +

    + spaCy v3.0 features all new transformer-based pipelines{' '} + that bring spaCy's accuracy right up to the current{' '} + state-of-the-art. You can use any pretrained transformer to + train your own pipelines, and even share one transformer between multiple + components with multi-task learning. Training is now fully + configurable and extensible, and you can define your own custom models using{' '} + PyTorch, TensorFlow and other frameworks. +

    { color="#252a33" small > - - Advanced NLP with spaCy: A free online course - -
    -
    - In this free and interactive online course you’ll learn how to - use spaCy to build advanced natural language understanding systems, using both - rule-based and machine learning approaches. It includes{' '} - 55 exercises featuring videos, slide decks, multiple-choice - questions and interactive coding practice in the browser. +

    + + Advanced NLP with spaCy: A free online course + +

    +

    + In this free and interactive online course you’ll learn how + to use spaCy to build advanced natural language understanding systems, using + both rule-based and machine learning approaches. It includes{' '} + 55 exercises featuring videos, slide decks, multiple-choice + questions and interactive coding practice in the browser. +