2017-01-24 00:29:15 +01:00
|
|
|
import { createComponent } from 'react-fela'
|
|
|
|
import Page from '../layout'
|
|
|
|
|
|
|
|
const title = ({ size }) => ({
|
2017-04-22 15:09:35 +02:00
|
|
|
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
|
2017-01-24 00:29:15 +01:00
|
|
|
fontSize: size + 'px',
|
|
|
|
color: 'red'
|
|
|
|
})
|
|
|
|
|
|
|
|
const Title = createComponent(title, 'h1')
|
|
|
|
|
|
|
|
export default () => (
|
|
|
|
<Page>
|
|
|
|
<Title size={50}>My Title</Title>
|
|
|
|
</Page>
|
|
|
|
)
|