Commit Graph

11 Commits

Author SHA1 Message Date
Matic Ivešić 6bc5fffda2 Phase 1: self-hosted backend (adapter-node + SQLite) replacing Supabase
Migrate the gallery/admin off the static + Supabase setup to a self-hosted
full-stack app that runs on the home server behind nginx.

- Switch adapter-static -> adapter-node
- SQLite via Drizzle (users, sessions, gallery_images); migrations run on startup
- Server-side session auth (argon2 hashing, httpOnly cookie, SHA-256 stored token,
  sliding expiry) wired through hooks.server.ts
- Admin: server-side login, route guard, gallery upload/delete via form actions
- Public gallery is now SSR from the DB; /uploads/[...path] serves images in dev
- scripts/create-admin.js + db:generate/db:migrate/create-admin npm scripts
- Remove @supabase/supabase-js and the client-side gallery/admin code
- Fix pre-existing imageOnRight boolean prop type in Main.svelte
- ADMIN_SETUP.md rewritten for local dev + home-server deploy (systemd, nginx, backups)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-02 20:54:06 +02:00
Matic Ivešić 41410e3079 Added hover effect to contact elements 2025-11-02 20:56:14 +01:00
Matic Ivešić 8d3e601768 Merge branch 'main' of https://github.com/MoxiFoxi411/intelidomWebsite 2025-11-01 20:22:06 +01:00
Matic Ivešić 587ca29e84 Added image-mask to contact element 2025-10-31 23:06:32 +01:00
Matic Ivešić a8768f7ac3 Fixed image aspect ratio on phone 2025-10-29 14:33:20 +01:00
Matic Ivešić 284158bf14 Added zoom in effect to service images 2025-10-29 14:18:21 +01:00
Matic Ivešić 674b91e615 Added new font 'Inter' and some changes on <ul> 2025-10-23 08:34:45 +02:00
Matic Ivešić 25b96c2827 Website redesign 2025-10-21 20:47:58 +02:00
Matic Ivešić 6ed1754cf9 Website redesign 2025-10-21 20:45:13 +02:00
Matic Ivešić 83751ad87b First development commit 2025-07-22 21:22:34 +02:00
Matic Ivešić eb48bc390a First commit 2025-03-07 12:20:16 +01:00