- Exibir versão (v1.2.5) ao lado do logo na sidebar - Adicionar link do repositório Companion na aba de configurações - Atualizar README com documentação completa do OpenSheets Companion - Atualizar versões das dependências e estrutura do banco de dados - Adicionar logo do Creditas - Remover fontes não utilizadas - Atualizar logo_text.png Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
55 lines
1011 B
TypeScript
55 lines
1011 B
TypeScript
import Image from "next/image";
|
|
import { cn } from "@/lib/utils/ui";
|
|
import { version } from "@/package.json";
|
|
|
|
interface LogoProps {
|
|
variant?: "full" | "small";
|
|
className?: string;
|
|
showVersion?: boolean;
|
|
}
|
|
|
|
export function Logo({
|
|
variant = "full",
|
|
className,
|
|
showVersion = false,
|
|
}: LogoProps) {
|
|
if (variant === "small") {
|
|
return (
|
|
<Image
|
|
src="/logo_small.png"
|
|
alt="Opensheets"
|
|
width={32}
|
|
height={32}
|
|
className={cn("object-contain", className)}
|
|
priority
|
|
/>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<div className={cn("flex items-center gap-1.5 py-4", className)}>
|
|
<Image
|
|
src="/logo_small.png"
|
|
alt="Opensheets"
|
|
width={28}
|
|
height={28}
|
|
className="object-contain"
|
|
priority
|
|
/>
|
|
<Image
|
|
src="/logo_text.png"
|
|
alt="Opensheets"
|
|
width={100}
|
|
height={32}
|
|
className="object-contain dark:invert"
|
|
priority
|
|
/>
|
|
{showVersion && (
|
|
<span className="text-[10px] font-medium text-muted-foreground">
|
|
v{version}
|
|
</span>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|