feat(dashboard-v2): add platform-specific favicons

This commit is contained in:
Michał Leszczyk 2022-04-15 16:10:45 +02:00
parent 7e8d033bed
commit b9d9059de4
No known key found for this signature in database
GPG Key ID: FA123CA8BAA2FBF4
7 changed files with 16 additions and 1 deletions

View File

@ -1,6 +1,13 @@
import { Helmet } from "react-helmet";
import { graphql, useStaticQuery } from "gatsby";
import favicon from "../../../static/favicon.ico";
import favicon16 from "../../../static/favicon-16x16.png";
import favicon32 from "../../../static/favicon-32x32.png";
import appleIcon144 from "../../../static/apple-touch-icon-144x144.png";
import appleIcon152 from "../../../static/apple-touch-icon-152x152.png";
import msTileIcon from "../../../static/mstile-144x144.png";
export const Metadata = ({ children }) => {
const { site } = useStaticQuery(
graphql`
@ -18,7 +25,15 @@ export const Metadata = ({ children }) => {
return (
<Helmet htmlAttributes={{ lang: "en" }} titleTemplate={`%s | ${title}`} defaultTitle={title}>
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<meta name="application-name" content="Skynet Account Dashboard" />
<link rel="icon" type="image/x-icon" href={favicon} />
<link rel="icon" type="image/png" href={favicon16} sizes="16x16" />
<link rel="icon" type="image/png" href={favicon32} sizes="32x32" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href={appleIcon144} />
<link rel="apple-touch-icon-precomposed" sizes="152x152" href={appleIcon152} />
<meta name="msapplication-TileColor" content="#FFFFFF" />
<meta name="msapplication-TileImage" content={msTileIcon} />
<meta name="description" content="Manage your Skynet uploads, account subscription, settings and API keys" />
<link rel="preconnect" href={`https://${process.env.GATSBY_PORTAL_DOMAIN}/`} />
{children}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB