turash/bugulma/frontend/components/layout/Header.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

54 lines
1.2 KiB
TypeScript

import React from 'react';
interface HeaderSectionProps {
children: React.ReactNode;
className?: string;
align?: 'left' | 'center' | 'right';
}
export const HeaderSection: React.FC<HeaderSectionProps> = ({
children,
className = '',
align = 'left'
}) => {
const alignClasses = {
left: 'justify-start',
center: 'justify-center',
right: 'justify-end'
};
return (
<div className={`flex items-center gap-2 ${alignClasses[align]} ${className}`}>
{children}
</div>
);
};
interface HeaderLayoutProps {
children: React.ReactNode;
className?: string;
variant?: 'default' | 'map' | 'transparent';
}
export const HeaderLayout: React.FC<HeaderLayoutProps> = ({
children,
className = '',
variant = 'default'
}) => {
const variantClasses = {
default: 'border-b bg-background/70 backdrop-blur shrink-0 z-20',
map: 'border-b bg-background/70 backdrop-blur shrink-0 z-20',
transparent: 'shrink-0 z-20'
};
return (
<header className={`${variantClasses[variant]} ${className}`}>
<div className="mx-auto max-w-full flex items-center justify-between flex-wrap px-4 py-3 gap-3">
{children}
</div>
</header>
);
};
export default HeaderLayout;