Add styles

This commit is contained in:
He4eT 2020-12-18 00:09:42 +05:00
commit 49a57910dd
6 changed files with 118 additions and 17 deletions

View file

@ -1,16 +1,21 @@
import {h} from 'preact'
import {Link} from 'preact-router/match'
import style from './style.css'
const Editor = ({markdown, setMarkdown}) => (
<section>
<textarea
class={ style.textarea }
onInput={ ({target}) => setMarkdown(target.value) }>
{ markdown }
</textarea>
<Link href='/preview'>
Preview
</Link>
</section>)
<nav>
<Link href='/preview'>
Preview
</Link>
</nav>
</section>)
export default Editor