lens @ 049b9acbd9635c206f5eeb01074b5d63803c4cd5

ref: Remove static fs on root

Go embed does allow to load parent folder, so I move static fs to
static folder as I think it fits better there than in the root of the
project.
diff --git a/.gitignore b/.gitignore
index 8c71f011f1739d776207da84cad9867627fbdf79..4b42cf2fd34fd7d4927c4e97337add32d6df0d3f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
 vendor/
-static/
+static/main.css
 bin/
 media_cache/
 templates/*.qtpl.go
diff --git a/cmd/server/main.go b/cmd/server/main.go
index 8f163dfd6e4f2471f99d51b530cd816a0f184ebf..1591102b51c5ac723daf3b980f721f078b4f954c 100644
--- a/cmd/server/main.go
+++ b/cmd/server/main.go
@@ -16,7 +16,6 @@ 	"gorm.io/driver/postgres"
 	"gorm.io/driver/sqlite"
 	"gorm.io/gorm"
 
-	"git.sr.ht/~gabrielgio/img"
 	"git.sr.ht/~gabrielgio/img/pkg/database/localfs"
 	"git.sr.ht/~gabrielgio/img/pkg/database/repository"
 	"git.sr.ht/~gabrielgio/img/pkg/database/sql"
@@ -25,6 +24,7 @@ 	"git.sr.ht/~gabrielgio/img/pkg/service"
 	"git.sr.ht/~gabrielgio/img/pkg/view"
 	"git.sr.ht/~gabrielgio/img/pkg/worker"
 	"git.sr.ht/~gabrielgio/img/pkg/worker/scanner"
+	"git.sr.ht/~gabrielgio/img/static"
 )
 
 func main() {
@@ -72,7 +72,7 @@ 		panic("failed to decode key database: " + err.Error())
 	}
 
 	r := router.New()
-	r.GET("/static/{filepath:*}", ext.FileServer(img.StaticFS, "static/"))
+	r.GET("/static/{filepath:*}", ext.FileServer(static.Static, "static/"))
 
 	// repository
 	var (
diff --git a/static.go b/static.go
deleted file mode 100644
index 06f1459520097997f642ad087301207e4892f2db..0000000000000000000000000000000000000000
--- a/static.go
+++ /dev/null
@@ -1,10 +0,0 @@
-package img
-
-import (
-	"embed"
-)
-
-var (
-	//go:embed static/*
-	StaticFS embed.FS
-)
diff --git a/static/square.svg b/static/square.svg
new file mode 100644
index 0000000000000000000000000000000000000000..31c56cc0ff7db1e176fb266212bbf22af204de21
--- /dev/null
+++ b/static/square.svg
@@ -0,0 +1,199 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
+
+<svg fill="#000000" width="800px" height="800px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
+
+<rect id="Icons" x="-1152" y="-64" width="1280" height="800" style="fill:none;"/>
+
+<g id="Icons1" serif:id="Icons">
+
+<g id="Strike">
+
+</g>
+
+<g id="H1">
+
+</g>
+
+<g id="H2">
+
+</g>
+
+<g id="H3">
+
+</g>
+
+<g id="list-ul">
+
+</g>
+
+<g id="hamburger-1">
+
+</g>
+
+<g id="hamburger-2">
+
+</g>
+
+<g id="list-ol">
+
+</g>
+
+<g id="list-task">
+
+</g>
+
+<g id="trash">
+
+</g>
+
+<g id="vertical-menu">
+
+</g>
+
+<g id="horizontal-menu">
+
+</g>
+
+<g id="sidebar-2">
+
+</g>
+
+<g id="Pen">
+
+</g>
+
+<g id="Pen1" serif:id="Pen">
+
+</g>
+
+<g id="clock">
+
+</g>
+
+<g id="external-link">
+
+</g>
+
+<g id="hr">
+
+</g>
+
+<g id="info">
+
+</g>
+
+<g id="warning">
+
+</g>
+
+<g id="plus-circle">
+
+</g>
+
+<g id="minus-circle">
+
+</g>
+
+<g id="vue">
+
+</g>
+
+<g id="cog">
+
+</g>
+
+<g id="logo">
+
+</g>
+
+<g id="radio-check">
+
+</g>
+
+<g id="eye-slash">
+
+</g>
+
+<g id="eye">
+
+</g>
+
+<g id="toggle-off">
+
+</g>
+
+<path id="square" d="M50.005,56l-35.989,0c-3.309,0 -5.995,-2.686 -5.995,-5.995l0,-36.011c0,-3.308 2.686,-5.995 5.995,-5.995l35.989,0c3.309,0 5.995,2.687 5.995,5.995l0,36.011c0,3.309 -2.686,5.995 -5.995,5.995Zm-0.993,-4.001c1.65,0 2.989,-1.339 2.989,-2.989l0,-34.021c0,-1.649 -1.339,-2.989 -2.989,-2.989l-34.003,0c-1.65,0 -2.989,1.34 -2.989,2.989l0,34.021c0,1.65 1.339,2.989 2.989,2.989l34.003,0Z"/>
+
+<g id="shredder">
+
+</g>
+
+<g id="spinner--loading--dots-" serif:id="spinner [loading, dots]">
+
+</g>
+
+<g id="react">
+
+</g>
+
+<g id="check-selected">
+
+</g>
+
+<g id="turn-off">
+
+</g>
+
+<g id="code-block">
+
+</g>
+
+<g id="user">
+
+</g>
+
+<g id="coffee-bean">
+
+</g>
+
+<g id="coffee-beans">
+
+<g id="coffee-bean1" serif:id="coffee-bean">
+
+</g>
+
+</g>
+
+<g id="coffee-bean-filled">
+
+</g>
+
+<g id="coffee-beans-filled">
+
+<g id="coffee-bean2" serif:id="coffee-bean">
+
+</g>
+
+</g>
+
+<g id="clipboard">
+
+</g>
+
+<g id="clipboard-paste">
+
+</g>
+
+<g id="clipboard-copy">
+
+</g>
+
+<g id="Layer1">
+
+</g>
+
+</g>
+
+</svg>
diff --git a/static/static.go b/static/static.go
new file mode 100644
index 0000000000000000000000000000000000000000..ada043472dff4bf3bb13f74d3e2bdb5fdbc10763
--- /dev/null
+++ b/static/static.go
@@ -0,0 +1,6 @@
+package static
+
+import "embed"
+
+//go:embed *
+var Static embed.FS