Initial commit: Maria Malejka memorial website

Next.js 14 + node:sqlite memorial site with:
- Hero section, photo slideshow & gallery
- Memory/thoughts editor (admin)
- Music player with upload
- Video gallery
- Docker Compose deployment
- Responsive warm earth tone design
This commit is contained in:
denshooter
2026-02-16 01:26:37 +01:00
commit bdcfa8f3c5
29 changed files with 3779 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { NextRequest, NextResponse } from 'next/server'
import { getDb } from '@/lib/db'
export async function GET(req: NextRequest) {
const type = req.nextUrl.searchParams.get('type')
const db = getDb()
const query = type
? 'SELECT * FROM media WHERE type = ? ORDER BY sort_order, created_at'
: 'SELECT * FROM media ORDER BY sort_order, created_at'
const media = type
? db.prepare(query).all(type)
: db.prepare(query).all()
return NextResponse.json(media)
}