From 0945da8f9654252008ff6bd56022f9363fd3cca6 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 3 May 2024 09:04:42 +0200 Subject: feat: add basic input frontend --- .gitignore | 1 + frontend/static/style.css | 7 +++++++ frontend/templates/index.tmpl | 18 +++++++++++++++--- justfile | 2 +- 4 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 frontend/static/style.css diff --git a/.gitignore b/.gitignore index c034bd1..5849147 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ go.work /.env /.envrc /.pre-commit-config.yaml +/frontend/static/base.css diff --git a/frontend/static/style.css b/frontend/static/style.css new file mode 100644 index 0000000..96b7c9b --- /dev/null +++ b/frontend/static/style.css @@ -0,0 +1,7 @@ +form { + display: flex; +} + +input[type="search"] { + width: 100%; +} diff --git a/frontend/templates/index.tmpl b/frontend/templates/index.tmpl index 4b545cb..303d030 100644 --- a/frontend/templates/index.tmpl +++ b/frontend/templates/index.tmpl @@ -1,12 +1,24 @@ - + + Searchix - + + -

Searchix

+
+

Searchix

+

Search Nix Packages and options from NixOS, Darwin and Home-Manager

+
+
+ +
+ + +
+
{{ .LiveReload }} diff --git a/justfile b/justfile index a24dc88..b780c07 100644 --- a/justfile +++ b/justfile @@ -2,7 +2,7 @@ default: @just --list --justfile {{ justfile() }} --unsorted prepare: - ln -sf $(nix-build --no-out-link -A css) frontend/static/style.css + ln -sf $(nix-build --no-out-link -A css) frontend/static/base.css checkformat: gofmt -d . -- cgit 1.4.1