turash/bugulma/frontend/components/layout/BrandLogo.tsx
Damir Mukimov 6347f42e20
Consolidate repositories: Remove nested frontend .git and merge into main repository
- Remove nested git repository from bugulma/frontend/.git
- Add all frontend files to main repository tracking
- Convert from separate frontend/backend repos to unified monorepo
- Preserve all frontend code and development history as tracked files
- Eliminate nested repository complexity for simpler development workflow

This creates a proper monorepo structure with frontend and backend
coexisting in the same repository for easier development and deployment.
2025-11-25 06:02:57 +01:00

29 lines
946 B
TypeScript

import Logo from '@/components/ui/Logo';
interface BrandLogoProps {
showPulse?: boolean;
className?: string;
size?: number;
}
const BrandLogo = ({ showPulse = false, className = '', size }: BrandLogoProps) => {
// Extract size from className if provided (e.g., h-20 w-20 = 80px)
const sizeMatch = className.match(/h-(\d+)|w-(\d+)/);
const extractedSize = sizeMatch ? parseInt(sizeMatch[1] || sizeMatch[2]) * 4 : undefined;
const logoSize = size || extractedSize || 40;
return (
<div
className={`relative rounded-lg flex items-center justify-center shadow-sm ${className}`}
style={size ? { width: `${size}px`, height: `${size}px` } : undefined}
>
<Logo size={logoSize} className="h-full w-full" />
{showPulse && (
<span className="absolute -top-1 -right-1 h-2.5 w-2.5 rounded-full bg-success ring-2 ring-background animate-pulse" />
)}
</div>
);
};
export default BrandLogo;