minibin
simple file and paste hosting service
diff --git a/main.go b/main.go index cc2fb00..e9faa67 100644 --- a/main.go +++ b/main.go @@ -27,7 +27,7 @@ func main() { log.Fatal(err) } - pages, err := template.ParseFiles("templates/home.html") + pages, err := template.ParseFiles("templates/home.html", "templates/header.html") if err != nil { log.Fatal(err) } diff --git a/readme.md b/readme.md index 36a2a44..b0f83a3 100644 --- a/readme.md +++ b/readme.md @@ -36,7 +36,7 @@ goals: ## misc goals -- [ ] link to this git repo on home page +- [x] link to this git repo on home page - [ ] maybe keep nojs and js on the same page? - just use javascript to enhance the experience, like progress, drag and drop - [ ] shareX config download handlers (automatically create based off of config) \ No newline at end of file diff --git a/static/css/main.css b/static/css/main.css index e94cf49..60ffe71 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -1,6 +1,7 @@ :root { --bg: #191919; --surface: #2a2a2a; + --surface-hover: #4a4a4a; --text: #eee; --text-muted: #aaa; --border: #4e4e4e; @@ -30,10 +31,22 @@ h1 { font-weight: 700; } +a { + color: var(--text); +} + main { width: min(100% - 36px, 720px); margin: 0 auto; - padding: 44px 0 64px; + padding: 11px 0 64px; +} + +.site-header { + width: min(100% - 36px, 720px); + margin: 0 auto; + padding: 44px 0 0; + display: flex; + justify-content: space-between; } textarea { @@ -101,6 +114,13 @@ input[type="file"] { font: inherit; } +input[type="file"]:hover { + background-color: var(--surface); +} +input[type="file"]:hover::file-selector-button { + background-color: var(--surface-hover); +} + input[type="file"]::file-selector-button { background-color: var(--surface); border: none; diff --git a/templates/header.html b/templates/header.html new file mode 100644 index 0000000..17a156b --- /dev/null +++ b/templates/header.html @@ -0,0 +1,11 @@ +{{define "site-header"}} +
+{{end}} \ No newline at end of file diff --git a/templates/home.html b/templates/home.html index ac7e4bc..f8427aa 100644 --- a/templates/home.html +++ b/templates/home.html @@ -7,8 +7,8 @@ + {{template "site-header"}}simple file and paste hosting service