Style things a bit

This commit is contained in:
Matt Baer 2018-11-29 10:24:11 -05:00
parent 77a6bc9413
commit b881e80b19
2 changed files with 43 additions and 7 deletions

View File

@ -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"> <form action="/create" method="post">
<textarea name="stuff"></textarea> <textarea name="stuff" placeholder="Paste something..." autofocus></textarea>
<input type="submit" value="Post" /> <input type="submit" value="Publish" />
</form> </form>
</body>
</html>

View File

@ -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>