mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
- 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.
29 lines
946 B
TypeScript
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;
|