Style things a bit
This commit is contained in:
parent
77a6bc9413
commit
b881e80b19
30
editor.html
30
editor.html
@ -1,6 +1,26 @@
|
||||
<h1>gopaste</h1>
|
||||
<html>
|
||||
<head>
|
||||
<title>gopaste</title>
|
||||
<style>
|
||||
form {
|
||||
margin: 0 auto;
|
||||
max-width: 40em;
|
||||
}
|
||||
textarea {
|
||||
width: 100%;
|
||||
height: 50vh;
|
||||
font-family: serif;
|
||||
border: 0;
|
||||
outline: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>gopaste</h1>
|
||||
|
||||
<form action="/create" method="post">
|
||||
<textarea name="stuff"></textarea>
|
||||
<input type="submit" value="Post" />
|
||||
</form>
|
||||
<form action="/create" method="post">
|
||||
<textarea name="stuff" placeholder="Paste something..." autofocus></textarea>
|
||||
<input type="submit" value="Publish" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
20
post.html
20
post.html
@ -1,3 +1,19 @@
|
||||
<h1>gopaste</h1>
|
||||
<html>
|
||||
<head>
|
||||
<title>gopaste</title>
|
||||
<style>
|
||||
article {
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
margin: 0 auto;
|
||||
max-width: 40em;
|
||||
font-family: serif;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1><a href="/">gopaste</a></h1>
|
||||
|
||||
<article style="white-space: pre">{{.}}</article>
|
||||
<article>{{.}}</article>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user