mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-05-03 04:34:56 -04:00
Fix favicon
This commit is contained in:
@@ -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
11
web/public/FavIcon.tsx
Normal 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;
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 62 KiB |
Reference in New Issue
Block a user