mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
refactor: replace all images
This commit is contained in:
committed by
Stefan Imhoff
parent
42d1bb42a8
commit
14c4a83147
@@ -1,5 +1,5 @@
|
||||
---
|
||||
import { Picture } from 'astro:assets';
|
||||
import BasicImage from '../components/BasicImage.astro';
|
||||
|
||||
import type { CollectionEntry } from 'astro:content';
|
||||
interface Props {
|
||||
@@ -27,13 +27,11 @@ const { entries } = Astro.props;
|
||||
>
|
||||
<div class="absolute z-10 h-full w-full">
|
||||
{data.cover ? (
|
||||
<Picture
|
||||
<BasicImage
|
||||
alt={data.title}
|
||||
formats={['avif', 'webp']}
|
||||
height="937"
|
||||
class="!m-0 block !h-full w-full object-cover"
|
||||
role="presentation"
|
||||
src={data.cover}
|
||||
width="1500"
|
||||
/>
|
||||
) : (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user