diff options
| author | veradec <glitchmill.dyj3d@simplelogin.co> | 2026-11-12 10:50:25 +0530 |
|---|---|---|
| committer | veradec <glitchmill.dyj3d@simplelogin.co> | 2026-11-12 10:50:25 +0530 |
| commit | 8e79ffe0cccd163b3207d31f6093864b2141e5cf (patch) | |
| tree | d3da6711fbeedfecf84c67d2237b53a9e4e9fa09 | |
| parent | 7af53656c4b6a4e024a6618fc122fda06257d554 (diff) | |
add: html quality of life
| -rw-r--r-- | index.html | 53 | ||||
| -rw-r--r-- | main.go | 2 |
2 files changed, 46 insertions, 9 deletions
@@ -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; + } </style> </head> <body> - <h2>Welcome to UxU</h2> - - <p>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.</p> - <br><br> - <code>curl -X POST -F "file=@file.png"</code> - <br><br>and the reponse will be a link with your Filename (sanitized ofcourse) - - <script src="index.js"></script> + <div class="container"> + <h2>Welcome to UxU</h2> + + <p>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.</p> + + <code>curl -X POST -F "file=@file.png"</code> + <p>and the reponse will be a link with your Filename (sanitized ofcourse)</p> + <code>https://uxu.veradec.xyz/{random_string}/file.png</code> + <p>something of this sorts and you can share the link too!</p> + </div> + <hr> + <div class="footer"> + <div class="text-footer"> + <p><small>No Tracking or No Looking, I promise | + You too can host it with <a href="https://git.veradec.xyz/UxU.git">this git repo</a></small></p> + </div> + + <div class="img-footer"> + <img src="./assets/anythingbut.gif"> + <img src="./assets/cc0.png"> + <img src="./assets/emacs2.gif"> + </div> + </div> </body> </html> @@ -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") |
