返回 Skill 列表
extension
分类: 开发与工程无需 API Key

curriculum-package-web

生成响应式的HTML/CSS/JS网页内容,包含交互元素、测验、导航和无障碍功能,适用于自主学习或混合学习。在创建网页内容、互动课程或在线材料时使用。在“创建网站”、“网页内容”、“交互式网页”或“HTML导出”时激活。

person作者: jakexiaohubgithub

Web Content & Interactive Materials

Create responsive, accessible web-based learning content with interactivity, navigation, and engagement features.

When to Use

  • Create standalone websites
  • Generate interactive lessons
  • Build self-paced modules
  • Develop online content
  • Create web-based activities

Required Inputs

  • Content: Lessons, assessments, resources
  • Interactivity: Quiz types, activities needed
  • Styling: Theme, colors, branding
  • Features: Navigation, progress tracking, etc.

Workflow

1. Generate HTML Structure

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Course Title</title>
  <link rel="stylesheet" href="styles.css">
</head>
<body>
  <nav><!-- Navigation menu --></nav>
  <main><!-- Content --></main>
  <footer><!-- Footer --></footer>
  <script src="interactive.js"></script>
</body>
</html>

2. Add Interactive Elements

  • Quizzes with immediate feedback
  • Drag-and-drop activities
  • Expandable content sections
  • Progress indicators
  • Bookmarking
  • Note-taking

3. Ensure Responsiveness

  • Mobile-friendly (320px+)
  • Tablet optimized
  • Desktop enhanced
  • Touch and keyboard accessible

4. CLI Interface

# Full course website
/curriculum.package-web --materials "curriculum-artifacts/" --output "course-website/"

# Single interactive lesson
/curriculum.package-web --lesson "lesson1.md" --interactive --quiz "quiz1.json"

# With custom theme
/curriculum.package-web --materials "curriculum-artifacts/" --theme "dark" --primary-color "#3498db"

# Help
/curriculum.package-web --help

Exit Codes

  • 0: Website generated
  • 1: Invalid configuration
  • 2: Cannot load materials
  • 3: Build failed