Skip to content

Commit a96ae87

Browse files
author
Jan Stevens
committed
feat: add missing public images and use plain img tag
1 parent 9dabde1 commit a96ae87

12 files changed

+25
-5
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,7 @@ yarn-error.log*
3232
.eslintcache
3333

3434
# VS Code
35-
.vscode/
35+
.vscode/
36+
37+
# Ignore dist
38+
dist

public/android-chrome-192x192.png

6.86 KB
Loading

public/android-chrome-512x512.png

20.9 KB
Loading

public/apple-touch-icon.png

6 KB
Loading

public/favicon-16x16.png

427 Bytes
Loading

public/favicon-32x32.png

897 Bytes
Loading

public/favicon.ico

15 KB
Binary file not shown.

public/favicon.webp

-18.3 KB
Binary file not shown.

public/profile.webp

23.1 KB
Binary file not shown.

public/site.webmanifest

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "Jan Stevens",
3+
"short_name": "Fritz",
4+
"icons": [
5+
{
6+
"src": "/android-chrome-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png"
9+
},
10+
{
11+
"src": "/android-chrome-512x512.png",
12+
"sizes": "512x512",
13+
"type": "image/png"
14+
}
15+
],
16+
"theme_color": "#ffffff",
17+
"background_color": "#ffffff",
18+
"display": "standalone"
19+
}

src/components/Header.astro

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
import { Icon } from 'astro-icon/components';
3-
import { Image } from 'astro:assets';
43
import * as about from '../pages/about/about.md';
5-
import profile from '../images/profile.png';
64
---
75

86
<header class="mx-auto pt-12 pb-2 relative">
@@ -12,10 +10,10 @@ import profile from '../images/profile.png';
1210
<div
1311
class="flex-shrink-0 w-40 md:w-48 rounded-full shadow-sm overflow-hidden"
1412
>
15-
<Image
13+
<img
1614
alt="avatar"
1715
loading="eager"
18-
src={profile}
16+
src="/profile.webp"
1917
class="grayscale-[50] hover:grayscale-0 transition-all duration-300 ease-in"
2018
/>
2119
</div>

src/images/profile.png

-574 KB
Binary file not shown.

0 commit comments

Comments
 (0)