feat: add some stuff

This commit is contained in:
2024-03-28 18:30:52 +01:00
parent 31b24de86c
commit d4128840b9
196 changed files with 3393 additions and 390 deletions

View File

@ -4,12 +4,11 @@ import { Image as AstroImage } from "astro:assets";
interface Props {
src: ImageMetadata;
alt: string;
caption?: string;
maxWidth?: number;
}
const { src, alt, maxWidth } = Astro.props;
const image = typeof src === "string" ? await import(src) : src;
const { src: image, alt, maxWidth } = Astro.props;
const sizes = [
{