diff --git a/README.md b/README.md index 80358b6..775548a 100644 --- a/README.md +++ b/README.md @@ -39,8 +39,8 @@ By default, this will transform the image into a jpeg source and a webp source a class="native-ideal-img" style="--lqip: url(data:image/webp;base64,UklGRj4AAABXRUJQVlA4IDIAAADQAQCdASoQAAwABUB8JZQAAudcoVPyIAD+uVyF4iJZsGTWpdieB7utExa6oMeh0PusAA==);" > - - + + ``` diff --git a/example/docusaurus.config.ts b/example/docusaurus.config.ts index 1a003b5..8574708 100644 --- a/example/docusaurus.config.ts +++ b/example/docusaurus.config.ts @@ -44,7 +44,7 @@ const config: Config = { { presets: { card: { - sizes: [600, 1000], + sizes: [600, 800, 1000], formats: ['avif', 'webp', 'jpeg'], }, }, diff --git a/example/src/pages/index.tsx b/example/src/pages/index.tsx index a38e293..f192d76 100644 --- a/example/src/pages/index.tsx +++ b/example/src/pages/index.tsx @@ -59,7 +59,11 @@ export default function Home(): JSX.Element { function Card(props: { name: string; image: LoaderOutput; swapOnLoad?: boolean }) { return (
- +
{props.name}
)