adds favicon to head

This commit is contained in:
Danny Avila 2023-02-08 09:44:10 -05:00
parent b5042a738e
commit d07047722e
6 changed files with 46 additions and 13 deletions

BIN
public/favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 828 B

BIN
public/favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -7,6 +7,18 @@
rel="shortcut icon"
href="#"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon-16x16.png"
/>
<meta
name="viewport"
content="width=device-width, initial-scale=1"
@ -15,18 +27,6 @@
defer
src="main.js"
></script>
<!-- <script>
// It's best to inline this in `head` to avoid FOUC (flash of unstyled content) when changing pages or themes
if (
localStorage.getItem('color-theme') === 'dark' ||
(!('color-theme' in localStorage) &&
window.matchMedia('(prefers-color-scheme: dark)').matches)
) {
document.documentElement.classList.add('dark');
} else {
document.documentElement.classList.remove('dark');
}
</script> -->
</head>
<body>
<div id="root"></div>