summaryrefslogtreecommitdiff
path: root/web/templates
diff options
context:
space:
mode:
Diffstat (limited to 'web/templates')
-rw-r--r--web/templates/index.html8
-rw-r--r--web/templates/partials/notes-tab.html36
-rw-r--r--web/templates/partials/obsidian-notes.html30
3 files changed, 0 insertions, 74 deletions
diff --git a/web/templates/index.html b/web/templates/index.html
index 045b4d6..b341c17 100644
--- a/web/templates/index.html
+++ b/web/templates/index.html
@@ -42,14 +42,6 @@
📋 Planning
</button>
<button
- class="tab-button {{if eq .ActiveTab "notes"}}tab-button-active{{end}}"
- hx-get="/tabs/notes"
- hx-target="#tab-content"
- hx-push-url="?tab=notes"
- onclick="setActiveTab(this)">
- 📝 Notes
- </button>
- <button
class="tab-button {{if eq .ActiveTab "meals"}}tab-button-active{{end}}"
hx-get="/tabs/meals"
hx-target="#tab-content"
diff --git a/web/templates/partials/notes-tab.html b/web/templates/partials/notes-tab.html
deleted file mode 100644
index df844cf..0000000
--- a/web/templates/partials/notes-tab.html
+++ /dev/null
@@ -1,36 +0,0 @@
-{{define "notes-tab"}}
-<div class="space-y-10">
- <!-- Error Messages -->
- {{template "error-banner" .}}
-
- <!-- Search Bar -->
- <div class="mb-6">
- <input type="text"
- name="q"
- placeholder="Search notes..."
- class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-obsidian focus:border-transparent"
- hx-get="/tabs/notes"
- hx-trigger="keyup changed delay:300ms"
- hx-target="#notes-results"
- hx-indicator="#search-indicator">
- </div>
-
- <!-- Notes Results -->
- <div id="notes-results">
- {{if .Notes}}
- {{template "obsidian-notes" .}}
- {{else}}
- <div class="text-center py-20">
- <svg class="mx-auto h-16 w-16 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
- d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
- </svg>
- <h3 class="mt-6 text-xl font-medium text-gray-900">No notes found</h3>
- <p class="mt-2 text-sm text-gray-500 max-w-md mx-auto">
- Configure your Obsidian vault path in the settings to see your recent notes displayed here.
- </p>
- </div>
- {{end}}
- </div>
-</div>
-{{end}}
diff --git a/web/templates/partials/obsidian-notes.html b/web/templates/partials/obsidian-notes.html
deleted file mode 100644
index 268a0fe..0000000
--- a/web/templates/partials/obsidian-notes.html
+++ /dev/null
@@ -1,30 +0,0 @@
-{{define "obsidian-notes"}}
-{{if .Notes}}
-<section class="section-spacing">
- <!-- Section Header with Brand Color -->
- <div class="flex items-center gap-3 mb-6">
- <div class="w-1 h-8 bg-obsidian rounded"></div>
- <h2 class="text-2xl font-bold text-gray-900">Recent Notes</h2>
- </div>
-
- <div class="card-grid">
- {{range .Notes}}
- <div class="note-card">
- <h3 class="font-semibold text-gray-900 mb-2">{{.Title}}</h3>
- <p class="text-sm text-gray-600 mb-3 line-clamp-3">{{.Content}}</p>
- <div class="flex justify-between items-center text-xs">
- <span class="text-gray-500">{{.Modified.Format "Jan 2, 3:04 PM"}}</span>
- {{if .Tags}}
- <div class="flex gap-1 flex-wrap">
- {{range .Tags}}
- <span class="badge bg-purple-100 text-purple-800">#{{.}}</span>
- {{end}}
- </div>
- {{end}}
- </div>
- </div>
- {{end}}
- </div>
-</section>
-{{end}}
-{{end}}