Skip to content

Commit

Permalink
rebuild icons using vite-pwa/assets-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
cleech committed Sep 6, 2023
1 parent e491590 commit 7f1ddad
Show file tree
Hide file tree
Showing 14 changed files with 585 additions and 24 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#000000" />
<link rel="apple-touch-icon" href="/logo192.png" />
<title>Guild Ball Playbook</title>

<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://fonts.gstatic.com">
<link rel="preconnect" crossorigin="anonymous" href="https://fonts.googleapis.com">
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"deploy": "npx gh-pages --dist dist --dotfiles"
"deploy": "npx gh-pages --dist dist --dotfiles",
"icons": "pwa-assets-generator --preset minimal public/favicon.svg"
},
"dependencies": {
"@emotion/react": "^11.11.1",
Expand Down Expand Up @@ -41,6 +42,7 @@
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vite-pwa/assets-generator": "^0.0.9",
"@vitejs/plugin-react-swc": "^3.3.2",
"eslint": "^8.45.0",
"eslint-plugin-react-hooks": "^4.6.0",
Expand Down
Binary file added public/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.
Binary file modified public/favicon.ico
Binary file not shown.
166 changes: 166 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.
Binary file removed public/gbpb-logo-full.png
Binary file not shown.
Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
Binary file added public/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/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/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/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.
29 changes: 14 additions & 15 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,27 +51,26 @@ export default defineConfig({
description: 'Guild Ball reference and tracking',
icons: [
{
src: "favicon.ico",
sizes: "48x48 32x32 16x16",
type: "image/x-icon"
src: 'pwa-64x64.png',
sizes: '64x64',
type: 'image/png'
},
{
src: "logo192.png",
type: "image/png",
sizes: "192x192",
purpose: "any"
src: 'pwa-192x192.png',
sizes: '192x192',
type: 'image/png'
},
{
src: "logo512.png",
type: "image/png",
sizes: "512x512",
purpose: "any"
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any'
},
{
src: "gbpb-logo-full.png",
type: "image/png",
sizes: "1024x1024",
purpose: "maskable"
src: 'maskable-icon-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'maskable'
}
],
display: "standalone",
Expand Down
Loading

0 comments on commit 7f1ddad

Please sign in to comment.