교육과정 삭제 팝업 완료, 레슨 틀 작업1

This commit is contained in:
2025-11-19 11:13:55 +09:00
parent c94316f8ce
commit dbac109f5b
3 changed files with 120 additions and 4 deletions

View File

@@ -9,6 +9,8 @@ export default function AdminLessonsPage() {
const items: any[] = [];
const [currentPage, setCurrentPage] = useState(1);
const totalCount = useMemo(() => items.length, [items]);
const ITEMS_PER_PAGE = 10;
const totalPages = Math.ceil(items.length / ITEMS_PER_PAGE);
const paginatedItems = useMemo(() => {
@@ -26,7 +28,6 @@ export default function AdminLessonsPage() {
<div className="px-8 flex">
<AdminSidebar />
</div>
{/* 메인 콘텐츠 */}
<main className="flex-1 min-w-0 bg-white">
<div className="h-full flex flex-col">
@@ -37,12 +38,27 @@ export default function AdminLessonsPage() {
</h1>
</div>
{/* 헤더 영역 (제목과 콘텐츠 사이) */}
<div className="pt-2 pb-4 flex items-center justify-between">
<p className="text-[15px] font-medium leading-[1.5] text-[#333c47] whitespace-nowrap">
{totalCount}
</p>
<button
type="button"
className="h-[40px] px-4 rounded-[8px] bg-[#1f2b91] text-[16px] font-semibold leading-[1.5] text-white whitespace-nowrap hover:bg-[#1a2478] transition-colors"
>
</button>
</div>
{/* 콘텐츠 영역 */}
<div className="flex-1 pt-8 flex flex-col">
<div className="flex-1 pt-2 flex flex-col">
{items.length === 0 ? (
<div className="rounded-lg border border-[#dee1e6] bg-white min-h-[400px] flex items-center justify-center">
<p className="text-[16px] font-medium leading-[1.5] text-[#333c47]">
.
.
<br />
.
</p>
</div>
) : (