Add proper favicon

This commit is contained in:
Michael Bradley 2025-01-05 21:33:15 +13:00
parent dd71db4efb
commit df7a34f355
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8
8 changed files with 12 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
public/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
public/favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 732 B

BIN
public/favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

2
public/site.webmanifest Normal file
View file

@ -0,0 +1,2 @@
{"name":"Michael Bradley's Website","short_name":"Michael Bradley","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#0dcdcd","background_color":"#000000"}

View file

@ -18,12 +18,8 @@ const Styles = () => (
<meta name="theme-color" content="#eaeaea" media="(prefers-color-scheme: light)" />
</>
);
// TODO: Find better icon than GH avatar
// <link rel="icon" href="https://avatars.githubusercontent.com/u/68788583?s=48&v=4" />
const SEO = () => (
<>
<link rel="icon" href="data:," />
<meta name="keywords" content="Michael Bradley,personal website,programmer,coder,software developer" />
<meta name="description" content="Michael Bradley's personal website" />
<meta name="subject" content="Self-advertisement" />
@ -60,12 +56,22 @@ const OpenGraph = () => (
</>
);
const Favicon = () => (
<>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
</>
);
const Head = () => (
<>
<Preamble />
<Styles />
<SEO />
<OpenGraph />
<Favicon />
</>
);