Improve styling
parent
9d5d6acbfc
commit
697bf21eda
14
main.go
14
main.go
|
@ -155,10 +155,18 @@ var baseHeader = `<!DOCTYPE html>
|
||||||
<title>{{.}}</title>
|
<title>{{.}}</title>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
margin: 18pt auto;
|
padding: 18pt;
|
||||||
font-size: 16pt;
|
text-align: center;
|
||||||
|
font: 16pt monospace;
|
||||||
color: #212121;
|
color: #212121;
|
||||||
}
|
}
|
||||||
|
form {
|
||||||
|
display: inline-block;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
input {
|
||||||
|
font: inherit;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>`
|
<body>`
|
||||||
|
@ -168,7 +176,7 @@ var baseFooter = `</body>
|
||||||
|
|
||||||
var uploadTemplate = `{{template "BaseHeader" "RUFF - Upload Form"}}
|
var uploadTemplate = `{{template "BaseHeader" "RUFF - Upload Form"}}
|
||||||
<form enctype="multipart/form-data" action="/" method="post">
|
<form enctype="multipart/form-data" action="/" method="post">
|
||||||
<label for="file">Select a file for upload:</label>
|
<label for="file">Select a file for upload:</label><br><br>
|
||||||
<input type="file" name="file">
|
<input type="file" name="file">
|
||||||
<input type="submit" value="Upload"{{if .Multiple}} multiple{{end}}>
|
<input type="submit" value="Upload"{{if .Multiple}} multiple{{end}}>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue