export const calcPx = (px) => { const clientWidth = document.body.clientWidth; let fz; if (clientWidth > 750) { fz = 1; } else { fz = (clientWidth / 750); } return px * fz; };