Compare commits

..

2 Commits

Author SHA1 Message Date
emilis 9dabbf9beb hiding the ugly upload button 2022-09-02 16:10:58 +01:00
emilis 5313968fc1 fixed host printing 2022-09-02 16:10:45 +01:00
2 changed files with 8 additions and 9 deletions

View File

@ -31,6 +31,6 @@ func main() {
GET("/", html.Index).
Middleware(ws.LoggingMiddleware(log))
log.ColorBracket(0, logie.Colors().Background(logie.ColorWhite).Foreground(logie.ColorBlack)).Infof("Starting server on [%s]", host)
log.ColorBracket(0, logie.Colors().Background(logie.ColorWhite).Foreground(logie.ColorBlack)).Infof("Starting server on [%s]", *host)
log.Fatal(http.ListenAndServe(*host, router))
}

View File

@ -15,19 +15,18 @@
}
#main-upload {
margin-left: auto;
margin-right: auto;
margin-top: 10%;
margin-bottom: 30%;
width: 30%;
border: 5px solid rebeccapurple;
height: 30vw;
padding: 10px;
margin: 0 auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: rgba(13, 6, 19, 0.4);
font-size: large;
font-weight: bold;
display: flex;
justify-content: center;
}
</style>
@ -36,8 +35,8 @@
<body>
<h1>file upload</h1>
<div id="main-upload">
<form id="upload-form" method="post" action="/v1/upload" enctype="multipart/form-data">
<label for="upload">Upload a file</label>
<p>Paste a file to upload it</p>
<form id="upload-form" method="post" action="/v1/upload" enctype="multipart/form-data" hidden>
<input type="file" id="upload" name="upload" accept="*" value="upload">
</form>
</div>