This commit is contained in:
Patrick Alvin Alcala 2026-03-25 16:01:46 +08:00
parent 0b18528a62
commit d5ab2efdd0
20 changed files with 81 additions and 255 deletions

View file

@ -0,0 +1,25 @@
import webpPath from "../images/logo.webp";
import avifPath from "../images/logo.avif";
interface Props {
size?: number;
alt?: string;
}
export default (props: Props) => {
return (
<>
<picture>
<source srcset={avifPath} type="image/avif" />
<source srcset={webpPath} type="image/webp" />
<img
width={props.size}
height="auto"
decoding="async"
loading="lazy"
alt="logo"
/>
</picture>
</>
);
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

View file

@ -5,3 +5,4 @@ export { default as Display } from "./components/Display";
export { default as HTML } from "./components/HTML";
export { default as Page } from "./components/Page";
export { default as Image } from "./components/Image";
export { default as Logo } from "./components/Logo";