diff --git a/lib/pdf-page.tsx b/lib/pdf-page.tsx index 00881a34..8aeef720 100644 --- a/lib/pdf-page.tsx +++ b/lib/pdf-page.tsx @@ -1,5 +1,5 @@ import React from 'react'; -/* eslint-disable react/prop-types */ + import { Document, Page, View, Text, StyleSheet, Link, Image } from '@react-pdf/renderer'; // Standard fonts like Helvetica are built-in to PDF and don't require registration @@ -52,8 +52,8 @@ const styles = StyleSheet.create({ }, logo: { - width: 60, - height: 30, + width: 140, // Increased to fit full logo + height: 45, objectFit: 'contain', }, @@ -243,7 +243,7 @@ const renderLexicalNode = (node: any, idx: number): React.ReactNode => { case 'paragraph': { if (!node.children || node.children.length === 0) return null; return ( - + {node.children?.map((child: any, i: number) => renderLexicalNode(child, i))} ); @@ -260,14 +260,14 @@ const renderLexicalNode = (node: any, idx: number): React.ReactNode => { if (node.tag === 'h2') hStyle = styles.heading2; const content = ( - + {node.children?.map((child: any, i: number) => renderLexicalNode(child, i))} ); if (isH1) { return ( - + {content} ); @@ -283,7 +283,7 @@ const renderLexicalNode = (node: any, idx: number): React.ReactNode => { {node.children?.map((child: any, i: number) => { if (child.type === 'listitem') { return ( - + {node.listType === 'number' ? `${i + 1}.` : '•'} @@ -340,18 +340,15 @@ export const PDFPage: React.FC = ({ page, locale = 'de' }) => { day: 'numeric', }); - const logoPath = `${process.cwd()}/public/logo.png`; + const logoPath = `${process.cwd()}/public/logo-full.png`; return ( - {/* Improved Hero Header */} - + {/* Improved Hero Header - No longer fixed so it doesn't repeat on all pages */} + - - {locale === 'en' ? 'Official Document' : 'Offizielles Dokument'} - diff --git a/public/logo-full.png b/public/logo-full.png new file mode 100644 index 00000000..68bc16d9 Binary files /dev/null and b/public/logo-full.png differ