Update favicon

This commit is contained in:
Daniele Salatti 2022-05-04 14:02:48 -07:00
parent 59bd8521fa
commit e93c4fc477
6 changed files with 2 additions and 44 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1001 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@ -22,30 +22,7 @@ const Meta = (props: IMetaProps) => {
content="width=device-width,initial-scale=1"
key="viewport"
/>
<link
rel="apple-touch-icon"
href={`${router.basePath}/apple-touch-icon.png`}
key="apple"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href={`${router.basePath}/favicon-32x32.png`}
key="icon32"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href={`${router.basePath}/favicon-16x16.png`}
key="icon16"
/>
<link
rel="icon"
href={`${router.basePath}/favicon.ico`}
key="favicon"
/>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🗳</text></svg>" />
</Head>
<NextSeo
title={props.title}

View File

@ -5,32 +5,13 @@ type ILogoProps = {
};
const Logo = (props: ILogoProps) => {
const size = props.xl ? '44' : '32';
const fontStyle = props.xl
? 'font-semibold text-3xl'
: 'font-semibold text-xl';
return (
<span className={`text-gray-900 inline-flex items-center ${fontStyle}`}>
<svg
className="text-primary-500 stroke-current mr-1"
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
strokeWidth="1.5"
fill="none"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M0 0h24v24H0z" stroke="none" />
<rect x="3" y="12" width="6" height="8" rx="1" />
<rect x="9" y="8" width="6" height="12" rx="1" />
<rect x="15" y="4" width="6" height="16" rx="1" />
<path d="M4 20h14" />
</svg>
{AppConfig.site_name}
🗳 {AppConfig.site_name}
</span>
);
};