refactor: replace all images
|
Before Width: | Height: | Size: 770 KiB |
|
Before Width: | Height: | Size: 854 KiB |
|
Before Width: | Height: | Size: 503 KiB |
|
Before Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 379 KiB |
|
Before Width: | Height: | Size: 739 KiB |
|
Before Width: | Height: | Size: 154 KiB |
|
Before Width: | Height: | Size: 187 KiB |
|
Before Width: | Height: | Size: 193 KiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 93 KiB |
|
Before Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 100 KiB |
|
Before Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 100 KiB |
|
Before Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 93 KiB |
|
Before Width: | Height: | Size: 185 KiB |
|
Before Width: | Height: | Size: 481 KiB |
|
Before Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 438 KiB |
|
Before Width: | Height: | Size: 126 KiB |
|
Before Width: | Height: | Size: 265 KiB |
|
Before Width: | Height: | Size: 201 KiB |
|
Before Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 235 KiB |
|
Before Width: | Height: | Size: 251 KiB |
|
Before Width: | Height: | Size: 125 KiB |
|
Before Width: | Height: | Size: 411 KiB |
|
Before Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 359 KiB |
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 299 KiB |
|
Before Width: | Height: | Size: 710 KiB |
|
Before Width: | Height: | Size: 152 KiB |
|
Before Width: | Height: | Size: 227 KiB |
|
Before Width: | Height: | Size: 182 KiB |
|
Before Width: | Height: | Size: 180 KiB |
|
Before Width: | Height: | Size: 172 KiB |
|
Before Width: | Height: | Size: 117 KiB |
|
Before Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 133 KiB |
|
Before Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 139 KiB |
|
Before Width: | Height: | Size: 142 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 379 KiB |
|
Before Width: | Height: | Size: 355 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 118 KiB |
|
Before Width: | Height: | Size: 131 KiB |
|
Before Width: | Height: | Size: 104 KiB |
|
Before Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 92 KiB |
|
Before Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 107 KiB |
|
Before Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 95 KiB |
|
Before Width: | Height: | Size: 160 KiB |
|
Before Width: | Height: | Size: 128 KiB |
|
Before Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 66 KiB |
|
Before Width: | Height: | Size: 129 KiB |
@@ -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,
|
||||||
]}
|
]}
|
||||||
|
|||||||
@@ -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>
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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">
|
alt={project.data.title}
|
||||||
<img class="image-border" alt={project.data.title} src={project.data.image.src} />
|
aria-label={project.data.title}
|
||||||
</div>
|
class="[&_img]:!w-full [&_img]:!max-w-none [&_picture]:!w-full [&_picture]:!max-w-none"
|
||||||
) : (
|
noMargin
|
||||||
<Image
|
src={project.data.image.src}
|
||||||
alt={project.data.title}
|
/>
|
||||||
aria-label={project.data.title}
|
)
|
||||||
class="[&_img]:!w-full [&_img]:!max-w-none [&_picture]:!w-full [&_picture]:!max-w-none"
|
|
||||||
noMargin
|
|
||||||
src={project.data.image.src}
|
|
||||||
/>
|
|
||||||
))
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||