Fix improper component nesting

Next doesn't allow block elements inside a `<p>`
This commit is contained in:
Marcus Blättermann 2022-11-17 16:32:42 +01:00
parent c3e1c771ac
commit aebe52efa7
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D
2 changed files with 52 additions and 44 deletions

View File

@ -130,7 +130,7 @@ export const LandingBanner = ({
</Heading> </Heading>
)} )}
<div className={textClassNames}> <div className={textClassNames}>
<p>{children}</p> {children}
{button && ( {button && (
<LandingBannerButton to={to} small={small}> <LandingBannerButton to={to} small={small}>

View File

@ -111,15 +111,17 @@ const Landing = () => {
color="#1e1935" color="#1e1935"
small small
> >
<p>
<Link to="https://explosion.ai/custom-solutions" hidden> <Link to="https://explosion.ai/custom-solutions" hidden>
<img src={tailoredPipelinesImage.src} alt="spaCy Tailored Pipelines" /> <img src={tailoredPipelinesImage.src} alt="spaCy Tailored Pipelines" />
</Link> </Link>
</p>
<p>
<strong> <strong>
Get a custom spaCy pipeline, tailor-made for your NLP problem by Get a custom spaCy pipeline, tailor-made for your NLP problem by
spaCy&apos;s core developers. spaCy&apos;s core developers.
</strong> </strong>
<br /> </p>
<br />
<Ul> <Ul>
<Li emoji="🔥"> <Li emoji="🔥">
<strong>Streamlined.</strong> Nobody knows spaCy better than we do. Send <strong>Streamlined.</strong> Nobody knows spaCy better than we do. Send
@ -155,6 +157,7 @@ const Landing = () => {
color="#000" color="#000"
small small
> >
<p>
<Link to="https://prodi.gy" hidden> <Link to="https://prodi.gy" hidden>
{/** Update image */} {/** Update image */}
<img <img
@ -162,13 +165,14 @@ const Landing = () => {
alt="Prodigy: Radically efficient machine teaching" alt="Prodigy: Radically efficient machine teaching"
/> />
</Link> </Link>
<br /> </p>
<br /> <p>
Prodigy is an <strong>annotation tool</strong> so efficient that data scientists Prodigy is an <strong>annotation tool</strong> so efficient that data
can do the annotation themselves, enabling a new level of rapid iteration. scientists can do the annotation themselves, enabling a new level of rapid
Whether you&apos;re working on entity recognition, intent detection or image iteration. Whether you&apos;re working on entity recognition, intent
classification, Prodigy can help you <strong>train and evaluate</strong> your detection or image classification, Prodigy can help you{' '}
models faster. <strong>train and evaluate</strong> your models faster.
</p>
</LandingBanner> </LandingBanner>
</LandingBannerGrid> </LandingBannerGrid>
@ -236,13 +240,15 @@ const Landing = () => {
button="See what's new" button="See what's new"
small small
> >
spaCy v3.0 features all new <strong>transformer-based pipelines</strong> that <p>
bring spaCy&apos;s accuracy right up to the current{' '} spaCy v3.0 features all new <strong>transformer-based pipelines</strong>{' '}
that bring spaCy&apos;s accuracy right up to the current{' '}
<strong>state-of-the-art</strong>. You can use any pretrained transformer to <strong>state-of-the-art</strong>. You can use any pretrained transformer to
train your own pipelines, and even share one transformer between multiple train your own pipelines, and even share one transformer between multiple
components with <strong>multi-task learning</strong>. Training is now fully components with <strong>multi-task learning</strong>. Training is now fully
configurable and extensible, and you can define your own custom models using{' '} configurable and extensible, and you can define your own custom models using{' '}
<strong>PyTorch</strong>, <strong>TensorFlow</strong> and other frameworks. <strong>PyTorch</strong>, <strong>TensorFlow</strong> and other frameworks.
</p>
</LandingBanner> </LandingBanner>
<LandingBanner <LandingBanner
to="https://course.spacy.io" to="https://course.spacy.io"
@ -251,19 +257,21 @@ const Landing = () => {
color="#252a33" color="#252a33"
small small
> >
<p>
<Link to="https://course.spacy.io" hidden> <Link to="https://course.spacy.io" hidden>
<img <img
src={courseImage.src} src={courseImage.src}
alt="Advanced NLP with spaCy: A free online course" alt="Advanced NLP with spaCy: A free online course"
/> />
</Link> </Link>
<br /> </p>
<br /> <p>
In this <strong>free and interactive online course</strong> youll learn how to In this <strong>free and interactive online course</strong> youll learn how
use spaCy to build advanced natural language understanding systems, using both to use spaCy to build advanced natural language understanding systems, using
rule-based and machine learning approaches. It includes{' '} both rule-based and machine learning approaches. It includes{' '}
<strong>55 exercises</strong> featuring videos, slide decks, multiple-choice <strong>55 exercises</strong> featuring videos, slide decks, multiple-choice
questions and interactive coding practice in the browser. questions and interactive coding practice in the browser.
</p>
</LandingBanner> </LandingBanner>
</LandingBannerGrid> </LandingBannerGrid>