diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-01-12 14:28:50 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-01-12 14:28:50 -1000 |
| commit | 06c7485a7d05de86f9898e388161e8d932d5f3e6 (patch) | |
| tree | 376083a75278c9758f53c0062742062dedb75633 /web/templates/partials/obsidian-notes.html | |
| parent | 9ef5b7f37883f846f105da9dc5d2ba1415e594e3 (diff) | |
Modernize frontend with tabs, HTMX, and Tailwind build pipeline
Complete UI overhaul implementing modern design patterns with HTMX for
dynamic updates, proper Tailwind build pipeline, and improved UX.
Build Pipeline:
- Add npm + PostCSS + Tailwind CSS configuration
- Custom design system with brand colors
- Compiled CSS: 27KB (vs 3MB CDN), 99% reduction
- Makefile for unified build commands
- Inter font for improved typography
Tab Interface:
- Separate Tasks tab from Notes tab using HTMX
- Partial page updates without full refreshes
- Tab state management with proper refresh handling
- New endpoints: /tabs/tasks, /tabs/notes, /tabs/refresh
Template Architecture:
- Modular partials system (7 reusable components)
- Cleaner separation of concerns
Empty Board Management:
- Active boards in main 3-column grid
- Empty boards in collapsible section
- Reduces visual clutter
Visual Design Enhancements:
- Inter font, brand color accents
- Improved typography hierarchy and spacing
- Enhanced card styling with hover effects
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'web/templates/partials/obsidian-notes.html')
| -rw-r--r-- | web/templates/partials/obsidian-notes.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/web/templates/partials/obsidian-notes.html b/web/templates/partials/obsidian-notes.html new file mode 100644 index 0000000..268a0fe --- /dev/null +++ b/web/templates/partials/obsidian-notes.html @@ -0,0 +1,30 @@ +{{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}} |
