chore: clean up repo root and improve .gitignore
- Remove debug scripts: check_albums.js, check_albums.ts - Remove git-filter-repo binary from root - Untrack server.log (was accidentally committed) - Delete .DS_Store files - Rewrite .gitignore with clear sections: deps, next.js, TypeScript, testing, logs, env, OS/editor, agent tools, one-off scripts, deployment, user content - Add .Jules/ and *.log glob to .gitignore
This commit is contained in:
@@ -37,7 +37,8 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
|
||||
|
||||
if (!success) {
|
||||
const retryAfter = Math.ceil((resetAt - Date.now()) / 1000);
|
||||
console.warn(`[Image API] ⚠️ Rate limit exceeded for IP: ${ip}. Retry after ${retryAfter}s`);
|
||||
const userAgent = request.headers.get('user-agent') || 'unknown';
|
||||
console.warn(`[Image API] ⚠️ Rate limit exceeded for IP: ${ip} (UA: ${userAgent}). Retry after ${retryAfter}s`);
|
||||
return NextResponse.json({ error: 'Too many requests' }, { status: 429 });
|
||||
}
|
||||
|
||||
|
||||
@@ -1395,6 +1395,19 @@
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* ── Tablet (iPad, kleine Laptops) ─────────────────── */
|
||||
/* Direkt column-count setzen → kein Konflikt mit Inline-Style der Custom Property */
|
||||
@media (max-width: 1024px) and (min-width: 641px) {
|
||||
.photo-grid {
|
||||
column-count: 2;
|
||||
}
|
||||
|
||||
.photo-grid--uniform,
|
||||
.photo-grid--showcase {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.hero {
|
||||
grid-template-columns: 1fr;
|
||||
@@ -1415,8 +1428,26 @@
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
/* Portrait: 2 Spalten — direkt gesetzt, kein !important nötig */
|
||||
.photo-grid {
|
||||
--grid-columns: 1;
|
||||
column-count: 2;
|
||||
}
|
||||
|
||||
.photo-grid--uniform,
|
||||
.photo-grid--showcase {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
/* Landscape-Handy → 3 Spalten */
|
||||
@media (orientation: landscape) {
|
||||
.photo-grid {
|
||||
column-count: 3;
|
||||
}
|
||||
|
||||
.photo-grid--uniform,
|
||||
.photo-grid--showcase {
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
.album-grid {
|
||||
|
||||
Reference in New Issue
Block a user