refactor: replace all images

This commit is contained in:
Stefan Imhoff
2026-01-24 19:25:09 +01:00
committed by Stefan Imhoff
parent 42d1bb42a8
commit 14c4a83147
891 changed files with 652 additions and 548 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 770 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 854 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 503 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 379 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 739 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 193 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 481 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 438 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 235 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 411 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 359 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 299 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 710 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 379 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 355 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

View File

@@ -12,8 +12,9 @@ interface Props {
height?: string | number; height?: string | number;
href?: string; href?: string;
loading?: 'lazy' | 'eager'; loading?: 'lazy' | 'eager';
noSpacing?: boolean; noMargin?: boolean;
quality?: number; quality?: number;
role?: string;
size?: 'regular' | 'wide' | 'fullsize'; size?: 'regular' | 'wide' | 'fullsize';
source?: string; source?: string;
sourceUrl?: string; sourceUrl?: string;
@@ -29,7 +30,7 @@ const {
height, height,
href, href,
loading = 'lazy', loading = 'lazy',
noSpacing, noMargin,
quality, quality,
size, size,
source, source,
@@ -71,11 +72,11 @@ const wrapperProps = href ? { href } : {};
<figure <figure
class:list={[ class:list={[
'mbs-0 mie-0 mis-0', 'mis mbe-13 mbs-0 mie-0',
{ {
'figure-wide': size === 'wide', 'figure-wide': size === 'wide',
'figure-fullsize': size === 'fullsize', 'figure-fullsize': size === 'fullsize',
'mbe-13': true, '!mbe-0': noMargin,
}, },
className, className,
]} ]}

View File

@@ -1,5 +1,5 @@
--- ---
import Image from './Image.astro'; import BasicImage from './BasicImage.astro';
import Headline from './Headline.astro'; import Headline from './Headline.astro';
const { entry } = Astro.props; const { entry } = Astro.props;
@@ -49,7 +49,7 @@ const imageLength = entry.data.images.length;
}, },
]} ]}
> >
<Image alt={entry.data.title} src={src} /> <BasicImage alt={entry.data.title} src={src} />
</div> </div>
)) ))
} }

View File

@@ -1,5 +1,5 @@
--- ---
import { Picture } from 'astro:assets'; import BasicImage from '../components/BasicImage.astro';
import type { CollectionEntry } from 'astro:content'; import type { CollectionEntry } from 'astro:content';
interface Props { interface Props {
@@ -27,13 +27,11 @@ const { entries } = Astro.props;
> >
<div class="absolute z-10 h-full w-full"> <div class="absolute z-10 h-full w-full">
{data.cover ? ( {data.cover ? (
<Picture <BasicImage
alt={data.title} alt={data.title}
formats={['avif', 'webp']} class="!m-0 block !h-full w-full object-cover"
height="937"
role="presentation" role="presentation"
src={data.cover} src={data.cover}
width="1500"
/> />
) : ( ) : (
<div <div

View File

@@ -1,6 +1,6 @@
--- ---
import type { CollectionEntry } from 'astro:content'; import type { CollectionEntry } from 'astro:content';
import Image from './Image.astro'; import BasicImage from './BasicImage.astro';
interface Props { interface Props {
project: CollectionEntry<'projects'>; project: CollectionEntry<'projects'>;
@@ -10,18 +10,13 @@ const { project } = Astro.props;
--- ---
{ {
project.data.image && project.data.image && (
(project.data.image.src.includes('.svg') ? ( <BasicImage
<div class="image-shadow mbe-0 mbs-0">
<img class="image-border" alt={project.data.title} src={project.data.image.src} />
</div>
) : (
<Image
alt={project.data.title} alt={project.data.title}
aria-label={project.data.title} aria-label={project.data.title}
class="[&_img]:!w-full [&_img]:!max-w-none [&_picture]:!w-full [&_picture]:!max-w-none" class="[&_img]:!w-full [&_img]:!max-w-none [&_picture]:!w-full [&_picture]:!max-w-none"
noMargin noMargin
src={project.data.image.src} src={project.data.image.src}
/> />
)) )
} }

View File

@@ -4,41 +4,41 @@ date: 2023-02-05
sort: 210 sort: 210
coverSize: medium coverSize: medium
images: images:
- src: /assets/images/ai-art/after-humanity/1.webp - src: /images/ai-art/after-humanity/1.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/2.webp - src: /images/ai-art/after-humanity/2.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/3.webp - src: /images/ai-art/after-humanity/3.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/4.webp - src: /images/ai-art/after-humanity/4.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/5.webp - src: /images/ai-art/after-humanity/5.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/6.webp - src: /images/ai-art/after-humanity/6.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/7.webp - src: /images/ai-art/after-humanity/7.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/8.webp - src: /images/ai-art/after-humanity/8.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/9.webp - src: /images/ai-art/after-humanity/9.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/10.webp - src: /images/ai-art/after-humanity/10.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/11.webp - src: /images/ai-art/after-humanity/11.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/12.webp - src: /images/ai-art/after-humanity/12.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/13.webp - src: /images/ai-art/after-humanity/13.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/14.webp - src: /images/ai-art/after-humanity/14.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/15.webp - src: /images/ai-art/after-humanity/15.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/16.webp - src: /images/ai-art/after-humanity/16.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/17.webp - src: /images/ai-art/after-humanity/17.webp
aspectRatio: 1 aspectRatio: 1
- src: /assets/images/ai-art/after-humanity/18.webp - src: /images/ai-art/after-humanity/18.webp
aspectRatio: 1 aspectRatio: 1
--- ---

View File

@@ -4,7 +4,7 @@ date: 2022-12-14
sort: 70 sort: 70
coverSize: medium coverSize: medium
images: images:
- src: /assets/images/ai-art/ai-taking-over-the-world/1.webp - src: /images/ai-art/ai-taking-over-the-world/1.webp
aspectRatio: 1.6 aspectRatio: 1.6
--- ---

Some files were not shown because too many files have changed in this diff Show More