diff --git a/lib/KLZLogoVector.tsx b/lib/KLZLogoVector.tsx index 5555e3e8..bb3fbb74 100644 --- a/lib/KLZLogoVector.tsx +++ b/lib/KLZLogoVector.tsx @@ -1,12 +1,17 @@ import React from 'react'; import { Svg, G, Path } from '@react-pdf/renderer'; -export const KLZLogoVector = ({ width, color }: { width: number; color: string }) => { - // Original viewBox was 0 0 295 99, so height is width * 99 / 295 +interface KLZLogoVectorProps { + width?: number; + color?: string; +} + +export const KLZLogoVector: React.FC = ({ width = 140, color = '#ffffff' }) => { const height = width * (99 / 295); + return ( - - + + = ({ width = 140, color = '#ffffff' }) => { + const height = width * (99 / 295); + + return ( + + +${paths.map(d => ` `).join('\n')} + + + ); +}; +`; + +fs.writeFileSync('lib/KLZLogoVector.tsx', componentCode); +console.log('Successfully wrote lib/KLZLogoVector.tsx'); diff --git a/scripts/generate-business-cards.ts b/scripts/generate-business-cards.ts index 6e0d533e..8a1e915b 100644 --- a/scripts/generate-business-cards.ts +++ b/scripts/generate-business-cards.ts @@ -13,8 +13,8 @@ import QRCode from 'qrcode'; const CONFIG = { outputDir: path.join(process.cwd(), 'public/downloads/business-cards'), - logoWhite: path.join(process.cwd(), 'public/logo-white.png'), - logoBlue: path.join(process.cwd(), 'public/logo-blue.png'), + logoWhite: path.join(process.cwd(), 'public/logo-white.svg'), + logoBlue: path.join(process.cwd(), 'public/logo-blue.svg'), logoFull: path.join(process.cwd(), 'public/logo-full.png'), truckImage: path.join(process.cwd(), 'public/truck.png'), };