{
  "title": "Education 1",
  "description": "A course syllabus tracker widget showing current module completion status and collapsible chapter item cards.",
  "name": "app-education-1",
  "dependencies": [],
  "registryDependencies": [
    "card",
    "progress",
    "badge",
    "button"
  ],
  "type": "registry:block",
  "files": [
    {
      "path": "components/blocks/app/education/education-1.tsx",
      "type": "registry:block",
      "content": "import { useState } from \"react\";\n\nimport { CheckCircle2, ChevronDown, ChevronUp, Circle, Lock, Play } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport { Card, CardContent, CardHeader } from \"@/components/ui/card\";\nimport { Progress } from \"@/components/ui/progress\";\n\ninterface ModuleTask {\n    id: string;\n    number: number;\n    title: string;\n    description: string;\n    tasksCount: number;\n    status: \"completed\" | \"current\" | \"upcoming\";\n    isLocked: boolean;\n}\n\nconst modules: ModuleTask[] = [\n    {\n        id: \"module-1\",\n        number: 1,\n        title: \"Monorepos and Package Managers\",\n        description: \"Understand workspaces, dependency caching, and setting up clean multi-package architectures.\",\n        tasksCount: 8,\n        status: \"completed\",\n        isLocked: false,\n    },\n    {\n        id: \"module-2\",\n        number: 2,\n        title: \"Vite and Modern Build Tooling\",\n        description: \"Optimize build times, configure hot module replacement, and manage custom asset loaders.\",\n        tasksCount: 3,\n        status: \"completed\",\n        isLocked: false,\n    },\n    {\n        id: \"module-3\",\n        number: 3,\n        title: \"Advanced React Concepts\",\n        description: \"Deep dive into concurrent rendering, transition hooks, server actions, and portal management.\",\n        tasksCount: 6,\n        status: \"current\",\n        isLocked: false,\n    },\n    {\n        id: \"module-4\",\n        number: 4,\n        title: \"State Management and Querying\",\n        description: \"Implement high-performance global stores with Zustand and sync server state with React Query.\",\n        tasksCount: 2,\n        status: \"upcoming\",\n        isLocked: false,\n    },\n    {\n        id: \"module-5\",\n        number: 5,\n        title: \"CI/CD and Automated Testing\",\n        description: \"Set up unit tests, component integration suites, and deploy pipeline testing protocols.\",\n        tasksCount: 4,\n        status: \"upcoming\",\n        isLocked: true,\n    },\n];\n\nexport const Education1 = () => {\n    const [isCollapsed, setIsCollapsed] = useState(false);\n    const [expandedTaskId, setExpandedTaskId] = useState<string | null>(null);\n\n    const toggleCollapse = () => {\n        setIsCollapsed(!isCollapsed);\n    };\n\n    const toggleTask = (id: string, isLocked: boolean) => {\n        if (isLocked) return;\n        setExpandedTaskId(expandedTaskId === id ? null : id);\n    };\n\n    return (\n        <Card>\n            <CardHeader className=\"gap-3\">\n                <div className=\"flex items-start justify-between\">\n                    <div className=\"flex items-center gap-2\">\n                        <Badge variant=\"secondary\">3/5</Badge>\n                        <h3 className=\"text-base leading-none font-medium\">Advanced Frontend Architecture</h3>\n                    </div>\n                    <Button\n                        variant=\"ghost\"\n                        size=\"icon-xs\"\n                        onClick={toggleCollapse}\n                        className=\"cursor-pointer\"\n                        aria-label=\"Toggle details\">\n                        {isCollapsed ? <ChevronDown className=\"size-4\" /> : <ChevronUp className=\"size-4\" />}\n                    </Button>\n                </div>\n                <p className=\"text-muted-foreground text-sm\">\n                    Master modern build configurations, scalable monorepo architectures, high-performance state layers,\n                    and automated release strategies.\n                </p>\n                <div className=\"flex flex-col justify-between gap-4 sm:flex-row sm:items-center\">\n                    <div className=\"flex flex-1 flex-col gap-2\">\n                        <div className=\"flex items-baseline justify-between text-sm\">\n                            <span className=\"font-semibold\">60% done</span>\n                            <span className=\"text-muted-foreground\">2 weeks left</span>\n                        </div>\n                        <Progress value={60} className=\"w-full\" />\n                    </div>\n                    <Button className=\"cursor-pointer\" size=\"sm\">\n                        Continue Learning\n                    </Button>\n                </div>\n            </CardHeader>\n            {!isCollapsed && (\n                <CardContent className=\"pt-0\">\n                    <div className=\"flex flex-col gap-3\">\n                        {modules.map((module) => {\n                            const isExpanded = expandedTaskId === module.id;\n                            const isActive = module.status === \"current\";\n                            return (\n                                <div\n                                    key={module.id}\n                                    className={cn(\n                                        \"bg-card flex flex-col rounded-md border transition-all\",\n                                        isActive && \"border-primary\",\n                                        module.isLocked ? \"opacity-60\" : \"cursor-pointer\",\n                                    )}\n                                    onClick={() => toggleTask(module.id, module.isLocked)}>\n                                    <div className=\"flex items-center justify-between gap-2 p-3\">\n                                        <div className=\"flex items-center gap-3\">\n                                            <span\n                                                className={cn(\n                                                    \"flex size-7 items-center justify-center rounded-md text-sm font-semibold transition-colors\",\n                                                    isActive\n                                                        ? \"bg-primary text-primary-foreground\"\n                                                        : \"bg-muted text-muted-foreground\",\n                                                )}>\n                                                {module.number}\n                                            </span>\n                                            <p className=\"line-clamp-1 font-medium max-sm:text-sm\">{module.title}</p>\n                                        </div>\n                                        <div className=\"flex items-center gap-2\">\n                                            {module.status === \"completed\" && (\n                                                <CheckCircle2 className=\"size-5 shrink-0 text-green-500\" />\n                                            )}\n                                            {module.status === \"current\" && (\n                                                <Play className=\"text-primary size-4 shrink-0\" />\n                                            )}\n                                            {module.status === \"upcoming\" && !module.isLocked && (\n                                                <Circle className=\"text-muted-foreground size-5 shrink-0\" />\n                                            )}\n                                            {module.isLocked && (\n                                                <Lock className=\"text-muted-foreground size-4 shrink-0\" />\n                                            )}\n                                            <span className=\"text-muted-foreground text-sm font-medium whitespace-nowrap\">\n                                                {module.tasksCount} tasks\n                                            </span>\n                                            {!module.isLocked && (\n                                                <ChevronDown\n                                                    className={cn(\n                                                        \"text-muted-foreground size-4 shrink-0 transition-transform\",\n                                                        isExpanded && \"rotate-180\",\n                                                    )}\n                                                />\n                                            )}\n                                        </div>\n                                    </div>\n                                    {isExpanded && (\n                                        <div className=\"text-muted-foreground border-t px-3 py-2 text-sm\">\n                                            {module.description}\n                                        </div>\n                                    )}\n                                </div>\n                            );\n                        })}\n                    </div>\n                </CardContent>\n            )}\n        </Card>\n    );\n};\n"
    }
  ],
  "mcp": {
    "description": "A course syllabus tracker widget showing current module completion status and collapsible chapter item cards. Relies on card, progress, badge, button. Ideal when an AI agent needs to compose section layouts or application views.",
    "tags": [
      "block",
      "application",
      "education"
    ]
  }
}