feat: finalize academy redesign and production readiness
Align admin, community, search, library, learning and course management with the mockup. Add saved courses, download history, public community feed, instructor directory, backend search, course views, admin content tools and community moderation. Harden API and Nginx for production.
This commit is contained in:
15
components/ui/Avatar.tsx
Normal file
15
components/ui/Avatar.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import React from 'react';
|
||||
import { initials } from '../../lib/format';
|
||||
|
||||
interface AvatarProps {
|
||||
name: string;
|
||||
src?: string | null;
|
||||
size?: 'sm' | 'md' | 'xl';
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export const Avatar: React.FC<AvatarProps> = ({ name, src, size, className = '' }) => (
|
||||
<span className={`av${size ? ` ${size}` : ''} ${className}`} aria-hidden="true">
|
||||
{src ? <img src={src} alt="" /> : initials(name)}
|
||||
</span>
|
||||
);
|
||||
Reference in New Issue
Block a user