From 5a572163c5a5174c1620c578f550dd7ddc841df4 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 20 Dec 2023 12:40:48 +0100 Subject: build: improve bundle size * add `sideEffects` in package.json to activate tree shaking for barrel files * use dynamic imports on social links and icons * resize social media images * resize large project image (demo apcom) * resize website logo --- src/components/atoms/images/logo/logo.module.scss | 4 ++-- src/components/atoms/images/logo/logo.tsx | 17 ++++++++++------- 2 files changed, 12 insertions(+), 9 deletions(-) (limited to 'src/components/atoms/images/logo') diff --git a/src/components/atoms/images/logo/logo.module.scss b/src/components/atoms/images/logo/logo.module.scss index beeb7ff..427e85b 100644 --- a/src/components/atoms/images/logo/logo.module.scss +++ b/src/components/atoms/images/logo/logo.module.scss @@ -18,11 +18,11 @@ .letter { fill: var(--color-fg-inverted); stroke: var(--color-primary-darker); - stroke-width: 5; + stroke-width: 1; } .letter-shadow { fill: var(--color-shadow-darker); stroke: var(--color-shadow-darker); - stroke-width: 5; + stroke-width: 1; } diff --git a/src/components/atoms/images/logo/logo.tsx b/src/components/atoms/images/logo/logo.tsx index 5c575a5..bf9c890 100644 --- a/src/components/atoms/images/logo/logo.tsx +++ b/src/components/atoms/images/logo/logo.tsx @@ -20,27 +20,30 @@ export const Logo: FC = ({ heading, ...props }) => ( {...props} className={styles.wrapper} role="img" - viewBox="0 0 512 512" + viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg" > {heading ? {heading} : null} - - + + ); -- cgit v1.2.3