Skip to content

Commit

Permalink
Add favicon with variations
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Jan 15, 2024
1 parent a36f418 commit bbbc3e7
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Puzzle Shell Changelog

# 4.1.2

- Add favicon with variations.

# 4.0.1/4.0.2

- Dependency upgrades (patch version)
Expand Down
Binary file added public/images/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 added public/images/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions public/images/icon.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/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/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/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/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.
67 changes: 67 additions & 0 deletions src/stories/components/Favicon.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import { Meta } from "@storybook/blocks";

<Meta title="Puzzle Shell/Components/Favicon" />

# Favicon

The Favicon and its variations for the [Web Application Manifest](https://developer.mozilla.org/en-US/docs/Web/Manifest) can be found here:

- <a href="/images/favicon.ico" target="_blank">
favicon.ico
</a>
- <a href="/images/icon.svg" target="_blank">
icon.svg
</a>
- <a href="/images/apple-touch-icon-180x180.png" target="_blank">
apple-touch-icon-180x180.png
</a>
- <a href="/images/pwa-64x64.png" target="_blank">
pwa-64x64.png
</a>
- <a href="/images/pwa-192x192.png" target="_blank">
pwa-192x192.png
</a>
- <a href="/images/pwa-512x512.png" target="_blank">
pwa-512x512.png
</a>
- <a href="/images/maskable-icon-512x512.png" target="_blank">
maskable-icon-512x512.png
</a>

You can add them to your project and reference them in your HTML document within the `<head>`:

```
<link rel="icon" href="/favicon.ico" sizes="48x48">
<link rel="icon" href="/icon.svg" sizes="any" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png">
```

...and in your Web Application Manifest file:

```
{
"icons": [
{
"src": "pwa-64x64.png",
"sizes": "64x64",
"type": "image/png"
},
{
"src": "pwa-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "pwa-512x512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "maskable-icon-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
}
```

0 comments on commit bbbc3e7

Please sign in to comment.