f3f9950b3c
* (chore) Add with-goober as an example * (chore) Added better documentation * Updated package json Co-authored-by: Luis Alvarez <luis@vercel.com>
28 lines
468 B
JavaScript
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>
|
|
</>
|
|
)
|
|
}
|