rsnext/examples/with-rebass/pages/index.js

47 lines
1.1 KiB
JavaScript
Raw Normal View History

2017-07-08 14:05:46 +02:00
import {
Provider,
Container,
Heading,
Blockquote,
Toolbar,
NavLink,
Flex,
Box,
2017-07-08 14:05:46 +02:00
} from 'rebass'
function HomePage() {
2017-07-08 14:05:46 +02:00
return (
<Provider>
<Heading is="h1" children="Next.js + Rebass" mb={3} center />
2017-07-08 14:05:46 +02:00
<Container>
<Toolbar bg="black">
<NavLink href="https://github.com/vercel/next.js/" target="_blank">
Next.js
</NavLink>
<NavLink ml="auto" href="http://jxnblk.com/rebass/" target="_blank">
2017-07-08 14:05:46 +02:00
REBASS
</NavLink>
</Toolbar>
<Flex justify="center">
2017-07-08 14:05:46 +02:00
<Box width={1 / 2}>
<Blockquote center fontSize={3} py={4}>
"Next.js is a minimalistic framework for server-rendered React
applications."
2017-07-08 14:05:46 +02:00
</Blockquote>
</Box>
<Box width={6 / 12}>
<Blockquote center fontSize={3} py={4}>
"Functional React UI component library, built with
styled-components"
2017-07-08 14:05:46 +02:00
</Blockquote>
</Box>
</Flex>
</Container>
</Provider>
)
}
export default HomePage