Commit Graph

2 Commits

Author SHA1 Message Date
Matic Ivešić a1342e4fda Dashboard polish: banner brand, borderless forms, fix sidebar clipping
- Use intelidom_banner.svg as the sidebar brand instead of text
- Remove borders from admin cards, inputs, user rows, login inputs and
  ghost buttons (subtle fills / focus outlines instead)
- Fix sidebar clipping: height:100vh + padding overflowed the viewport;
  add box-sizing:border-box (+ overflow-y safety), drop divider borders

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-02 21:23:13 +02:00
Matic Ivešić 22af32c722 Phase 2: multi-tab dashboard shell + user management
- Restructure /admin into a (dashboard) route group with a sidebar shell
  (Galerija / Storitve / Novice / Kontakt / Uporabniki) and active-tab state
- Hide the public site header/footer on all /admin routes
- Centralize auth in hooks.server.ts so page loads, form actions AND endpoints
  are all gated (layout load guards don't cover actions)
- Users section (admin-only): add user, change role, reset password, delete;
  safeguards prevent self-delete and removing the last admin; server-side role
  checks (editors get 403 even if UI hidden)
- Login redirects already-authed users; logout moved to /admin/logout endpoint
- Gallery management moved under /admin/gallery; shared .admin-* styles in app.css
- Fix flexbox overflow in the dashboard main column (min-width:0, box-sizing)
- Placeholder tabs for Services/News/Contact (Phases 3-5)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-02 21:13:02 +02:00