mirror of
https://github.com/He4eT/huge-link.git
synced 2026-05-05 08:57:23 +00:00
Add styles
This commit is contained in:
parent
5e364da3d8
commit
49a57910dd
6 changed files with 118 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue