Compare commits
No commits in common. "9dabbf9bebf9aaa4702cb18d53af754660912fa6" and "7090873611711afa06104eb57c07001fcaf922f8" have entirely different histories.
9dabbf9beb
...
7090873611
2
main.go
2
main.go
|
@ -31,6 +31,6 @@ func main() {
|
||||||
GET("/", html.Index).
|
GET("/", html.Index).
|
||||||
Middleware(ws.LoggingMiddleware(log))
|
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))
|
log.Fatal(http.ListenAndServe(*host, router))
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,18 +15,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
#main-upload {
|
#main-upload {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
margin-top: 10%;
|
||||||
|
margin-bottom: 30%;
|
||||||
width: 30%;
|
width: 30%;
|
||||||
border: 5px solid rebeccapurple;
|
border: 5px solid rebeccapurple;
|
||||||
height: 30vw;
|
height: 30vw;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin: 0 auto;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
background-color: rgba(13, 6, 19, 0.4);
|
background-color: rgba(13, 6, 19, 0.4);
|
||||||
font-size: large;
|
font-size: large;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -35,8 +36,8 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>file upload</h1>
|
<h1>file upload</h1>
|
||||||
<div id="main-upload">
|
<div id="main-upload">
|
||||||
<p>Paste a file to upload it</p>
|
<form id="upload-form" method="post" action="/v1/upload" enctype="multipart/form-data">
|
||||||
<form id="upload-form" method="post" action="/v1/upload" enctype="multipart/form-data" hidden>
|
<label for="upload">Upload a file</label>
|
||||||
<input type="file" id="upload" name="upload" accept="*" value="upload">
|
<input type="file" id="upload" name="upload" accept="*" value="upload">
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue