From 1e39dc8567bc9727246b131c4018a9e520268c56 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Fri, 12 Jun 2026 13:24:24 +0200 Subject: [PATCH] fix(klz-2026): correctly hide tagline via path overrides without breaking KLZ letters --- lib/pdf-business-card.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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' }), {}), + }} />