Skip to content

Commit

Permalink
Merge pull request #577 from amelioro/fix-favicon-pixelated
Browse files Browse the repository at this point in the history
touchup: add browser- and device-specific favicons
  • Loading branch information
keyserj authored Nov 26, 2024
2 parents 3ac177f + 5171c89 commit b55e6d9
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 1 deletion.
Binary file added public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon.ico
100644 → 100755
Binary file not shown.
Binary file modified public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Ameliorate",
"short_name": "Ameliorate",
"icons": [
{
"src": "/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Binary file added public/web-app-manifest-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/web-app-manifest-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion src/pages/_app.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ const MyApp = ({ Component, pageProps }: AppProps) => {
content="Ameliorate is a tool for analyzing debatable problems effectively, collaboratively, and with an open mind."
/>

<link rel="icon" href="/favicon.ico" />
{/* icons for various browsers - these links (and their images) were generated by uploading a png to https://realfavicongenerator.net/ */}
<link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<meta name="apple-mobile-web-app-title" content="Ameliorate" />
<link rel="manifest" href="/site.webmanifest" />

{/* https://mui.com/material-ui/getting-started/usage/#responsive-meta-tag */}
<meta name="viewport" content="initial-scale=1, width=device-width" />
Expand Down

0 comments on commit b55e6d9

Please sign in to comment.