rsnext/examples/with-goober/pages/index.js
Cristian Bote f3f9950b3c
(chore) Add with-goober as an example (#15070)
* (chore) Add with-goober as an example

* (chore) Added better documentation

* Updated package json

Co-authored-by: Luis Alvarez <luis@vercel.com>
2020-07-10 19:39:35 -05:00

28 lines
468 B
JavaScript

import { styled } from 'goober'
const Title = styled('h1')`
padding: 0;
margin: 0;
color: tomato;
`
const SmallTitle = styled('p')`
font-size: 1em;
color: dodgerblue;
transition: padding 200ms ease-in-out;
padding: 1em;
&:hover {
padding-left: 2em;
color: darkseagreen;
}
`
export default function Home() {
return (
<>
<Title>You are using 🥜 goober! Yay!</Title>
<SmallTitle>Go on, try it!</SmallTitle>
</>
)
}