feat: add initial website infrastructure
This commit is contained in:
22
src/components/inline-image.astro
Normal file
22
src/components/inline-image.astro
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
import type { ImageMetadata } from "astro";
|
||||
import { Image } from "astro:assets";
|
||||
|
||||
interface Props {
|
||||
priority?: boolean;
|
||||
size?: number;
|
||||
src: ImageMetadata;
|
||||
}
|
||||
|
||||
const { priority = true, size = 24, src } = Astro.props;
|
||||
---
|
||||
|
||||
<Image
|
||||
alt=""
|
||||
height={size}
|
||||
width={size}
|
||||
{priority}
|
||||
{src}
|
||||
role="presentation"
|
||||
class="brightness-1000 grayscale"
|
||||
/>
|
||||
Reference in New Issue
Block a user