git ssb

1+

bencevans / ssb-news



Tree: bb1d879ac72e9462c12547ce70a4ccba104a1066

Files: bb1d879ac72e9462c12547ce70a4ccba104a1066 / src / views / new.js

1901 bytesRaw
1const html = require('choo/html')
2const header = require('./header')
3
4module.exports = function newView (state) {
5 return html`
6 <body class="sans-serif">
7
8 <link rel="stylesheet" href="https://unpkg.com/reset-css@4.0.1/reset.css"/>
9 <link rel="stylesheet" href="https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css"/>
10
11 <style>
12
13 .voters {
14 width: 40px;
15 float:left;
16 text-align: center;
17 }
18
19 .vote {
20
21 }
22 </style>
23
24 ${header(state)}
25
26 <form class="pa4 black-80" method="POST">
27 <div class="measure-narrow">
28 <label for="password" class="f6 b db mb2">Title</label>
29 <input class="input-reset ba b--black-20 pa2 mb2 db w-100" name="title" type="text" id="search" aria-describedby="password-desc" autofocus>
30 <!--<small id="password-desc" class="f6 lh-copy black-60 db mb2">advanced controls include domain:github.com</small>-->
31 </div>
32 <div class="measure-narrow">
33 <label for="password" class="f6 b db mb2">URL</label>
34 <input class="input-reset ba b--black-20 pa2 mb2 db w-100" name="link" type="url" id="search" aria-describedby="password-desc">
35 <small id="password-desc" class="f6 lh-copy black-60 db mb2">
36 ... or ...
37 </small>
38 </div>
39
40 <div class="measure-narrow">
41 <label for="password" class="f6 b db mb2">Content</label>
42 <textarea class="input-reset ba b--black-20 pa2 mb2 db w-100" name="body" type="text" id="search" aria-describedby="password-desc"></textarea>
43 <small id="password-desc" class="f6 lh-copy black-60 db mb2">
44 markdown?
45 </small>
46 </div>
47
48 <input class="input-reset" type="submit"/>
49 </form>
50
51 </body>
52 `
53}
54

Built with git-ssb-web