From 8e79ffe0cccd163b3207d31f6093864b2141e5cf Mon Sep 17 00:00:00 2001 From: veradec Date: Thu, 12 Nov 2026 10:50:25 +0530 Subject: add: html quality of life --- index.html | 53 ++++++++++++++++++++++++++++++++++++++++++++--------- main.go | 2 ++ 2 files changed, 46 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index 2869c13..1e9b595 100644 --- a/index.html +++ b/index.html @@ -12,17 +12,52 @@ background: #c2c2c2; padding: 0; } + .text-footer { + display: flex; + justify-content: center ; + align-items: center; + } + + .img-footer { + display: flex; + justify-content: center; + } + + .container { + display: flex; + flex-direction: column; + min-height: 85vh; + } + + .footer { + margin-top: auto; + } -

Welcome to UxU

- -

Yes! UxU is a File Hosting service, but not in it's traditional sense. There is no Upload Button. - You need to move to the cultured way of doing it -- using curl.

-

- curl -X POST -F "file=@file.png" -

and the reponse will be a link with your Filename (sanitized ofcourse) - - +
+

Welcome to UxU

+ +

Yes! UxU is a File Hosting service, but not in it's traditional sense. There is no Upload Button. + You need to move to the cultured way of doing it -- using curl.

+ + curl -X POST -F "file=@file.png" +

and the reponse will be a link with your Filename (sanitized ofcourse)

+ https://uxu.veradec.xyz/{random_string}/file.png +

something of this sorts and you can share the link too!

+
+
+ diff --git a/main.go b/main.go index 3a72a89..f230517 100644 --- a/main.go +++ b/main.go @@ -54,6 +54,8 @@ func main(){ files := http.FileServer(http.FS(os.DirFS("./files"))) + router.Static("/assets", "./assets") + router.GET("/:random_string/:name", gin.WrapH(files)) router.Run(":8080") -- cgit v1.2.3