From bdab72dcac77f63550721f1bc874b13406684827 Mon Sep 17 00:00:00 2001 From: jabuxas Date: Tue, 15 Oct 2024 15:35:45 -0300 Subject: [PATCH] feat: move upload page to home page --- handlers.go | 5 ---- static/index.html | 19 ++++++------ static/style.css | 20 ++++++++++++- templates/upload.html | 69 ------------------------------------------- 4 files changed, 29 insertions(+), 84 deletions(-) delete mode 100644 templates/upload.html diff --git a/handlers.go b/handlers.go index 14af44b..487533f 100644 --- a/handlers.go +++ b/handlers.go @@ -139,11 +139,6 @@ func (app *Application) uploadHandler(w http.ResponseWriter, r *http.Request) { app.parserHandler(w, r) return } - - tmpl := template.Must(template.ParseFiles("templates/upload.html")) - if err := tmpl.Execute(w, app.uploadHandler); err != nil { - slog.Warn(err.Error()) - } } func (app *Application) parserHandler(w http.ResponseWriter, r *http.Request) { diff --git a/static/index.html b/static/index.html index 9c18d16..0239051 100644 --- a/static/index.html +++ b/static/index.html @@ -11,19 +11,20 @@

abyss paste

-
-
- - - - - - -
+
+ + +
+ +
+
+ +
+