2017-10-20 19:29:02 +02:00
|
|
|
const backgroundColor = '#eee'
|
|
|
|
|
2017-10-16 08:38:24 +02:00
|
|
|
export default () => (
|
|
|
|
<div className='hello'>
|
|
|
|
<p>Hello World</p>
|
|
|
|
<style jsx>{`
|
|
|
|
$color: red;
|
|
|
|
|
|
|
|
.hello {
|
2017-10-20 19:29:02 +02:00
|
|
|
background-color: ${backgroundColor};
|
2017-10-16 08:38:24 +02:00
|
|
|
padding: 100px;
|
|
|
|
text-align: center;
|
|
|
|
transition: 100ms ease-in background;
|
|
|
|
&:hover {
|
|
|
|
color: $color;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (max-width: 480px) {
|
|
|
|
font-size: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`}</style>
|
|
|
|
</div>
|
|
|
|
)
|