Files
Endoleap/src/components/brand.tsx
T

21 lines
474 B
TypeScript

import Link from "next/link";
export function Brand({ light = false }: { light?: boolean }) {
return (
<Link
href="/"
className={"brand " + (light ? "brand-light" : "")}
aria-label="啡跃 Endoleap 首页"
>
<img
src={light ? "/brand/svg/logo-dark.svg" : "/brand/svg/logo-light.svg"}
alt=""
width="36"
height="36"
/>
<span>
啡跃 <small>Endoleap</small>
</span>
</Link>
);
}