Skip to content

Commit eaec3bc

Browse files
committed
feat: Update images
1 parent 68fc457 commit eaec3bc

11 files changed

Lines changed: 12 additions & 18 deletions

public/cover.svg

Lines changed: 0 additions & 7 deletions
This file was deleted.

public/favicon.svg

Lines changed: 0 additions & 6 deletions
This file was deleted.

public/pt-hero.dark.avif

5.22 KB
Binary file not shown.

public/pt-hero.dark.png

464 KB
Loading

public/wpf-collaboration-full.avif

10.6 KB
Binary file not shown.

public/wpf-collaboration-full.png

81.9 KB
Loading

src/components/PostCard.astro

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export interface Props {
1111
author?: string;
1212
tags?: string[];
1313
image?: string;
14+
avifImage?: string;
1415
externalLink?: string;
1516
};
1617
};
@@ -45,9 +46,12 @@ const isExternal = !!post.data.externalLink;
4546
))}
4647
</span>
4748
)}
48-
{post.data.image && (
49+
{post.data.avifImage && (
4950
<figure class="post-cover">
50-
<img src={post.data.image} alt={post.data.title} />
51+
<picture>
52+
<source type="image/avif" srcset={post.data.avifImage} />
53+
<img src={post.data.image} alt={post.data.title} />
54+
</picture>
5155
</figure>
5256
)}
5357
{post.data.description && (

src/content.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const posts = defineCollection({
99
updatedDate: z.coerce.date().optional(),
1010
author: z.string().optional(),
1111
image: z.string().optional(),
12+
avifImage: z.string().optional(),
1213
externalLink: z.string().optional(),
1314
tags: z.array(z.string()).default([]),
1415
draft: z.boolean().default(false),

src/content/posts/powertoys-wpf-ui-integration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ title: 'How WPF UI Powers Microsoft PowerToys Run'
33
description: 'The story behind WPF UI becoming the foundation for Microsoft PowerToys Run, one of GitHubs most popular developer tools.'
44
pubDate: 2024-06-15
55
author: 'Leszek Pomianowski'
6-
image: 'https://github.com/microsoft/PowerToys/raw/main/doc/images/readme/pt-hero.dark.png'
6+
image: 'https://lepo.co/pt-hero.dark.png'
7+
avifImage: 'https://lepo.co/pt-hero.dark.avif'
78
tags: ['powertoys', 'microsoft', 'wpf', 'developer-tools', 'open-source']
89
---
910

src/content/posts/wpf-ui-microsoft-collaboration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ title: 'WPF UI and Microsoft: An Unexpected Collaboration'
33
description: 'How a personal project to modernize WPF applications caught Microsoft attention and led to official collaboration on .NET 9.'
44
pubDate: 2024-01-15
55
author: 'Leszek Pomianowski'
6-
image: 'https://opengraph.githubassets.com/351a1aec13d918e77632605b8c99db5d240249e27024ca5d1dad1070924b5502/dotnet/wpf/discussions/8533'
6+
image: 'https://lepo.co/wpf-collaboration-full.png'
7+
avifImage: 'https://lepo.co/wpf-collaboration-full.avif'
78
tags: ['wpf', 'microsoft', 'dotnet', 'collaboration', 'open-source']
89
---
910

0 commit comments

Comments
 (0)