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>
)}
<div className={textClassNames}>
<p>{children}</p>
{children}
{button && (
<LandingBannerButton to={to} small={small}>

View File

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