diff --git a/package-lock.json b/package-lock.json index d2a8716..8a453e7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,8 @@ "version": "1.0.0", "license": "ISC", "devDependencies": { - "tailwindcss": "^3.4.10" + "daisyui": "^4.12.10", + "tailwindcss": "3.4.10" } }, "node_modules/@alloc/quick-lru": { @@ -308,6 +309,17 @@ "node": ">= 8" } }, + "node_modules/css-selector-tokenizer": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.8.0.tgz", + "integrity": "sha512-Jd6Ig3/pe62/qe5SBPTN8h8LeUg/pT4lLgtavPf7updwwHpvFzxvOQBHYj2LZDMjUnBzgvIUSjRcf6oT5HzHFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "fastparse": "^1.1.2" + } + }, "node_modules/cssesc": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", @@ -320,6 +332,36 @@ "node": ">=4" } }, + "node_modules/culori": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/culori/-/culori-3.3.0.tgz", + "integrity": "sha512-pHJg+jbuFsCjz9iclQBqyL3B2HLCBF71BwVNujUYEvCeQMvV97R59MNK3R2+jgJ3a1fcZgI9B3vYgz8lzr/BFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, + "node_modules/daisyui": { + "version": "4.12.10", + "resolved": "https://registry.npmjs.org/daisyui/-/daisyui-4.12.10.tgz", + "integrity": "sha512-jp1RAuzbHhGdXmn957Z2XsTZStXGHzFfF0FgIOZj3Wv9sH7OZgLfXTRZNfKVYxltGUOBsG1kbWAdF5SrqjebvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "css-selector-tokenizer": "^0.8", + "culori": "^3", + "picocolors": "^1", + "postcss-js": "^4" + }, + "engines": { + "node": ">=16.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/daisyui" + } + }, "node_modules/didyoumean": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", @@ -372,6 +414,13 @@ "node": ">= 6" } }, + "node_modules/fastparse": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.2.tgz", + "integrity": "sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ==", + "dev": true, + "license": "MIT" + }, "node_modules/fastq": { "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", diff --git a/package.json b/package.json index 6616415..f792c4d 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,14 @@ "description": "Your (almost) independent tech stack to host on a VPC.", "main": "index.js", "scripts": { - "build": "tailwindcss build -o static/css/tailwind.css --minify", - "watch": "tailwindcss build -o static/css/tailwind.css --watch" + "build": "tailwindcss build -o static/css/tailwind.css --minify", + "watch": "tailwindcss build -o static/css/tailwind.css --watch" }, "keywords": [], "author": "", "license": "ISC", "devDependencies": { + "daisyui": "^4.12.10", "tailwindcss": "3.4.10" } } diff --git a/service/static_ui.go b/service/static_ui.go index fff37f7..bc5e565 100644 --- a/service/static_ui.go +++ b/service/static_ui.go @@ -12,7 +12,7 @@ func HandleStaticUi(w http.ResponseWriter, r *http.Request) { if r.URL.Path != "/" { comp = templates.Layout(templates.NotFound()) } else { - comp = templates.Layout(nil) + comp = templates.Layout(templates.Index()) } comp.Render(r.Context(), w) diff --git a/tailwind.config.js b/tailwind.config.js index 4f68882..cafdb9b 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,9 +1,14 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - content: ["./templates/**/*.templ"], - theme: { - extend: {}, - }, - plugins: [], + content: ["./templates/**/*.templ"], + theme: { + extend: {}, + }, + plugins: [ + require('daisyui'), + ], + daisyui: { + themes: ["retro"], + }, } diff --git a/templates/footer.templ b/templates/footer.templ deleted file mode 100644 index 0fe36a5..0000000 --- a/templates/footer.templ +++ /dev/null @@ -1,5 +0,0 @@ -package templates - -templ footer() { -
+ Ever wanted to track your workouts and see your progress over time? ME-FIT is the perfect + solution for you. +
+ Get Started +