Compare commits

...

6 Commits

Author SHA1 Message Date
77181fc983 2.3.20
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🧪 QA (push) Successful in 1m43s
Build & Deploy / 🏗️ Build (push) Successful in 3m6s
Build & Deploy / 🚀 Deploy (push) Successful in 16s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 6m23s
Build & Deploy / 🔔 Notify (push) Successful in 1s
2026-04-21 18:57:38 +02:00
32b56696a6 feat(pdf): use static avb pdf for agbs route 2026-04-21 18:57:35 +02:00
9b28dd20d9 chore: update avb assets for april 2026
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 8s
Build & Deploy / 🧪 QA (push) Successful in 1m59s
Build & Deploy / 🏗️ Build (push) Successful in 3m1s
Build & Deploy / 🚀 Deploy (push) Successful in 14s
Build & Deploy / 🧪 Post-Deploy Verification (push) Failing after 5m9s
Build & Deploy / 🔔 Notify (push) Successful in 2s
2026-04-21 18:47:48 +02:00
1970ae310f 2.3.18
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🧪 QA (push) Successful in 1m17s
Build & Deploy / 🏗️ Build (push) Successful in 3m47s
Build & Deploy / 🚀 Deploy (push) Successful in 14s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 5m37s
Build & Deploy / 🔔 Notify (push) Successful in 4s
2026-04-21 17:38:49 +02:00
7bc8811a60 2.3.18-rc.8
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🧪 QA (push) Successful in 1m19s
Build & Deploy / 🏗️ Build (push) Successful in 3m38s
Build & Deploy / 🚀 Deploy (push) Successful in 14s
Build & Deploy / 🧪 Post-Deploy Verification (push) Failing after 5m10s
Build & Deploy / 🔔 Notify (push) Successful in 2s
2026-04-21 17:20:45 +02:00
530503fa09 fix(pdf): layout bleeding, margins, and titles 2026-04-21 17:20:42 +02:00
6 changed files with 25 additions and 7 deletions

View File

@@ -4,11 +4,28 @@ import configPromise from '@payload-config';
import { renderToStream } from '@react-pdf/renderer';
import React from 'react';
import { PDFPage } from '@/lib/pdf-page';
import fs from 'fs';
import path from 'path';
export async function GET(req: NextRequest, { params }: { params: Promise<{ slug: string }> }) {
try {
const { slug } = await params;
// Hardcoded bypass for AGBs to use the original uploaded PDF.
if (slug === 'agbs') {
const filePath = path.join(process.cwd(), 'public', 'AVB-KLZ-4-2026.pdf');
if (fs.existsSync(filePath)) {
const fileBuffer = fs.readFileSync(filePath);
return new NextResponse(fileBuffer, {
status: 200,
headers: {
'Content-Type': 'application/pdf',
'Content-Disposition': `attachment; filename="AVB-KLZ-4-2026.pdf"`,
},
});
}
}
// Get Payload App
const payload = await getPayload({ config: configPromise });

View File

@@ -27,7 +27,7 @@ const styles = StyleSheet.create({
color: C.gray900,
lineHeight: 1.6,
backgroundColor: C.white,
paddingTop: 0,
paddingTop: 50,
paddingBottom: 80,
fontFamily: 'Helvetica',
},
@@ -35,10 +35,11 @@ const styles = StyleSheet.create({
// Premium Header Layout
hero: {
backgroundColor: C.offWhite,
paddingTop: 40,
paddingBottom: 32,
paddingTop: 24,
paddingBottom: 24,
paddingHorizontal: MARGIN,
marginBottom: 40,
marginTop: -50, // Counters the page padding to achieve full-bleed top
borderBottomWidth: 1,
borderBottomColor: C.gray200,
position: 'relative',
@@ -71,12 +72,12 @@ const styles = StyleSheet.create({
},
pageTitle: {
fontSize: 28,
fontSize: 16,
fontWeight: 700,
color: C.navyDeep,
marginBottom: 4,
textTransform: 'uppercase',
letterSpacing: -0.5,
letterSpacing: 0,
},
accentBar: {
@@ -366,7 +367,7 @@ export const PDFPage: React.FC<PDFPageProps> = ({ page, locale = 'de' }) => {
</View>
{/* Industrial footer with page numbers */}
<View style={{ ...styles.footer, position: 'absolute', bottom: 30, height: 40 }} fixed>
<View style={{ ...styles.footer, position: 'absolute', bottom: 40, height: 40 }} fixed>
<View style={styles.footerInfo}>
<Text style={styles.footerBrand}>KLZ VERTRIEBS GMBH</Text>
<Text style={styles.footerText}>

View File

@@ -139,7 +139,7 @@
"prepare": "husky",
"preinstall": "npx only-allow pnpm"
},
"version": "2.3.18-rc.7",
"version": "2.3.20",
"pnpm": {
"onlyBuiltDependencies": [
"@parcel/watcher",

BIN
public/AVB-KLZ-4-2026.docx Normal file

Binary file not shown.

BIN
public/AVB-KLZ-4-2026.pdf Normal file

Binary file not shown.

Binary file not shown.