1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-styled-jsx-scss/pages/index.js
Tim Neutkens ae44109f6d Add styled-jsx-plugin-sass example (#3104)
* Upgrade dependency on next

* Add styled-jsx-plugin-sass example

* Update readme
2017-10-16 12:08:24 +05:30

23 lines
426 B
JavaScript

export default () => (
<div className='hello'>
<p>Hello World</p>
<style jsx>{`
$color: red;
.hello {
background: #eee;
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>
)