Browse Source

links Get started and Take the Tutorial have been relocated in mobile… (#1857)

main
Stepan 6 years ago
committed by Alexey Pyltsyn
parent
commit
f0d1a01120
  1. 28
      src/pages/index.js

28
src/pages/index.js

@ -62,7 +62,7 @@ class Home extends Component {
<div
css={{
paddingTop: 45,
paddingBottom: 20,
paddingBottom: 10,
[media.greaterThan('small')]: {
paddingTop: 60,
@ -137,8 +137,11 @@ class Home extends Component {
</p>
<Flex
valign="center"
halign="center"
css={{
paddingTop: 40,
flexWrap: 'wrap',
justifyContent: 'center',
[media.greaterThan('xlarge')]: {
paddingTop: 65,
@ -279,10 +282,16 @@ class Home extends Component {
background: colors.dark,
color: colors.white,
paddingTop: 45,
paddingBottom: 45,
paddingBottom: 25,
}}>
<Container>
<Flex valign="center">
<Flex
valign="center"
halign="center"
css={{
flexWrap: 'wrap',
justifyContent: 'center',
}}>
<CtaItem>
<ButtonLink to="/docs/getting-started.html" type="primary">
Get Started
@ -312,8 +321,6 @@ Home.propTypes = {
const CtaItem = ({children, primary = false}) => (
<div
css={{
width: '50%',
[media.between('small', 'large')]: {
paddingLeft: 20,
},
@ -324,13 +331,22 @@ const CtaItem = ({children, primary = false}) => (
'&:first-child': {
textAlign: 'right',
paddingRight: 15,
paddingRight: 7,
paddingLeft: 7,
[media.lessThan('small')]: {
marginBottom: 10,
},
},
'&:nth-child(2)': {
paddingRight: 7,
paddingLeft: 7,
[media.greaterThan('small')]: {
paddingLeft: 15,
},
[media.lessThan('small')]: {
marginBottom: 10,
},
},
}}>
{children}

Loading…
Cancel
Save