Skip to content

Commit

Permalink
fix pwa and theme colors (#5800)
Browse files Browse the repository at this point in the history
  • Loading branch information
sainak authored Jul 1, 2023
1 parent 9e22228 commit dea03c1
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 14 deletions.
9 changes: 3 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-title" content="Care" />
<meta name="theme-color" content="#33BB17" />
<link rel="shortcut icon" href="/favicon-dark.ico" type="image/x-icon" />
<link
rel="apple-touch-icon"
href="https://cdn.coronasafe.network/care-manifest/images/icons/icon-192x192.png"
/>
<meta name="theme-color" content="#0e9f6e" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="/images/icons/apple-touch-icon-180x180.png">
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
Expand Down
Binary file removed public/favicon-dark.ico
Binary file not shown.
Binary file modified public/favicon.ico
Binary file not shown.
Binary file added public/images/icons/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/images/icons/logo.svg
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/images/icons/maskable-icon-512x512.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/images/icons/pwa-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/images/icons/pwa-512x512.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/images/icons/pwa-64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const App: React.FC = () => {
if (darkThemeMq.matches) {
favicon.href = "/favicon-light.ico";
} else {
favicon.href = "/favicon-dark.ico";
favicon.href = "/favicon.ico";
}
}, []);

Expand Down
21 changes: 14 additions & 7 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,31 @@ export default defineConfig({
manifest: {
name: "Care",
short_name: "Care",
theme_color: "#33bb17",
background_color: "#2196f3",
theme_color: "#0e9f6e",
background_color: "#ffffff",
display: "standalone",
icons: [
{
src: "https://cdn.coronasafe.network/care-manifest/images/icons/icon-192x192.png",
sizes: "192x192",
src: "images/icons/pwa-64x64.png",
sizes: "64x64",
type: "image/png",
purpose: "any maskable",
},
{
src: "https://cdn.coronasafe.network/care-manifest/images/icons/icon-192x192.png",
src: "images/icons/pwa-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "https://cdn.coronasafe.network/care-manifest/images/icons/icon-512x512.png",
src: "images/icons/pwa-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "any",
},
{
src: "images/icons/maskable-icon-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable",
},
],
},
Expand Down

0 comments on commit dea03c1

Please sign in to comment.