Fix favicon

This commit is contained in:
MartinBraquet
2025-08-27 22:07:35 +02:00
parent 53432520cd
commit 632f8477fd
3 changed files with 14 additions and 9 deletions

View File

@@ -3,6 +3,7 @@ import LoveLogo from '../public/manifold_love_logo.svg'
import clsx from 'clsx'
import { ENV } from 'common/envs/constants'
import { Row } from 'web/components/layout/row'
import FavIcon from "web/public/FavIcon";
export default function ManifoldLoveLogo(props: {
noLink?: boolean
@@ -11,16 +12,9 @@ export default function ManifoldLoveLogo(props: {
const { noLink, className } = props
const inner = (
<>
<LoveLogo
className="h-10 w-10 shrink-0 stroke-pink-700 transition-transform dark:stroke-pink-300"
aria-hidden
/>
<FavIcon className="dark:invert"/>
<div className={clsx('my-auto text-xl font-thin')}>
{ENV == 'DEV' ? 'devifold' : 'manifold'}
<span className="mx-[1px]">.</span>
<span className="font-semibold text-pink-700 dark:text-pink-300">
love
</span>
{ENV == 'DEV' ? 'Compass' : 'Compass'}
</div>
</>
)

11
web/public/FavIcon.tsx Normal file
View File

@@ -0,0 +1,11 @@
import React from "react";
import Image from "next/image";
type FavIconProps = React.SVGProps<SVGSVGElement>;
const FavIcon: React.FC<FavIconProps> = ({ className }) => (
<Image src="/favicon.ico" alt="Compass logo" width={500} height={500} className={"w-12 h-12 " + className}/>
);
export default FavIcon;

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 62 KiB