summaryrefslogtreecommitdiff
path: root/web/templates/partials
diff options
context:
space:
mode:
Diffstat (limited to 'web/templates/partials')
-rw-r--r--web/templates/partials/error-banner.html12
-rw-r--r--web/templates/partials/lists-options.html4
-rw-r--r--web/templates/partials/meals-tab.html10
-rw-r--r--web/templates/partials/plantoeat-meals.html35
-rw-r--r--web/templates/partials/trello-boards.html45
5 files changed, 0 insertions, 106 deletions
diff --git a/web/templates/partials/error-banner.html b/web/templates/partials/error-banner.html
deleted file mode 100644
index 628424f..0000000
--- a/web/templates/partials/error-banner.html
+++ /dev/null
@@ -1,12 +0,0 @@
-{{define "error-banner"}}
-{{if .Errors}}
-<div class="bg-red-900/50 border border-red-500/30 text-red-300 px-4 py-3 rounded-lg mb-6">
- <p class="font-medium">Errors:</p>
- <ul class="list-disc list-inside">
- {{range .Errors}}
- <li>{{.}}</li>
- {{end}}
- </ul>
-</div>
-{{end}}
-{{end}}
diff --git a/web/templates/partials/lists-options.html b/web/templates/partials/lists-options.html
deleted file mode 100644
index f08fdcf..0000000
--- a/web/templates/partials/lists-options.html
+++ /dev/null
@@ -1,4 +0,0 @@
-{{define "lists-options"}}
-{{range .}}<option value="{{.ID}}">{{.Name}}</option>
-{{end}}
-{{end}}
diff --git a/web/templates/partials/meals-tab.html b/web/templates/partials/meals-tab.html
deleted file mode 100644
index 97c3a4e..0000000
--- a/web/templates/partials/meals-tab.html
+++ /dev/null
@@ -1,10 +0,0 @@
-{{define "meals-tab"}}
-<div class="space-y-6"
- hx-get="/tabs/meals"
- hx-trigger="refresh-tasks from:body"
- hx-target="#tab-content"
- hx-swap="innerHTML">
- <!-- PlanToEat Meals Section -->
- {{template "plantoeat-meals" .}}
-</div>
-{{end}}
diff --git a/web/templates/partials/plantoeat-meals.html b/web/templates/partials/plantoeat-meals.html
deleted file mode 100644
index f05c98c..0000000
--- a/web/templates/partials/plantoeat-meals.html
+++ /dev/null
@@ -1,35 +0,0 @@
-{{define "plantoeat-meals"}}
-<section class="card text-shadow-sm">
- <!-- Section Header with Brand Color -->
- <div class="flex items-center gap-3 mb-6">
- <div class="w-1 h-8 bg-plantoeat rounded"></div>
- <h2 class="text-2xl font-light text-white tracking-wide">Upcoming Meals</h2>
- </div>
-
- {{if .Meals}}
- <div class="space-y-3">
- {{range .Meals}}
- <div class="border-l-4 border-plantoeat bg-black/30 pl-4 py-3 rounded-r-lg hover:bg-black/40 transition-colors">
- <p class="font-medium text-white">{{range $i, $name := .RecipeNames}}{{if $i}} + {{end}}{{$name}}{{end}}</p>
- <div class="flex justify-between items-center mt-2">
- <span class="text-sm text-white/60">{{.Date.Format "Mon, Jan 2"}}</span>
- <span class="badge bg-green-900/50 text-green-300 capitalize">
- {{.MealType}}
- </span>
- </div>
- </div>
- {{end}}
- </div>
- {{else}}
- <div class="text-center py-16">
- <svg class="mx-auto h-12 w-12 text-white/30" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9" />
- </svg>
- <h3 class="mt-4 text-lg font-medium text-white">No meals planned</h3>
- <p class="mt-2 text-sm text-white/50">
- Schedule your meals to see them here.
- </p>
- </div>
- {{end}}
-</section>
-{{end}}
diff --git a/web/templates/partials/trello-boards.html b/web/templates/partials/trello-boards.html
deleted file mode 100644
index d51446d..0000000
--- a/web/templates/partials/trello-boards.html
+++ /dev/null
@@ -1,45 +0,0 @@
-{{define "trello-boards"}}
-{{if .Boards}}
-<section class="card section-spacing text-shadow-sm">
- <!-- Section Header with Brand Color -->
- <div class="flex items-center gap-3 mb-6">
- <div class="w-1 h-8 bg-trello rounded"></div>
- <h2 class="text-2xl font-light text-white tracking-wide">Trello Boards</h2>
- </div>
-
- <!-- Active Boards Grid (boards with cards) -->
- <div class="card-grid mb-6">
- {{range .Boards}}
- {{if .Cards}}
- {{template "trello-board" .}}
- {{end}}
- {{end}}
- </div>
-
- <!-- Empty Boards Collapsible (boards without cards) -->
- <details class="mt-6 border-t border-white/10 pt-6">
- <summary class="cursor-pointer flex items-center justify-between group">
- <span class="text-sm font-medium text-white/50 group-hover:text-white/80 transition-colors">
- Empty Boards
- </span>
- <svg class="w-5 h-5 text-white/40 group-hover:text-white/60 transition-all"
- fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
- </svg>
- </summary>
- <div class="mt-4">
- <div class="card-grid">
- {{range .Boards}}
- {{if not .Cards}}
- <div class="border border-white/10 rounded-lg p-4 bg-black/30 opacity-70 hover:opacity-100 transition-opacity">
- <h3 class="font-medium text-white/70">{{.Name}}</h3>
- <p class="text-sm text-white/40 mt-2">No cards</p>
- </div>
- {{end}}
- {{end}}
- </div>
- </div>
- </details>
-</section>
-{{end}}
-{{end}}