| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8" /> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | <title>Jotts — new</title> |
| 7 | <link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png"> |
| 8 | <link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png"> |
| 9 | <link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png"> |
| 10 | <link rel="manifest" href="/static/site.webmanifest"> |
| 11 | <link rel="icon" href="/static/favicon.ico"> |
| 12 | <meta name="theme-color" content="#121113" /> |
| 13 | <link rel="stylesheet" href="/assets/darkmatter.css"> |
| 14 | <link rel="stylesheet" href="/static/styles.css"> |
| 15 | </head> |
| 16 | <body> |
| 17 | <header class="header"> |
| 18 | <a href="/" class="logo">jotts</a> |
| 19 | <nav class="links"><a href="/notes/new">new</a></nav> |
| 20 | </header> |
| 21 | <main> |
| 22 | {{if .Error}}<p class="error">{{.Error}}</p>{{end}} |
| 23 | <form method="POST" action="/notes" class="form"> |
| 24 | <label for="title">title</label> |
| 25 | <input type="text" id="title" name="title" autofocus required> |
| 26 | <label for="content">content</label> |
| 27 | <textarea id="content" name="content" placeholder="write markdown here..."></textarea> |
| 28 | <button type="submit">save</button> |
| 29 | </form> |
| 30 | </main> |
| 31 | </body> |
| 32 | </html> |