diff --git a/src/assets/logos/envalior.png b/src/assets/logos/envalior.png deleted file mode 100644 index aa6d0c3..0000000 Binary files a/src/assets/logos/envalior.png and /dev/null differ diff --git a/src/assets/logos/envalior.svg b/src/assets/logos/envalior.svg new file mode 100644 index 0000000..6ca7bf0 --- /dev/null +++ b/src/assets/logos/envalior.svg @@ -0,0 +1 @@ + diff --git a/src/components/Companies.astro b/src/components/Companies.astro index f61bc88..5e4249b 100644 --- a/src/components/Companies.astro +++ b/src/components/Companies.astro @@ -1,36 +1,24 @@ --- -import { getImage } from 'astro:assets'; import type { SvgComponent } from 'astro/types'; import { companies } from '../data/profile'; -// SVG logos are inlined, so their currentColor parts follow the theme. A PNG -// logo is single-colour; it is used as a mask over currentColor instead, which -// renders it the same way. -const logos = await Promise.all( - companies.map(async ({ name, src, height, ink }) => { - const width = Math.round((height * src.width) / src.height); - const style = `--h: ${height}px; --w: ${width}px; ${ink ? `--ink: ${ink};` : ''}`; - if (src.format === 'svg') { - return { name, style, Svg: src as unknown as SvgComponent }; - } - const mask = await getImage({ src, height: height * 2, format: 'webp' }); - return { name, style: `${style} --mask: url(${mask.src});` }; - }), -); +// The logos are inlined SVGs, so their currentColor parts follow the theme and +// they appear with the page, without a request of their own. +const logos = companies.map(({ name, src, height, ink }) => { + const width = Math.round((height * src.width) / src.height); + const style = `--h: ${height}px; --w: ${width}px; ${ink ? `--ink: ${ink};` : ''}`; + return { name, style, Svg: src as unknown as SvgComponent }; +}); ---
Experience with
-Experience with
+