mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-03 13:14:11 +03:00
FIx responsive landing
This commit is contained in:
parent
08284f3a11
commit
a20d3772fd
|
@ -44,6 +44,8 @@ export const LandingGrid = ({ cols = 3, blocks = false, children }) => (
|
|||
</Content>
|
||||
)
|
||||
|
||||
export const LandingCol = ({ children }) => <div className={classes.col}>{children}</div>
|
||||
|
||||
export const LandingCard = ({ title, children }) => (
|
||||
<div className={classes.card}>
|
||||
{title && <H3>{title}</H3>}
|
||||
|
|
|
@ -127,6 +127,9 @@
|
|||
.banner-text
|
||||
padding-top: 0
|
||||
|
||||
.col
|
||||
grid-column: 1 / span 2
|
||||
|
||||
.banner-button
|
||||
margin-bottom: var(--spacing-sm)
|
||||
text-align: right
|
||||
|
|
|
@ -8,6 +8,7 @@ import {
|
|||
LandingSubtitle,
|
||||
LandingGrid,
|
||||
LandingCard,
|
||||
LandingCol,
|
||||
LandingButton,
|
||||
LandingDemo,
|
||||
LandingBannerGrid,
|
||||
|
@ -111,7 +112,7 @@ const Landing = ({ data }) => {
|
|||
<LandingGrid>
|
||||
<LandingDemo title="Edit the code & try spaCy">{CODE_EXAMPLE}</LandingDemo>
|
||||
|
||||
<div>
|
||||
<LandingCol>
|
||||
<H2>Features</H2>
|
||||
<Ul>
|
||||
<Li>
|
||||
|
@ -148,7 +149,7 @@ const Landing = ({ data }) => {
|
|||
<Li>State-of-the-art speed</Li>
|
||||
<Li>Robust, rigorously evaluated accuracy</Li>
|
||||
</Ul>
|
||||
</div>
|
||||
</LandingCol>
|
||||
</LandingGrid>
|
||||
|
||||
<LandingBannerGrid>
|
||||
|
@ -213,7 +214,7 @@ const Landing = ({ data }) => {
|
|||
</LandingBanner>
|
||||
|
||||
<LandingGrid cols={2}>
|
||||
<div>
|
||||
<LandingCol>
|
||||
<H2>Benchmarks</H2>
|
||||
<p>
|
||||
In 2015, independent researchers from Emory University and Yahoo! Labs
|
||||
|
@ -231,11 +232,11 @@ const Landing = ({ data }) => {
|
|||
See details
|
||||
</Button>
|
||||
</p>
|
||||
</div>
|
||||
</LandingCol>
|
||||
|
||||
<div>
|
||||
<LandingCol>
|
||||
<BenchmarksChoi />
|
||||
</div>
|
||||
</LandingCol>
|
||||
</LandingGrid>
|
||||
</>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user