diff --git a/apps/website/astro.config.mjs b/apps/website/astro.config.mjs index f971097b..a24e85cf 100644 --- a/apps/website/astro.config.mjs +++ b/apps/website/astro.config.mjs @@ -20,8 +20,8 @@ export default defineConfig({ imageService: true, imagesConfig: { sizes: [ - 320, 480, 578, 640, 720, 800, 940, 960, 1200, 1280, 1412, 1440, 1536, - 1600, 1800, 1920, + 160, 320, 480, 578, 640, 720, 800, 940, 960, 1200, 1280, 1412, 1440, + 1536, 1600, 1800, 1920, ], formats: ["image/avif", "image/webp"], }, diff --git a/apps/website/src/assets/from-angular-to-react.png b/apps/website/src/assets/from-angular-to-react.png new file mode 100644 index 00000000..e1f6b1c1 Binary files /dev/null and b/apps/website/src/assets/from-angular-to-react.png differ diff --git a/apps/website/src/assets/how-we-rebuilt-a-legacy-ui-with-zero-downtime.png b/apps/website/src/assets/how-we-rebuilt-a-legacy-ui-with-zero-downtime.png new file mode 100644 index 00000000..05766a32 Binary files /dev/null and b/apps/website/src/assets/how-we-rebuilt-a-legacy-ui-with-zero-downtime.png differ diff --git a/apps/website/src/assets/using-lago-to-create-a-flexible-billing-system-2.png b/apps/website/src/assets/using-lago-to-create-a-flexible-billing-system-2.png new file mode 100644 index 00000000..6bd0c01c Binary files /dev/null and b/apps/website/src/assets/using-lago-to-create-a-flexible-billing-system-2.png differ diff --git a/apps/website/src/components/BlogLink.astro b/apps/website/src/components/BlogLink.astro index 81fbd218..8fc90e15 100644 --- a/apps/website/src/components/BlogLink.astro +++ b/apps/website/src/components/BlogLink.astro @@ -1,16 +1,40 @@ --- +import { Image } from "astro:assets"; import ExternalLink from "./ExternalLink.astro"; interface Props { href: string; linkText: string; title: string; + image: string; } -const { href, linkText, title } = Astro.props; +const { href, linkText, title, image } = Astro.props; + +const images = import.meta.glob<{ default: ImageMetadata }>("/src/assets/*.*"); + +const linkImageSrc = await images[`/src/assets/${image || ""}`](); --- -