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:
13
pages/ProfessorsPage.tsx
Normal file
13
pages/ProfessorsPage.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import React from 'react';
|
||||
import { Link, Navigate } from 'react-router-dom';
|
||||
import { Avatar } from '../components/ui/Avatar';
|
||||
import { useCatalog } from '../context/CatalogContext';
|
||||
import { paths } from '../lib/routes';
|
||||
import { useIsMobile } from '../hooks/useMediaQuery';
|
||||
|
||||
export const ProfessorsPage: React.FC = () => {
|
||||
const { professors } = useCatalog();
|
||||
const isMobile = useIsMobile();
|
||||
if (isMobile) return <Navigate to="/comunidade?tab=professores" replace />;
|
||||
return <main className="wrap page enter"><header className="ptitle"><div><h1>Professores</h1><p>Quem ensina na Compor.</p></div></header><div className="pcards">{professors.map((professor) => <Link className="pcard" key={professor.id} to={paths.professor(professor.id)}><Avatar name={professor.name} src={professor.avatarImageUrl} size="xl" /><b>{professor.name}</b>{professor.headline && <small>{professor.headline}</small>}<small className="num">{professor.courses.length} {professor.courses.length === 1 ? 'curso' : 'cursos'}</small></Link>)}</div></main>;
|
||||
};
|
||||
Reference in New Issue
Block a user