Files
website/layers/cv/app/utils/cvLink.ts
T
2026-10-03 23:57:41 +02:00

8 lines
506 B
TypeScript

/** The full address without "https://" and a trailing slash, as written out in the PDF */
export function cvLinkText(url: string): string {
return url.replace(/^https?:\/\//, '').replace(/\/$/, '')
}
/** Link buttons show only their icon on phones, where long labels don't fit; the label is then the tooltip and aria-label. The PDF shows the text without the icon (only the email is printed this way) */
export const CV_LINK_UI = { label: 'hidden sm:inline print:inline', leadingIcon: 'print:hidden' }