diff --git a/router/router.go b/router/router.go
index 6506589..794fab2 100644
--- a/router/router.go
+++ b/router/router.go
@@ -67,6 +67,7 @@ func New(cfg Config) *chi.Mux {
})
mux.Mount("/css", http.FileServer(http.FS(static.CSS)))
+ mux.Mount("/img", http.FileServer(http.FS(static.Img)))
mux.Route("/", func(r chi.Router) {
r.Use(store.Middleware)
diff --git a/static/img/invitea-full.png b/static/img/invitea-full.png
new file mode 100644
index 0000000..bef1331
Binary files /dev/null and b/static/img/invitea-full.png differ
diff --git a/static/img/invitea.png b/static/img/invitea.png
new file mode 100644
index 0000000..477752a
Binary files /dev/null and b/static/img/invitea.png differ
diff --git a/static/static.go b/static/static.go
index d8d004a..0acbbfd 100644
--- a/static/static.go
+++ b/static/static.go
@@ -12,4 +12,7 @@ var (
//go:embed templates
templates embed.FS
Templates = template.Must(template.ParseFS(templates, "templates/*"))
+
+ //go:embed img
+ Img embed.FS
)
diff --git a/static/templates/index.tmpl b/static/templates/index.tmpl
index 6bf2270..55d23fa 100644
--- a/static/templates/index.tmpl
+++ b/static/templates/index.tmpl
@@ -1,26 +1,27 @@
Invitea
-
+
+
-Invitea
-
- Welcome to the home page of Invitea , an invite link generator for Gitea .
-
+ Invitea
+
+ Welcome to the home page of Invitea , an invite link generator for Gitea .
+
-{{ if .isAdmin }}
-
- Hello, {{ .username }}. Log Out
-
-{{ template "admin.tmpl" . }}
-{{ else }}
-
- For non-admins there isn't much to do here. Log In
-
-{{ end }}
+ {{ if .isAdmin }}
+
+ Hello, {{ .username }}. Log Out
+
+ {{ template "admin.tmpl" . }}
+ {{ else }}
+
+ For non-admins there isn't much to do here. Log In
+
+ {{ end }}
\ No newline at end of file
diff --git a/static/templates/invite.tmpl b/static/templates/invite.tmpl
index e234431..48a1b3e 100644
--- a/static/templates/invite.tmpl
+++ b/static/templates/invite.tmpl
@@ -1,11 +1,12 @@
Invitea
+