Skip to content

Commit

Permalink
fix(pwa): remove old favicons, new opengraph image under 300kb
Browse files Browse the repository at this point in the history
  • Loading branch information
JMaio committed Jan 31, 2021
1 parent c5390cb commit b4ec5be
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
Binary file removed public/favicon-192.png
Binary file not shown.
Binary file removed public/favicon-256.png
Binary file not shown.
Binary file removed public/favicon-512.png
Binary file not shown.
14 changes: 5 additions & 9 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,13 @@
property="og:description"
content="Mandelbrot Maps is an interactive fractal explorer built using React and WebGL. Come see the pretty side of mathematics!"
/>
<!-- 512px image -->
<meta
property="og:image"
content="https://jmaio.github.io/mandelbrot-maps/logo-512.png"
/>
<meta property="og:image:width" content="512" />
<!-- 192px image -->

<!-- 256px image - max 300kb - https://stackoverflow.com/a/41333196/9184658 -->
<meta
property="og:image"
content="https://jmaio.github.io/mandelbrot-maps/logo-192.png"
content="https://jmaio.github.io/mandelbrot-maps/logo-256.png"
/>
<meta property="og:image:width" content="192" />
<meta property="og:image:width" content="256" />

<!--
manifest.json provides metadata used when your web app is installed on a
Expand Down Expand Up @@ -83,6 +78,7 @@
</script>
</head>
<body>
<!-- add a descriptive paragraph to be picked up by SEO? -->
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
Expand Down
Binary file added public/logo-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion public/manifest.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
{
"src": "logo-192.png",
"type": "image/png",
"sizes": "192x192"
"sizes": "192x192",
"purpose": "any"
},
{
"src": "logo-256.png",
"type": "image/png",
"sizes": "256x256",
"purpose": "any"
},
{
"src": "logo-512.png",
Expand Down

0 comments on commit b4ec5be

Please sign in to comment.