diff --git a/lib/pdf-business-card.tsx b/lib/pdf-business-card.tsx index 26085a27..6a0d195f 100644 --- a/lib/pdf-business-card.tsx +++ b/lib/pdf-business-card.tsx @@ -815,12 +815,9 @@ export const PDFBusinessCard: React.FC = ({ }; const getBackLogoPaths = () => { - // The white page (front for the user) should not have the tagline. - // The logoWhitePaths array has 35 paths. Paths 0-24 are the graphic, - // 25-29 are "KLZ", and 30-34 are the "Cables for a greener tomorrow" tagline. - // We slice(0, 30) to perfectly strip the tagline while preserving the rest of the logo! - // The overrideWhiteColor={COLORS.black} prop will tint it black. - return logoWhitePaths.slice(0, 30); + // We use the original black logo to preserve the exact colors of the Truck and KLZ. + // The tagline will be hidden via pathOverrides in the JSX. + return logoBlackWithTaglinePaths; }; const bgImagePath = isWhiteVariant @@ -930,7 +927,11 @@ export const PDFBusinessCard: React.FC = ({ paths={getBackLogoPaths()} style={styles.backLogo} overrideWhiteColor={COLORS.black} - pathOverrides={KLZ_PATHS.reduce((acc, idx) => ({ ...acc, [idx]: 'none' }), {})} + pathOverrides={{ + ...KLZ_PATHS.reduce((acc, idx) => ({ ...acc, [idx]: 'none' }), {}), + // Paths 0-24 are the "Cables for a greener tomorrow" tagline in the 40-path logo. + ...Array.from({ length: 25 }).reduce((acc, _, i) => ({ ...acc, [i]: 'none' }), {}), + }} />