关于这个模板
一个专注的在线学习工作区,直接打开在学习者活跃的课程中段仪表盘上——配有连续 12 天学习记录、每周专注追踪器、进行中课程进度条和一键继续课程。浏览包含三门完整虚构课程的可筛选目录(主题、难度、时长),提供完整教学大纲、讲师简介和学习者评价;启动交互式课程播放器,用动画 HTML5 Canvas 图表代替视频,支持章节跳转、播放速度(1×–2×)、可切换实时字幕、基于 localStorage 的每课笔记和即时反馈测验;并可打印干净的结业证书。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Online Learning Platform
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
Build an interactive online course platform for [PLATFORM_NAME] signed in as active learner [LEARNER_NAME] with a [STREAK_DAYS]-day study streak. Palette: deep ink (#161A33), sunflower (#FFC93C), sky blue (#5AB2FF), and warm paper (#FBFAF5). CRITICAL: Frame 1 MUST open directly on #/dashboard showing [LEARNER_NAME] mid-course (not an empty catalog)—displaying active streak, weekly goal progress, three enrolled courses with real completion percentages, and a prominent 'Resume Lesson' card. Sync five hash routes bidirectionally with window.location.hash: (1) #/dashboard — Active mid-course learner dashboard with streak calendar strip (Mon–Sun, no dates), study stats, active course cards with illustrated covers, and quick Resume button; (2) #/catalog — Filterable Course Catalog (Topic, Level, Length) covering three complete seeded fictional courses ('Visual Data Storytelling', 'Systems Design for Product Builders', 'Everyday Sound & Acoustics') with real multi-chapter outlines, instructor bios, and student reviews; (3) #/course — Full Course Detail page with syllabus outline, learning outcomes, instructor bio, reviews, and lesson launcher; (4) #/player — Interactive Lesson Player featuring live animated HTML5 Canvas visual diagrams tailored to each course (live animated charts, system-architecture packet flows, or harmonic soundwave interference) with Play/Pause, timeline scrubber, chapter markers, speed selector (1×/1.25×/1.5×/2×), toggleable live synced Captions bar, per-lesson Markdown Notes saved to localStorage, Mark Complete button, and an interactive graded Quiz with instant explanations; (5) #/certificate — Clean printable completion certificate for [LEARNER_NAME] with course selector, serial ID, total hours, and window.print() button (zero calendar dates or 4-digit years). Bundle all 4 cohesive illustrated course cover WebP images under public/images/.
- Audience: Self-paced learners, cohort educators, and online course creators.
- Goal: Deliver an energizing, distraction-free learning workspace that feels genuinely alive mid-course from the very first pixel.
- Tone: Warm, encouraging editorial academy—structured clarity with tactile study craft.
## Stack
- Framework: Vite 6 + React 18 + TypeScript
- Styling: Tailwind CSS 4
- Libraries: lucide-react (ISC), @fontsource/plus-jakarta-sans (OFL-1.1), @fontsource/inter (OFL-1.1), @fontsource/jetbrains-mono (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Set base: './' and build: { sourcemap: false } in vite.config.ts.
- Import @fontsource/plus-jakarta-sans (600, 700), @fontsource/inter (400, 500, 600), and @fontsource/jetbrains-mono (500, 600) in src/main.tsx.
- Bundle all 4 generated cohesive editorial illustration WebP files in public/images/ and document them in ASSETS.md.
- Persist completed lesson IDs, quiz scores, and per-lesson notes in localStorage and sync routes (#/dashboard, #/catalog, #/course, #/player, #/certificate) with window.location.hash.
## Variables
- [PLATFORM_NAME] — Platform Name (default: "Brightleaf Academy"). Fictional online course platform name
- [LEARNER_NAME] — Active Learner Name (default: "Samira Chen"). Fictional learner displayed on dashboard and certificate
- [STREAK_DAYS] — Active Streak Days (default: "12"). Current study streak counter on dashboard
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/online-learning-platform in the footer (default: yes; delete this line to remove it)
The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described.
Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components.Pro 模板
解锁完整提示词和源码
- 完整提示词:设计、版块、动效、素材
- 每个在线演示的源码
- 商用授权
在线演示和 DESIGN.md 仍然免费。
$9/月起 · 年付和终身正在上线特惠
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Online Learning Platform"
colors:
academy_paper: "#FBFAF5"
deep_ink: "#161A33"
sunflower_gold: "#FFC93C"
clear_sky: "#5AB2FF"
typography:
headings_course_titles: { family: "Plus Jakarta Sans", weights: [600, 700] }
lesson_prose_captions_notes: { family: "Inter", weights: [400, 500, 600] }
timers_progress_serial_ids: { family: "JetBrains Mono", weights: [500, 600] }
spacing: "Crisp top navigation bar + generous 1280px workspace grid with clear card hierarchy and print-specific CSS for the Certificate view."
radius: "16px rounded study cards with crisp 1px ink/12 borders."
---
# Online Learning Platform — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **Academy Paper** `#FBFAF5` — Warm reading and dashboard canvas
- **Deep Ink** `#161A33` — Primary text, player stage, and structural accents
- **Sunflower Gold** `#FFC93C` — Streaks, active highlights, and primary action accent
- **Clear Sky** `#5AB2FF` — Progress meters, active chapters, and quiz highlights
## Typography
- **Headings & Course Titles** — Plus Jakarta Sans (OFL), weights 600/700. Self-host the font files.
- **Lesson Prose, Captions & Notes** — Inter (OFL), weights 400/500/600. Self-host the font files.
- **Timers, Progress % & Serial IDs** — JetBrains Mono (OFL), weights 500/600. Self-host the font files.
## Spacing & shape
- Spacing: Crisp top navigation bar + generous 1280px workspace grid with clear card hierarchy and print-specific CSS for the Certificate view.
- Radius: 16px rounded study cards with crisp 1px ink/12 borders.
## Motion
- Real-time animated Canvas visual lessons synced to timeline scrubber, speed (1×–2×), and chapter markers.
- Instant quiz grading feedback and live localStorage note autosave.
## Imagery
Four cohesive flat-geometric editorial illustrations from one unified palette (deep ink #161A33, sunflower #FFC93C, sky #5AB2FF, cream #FBFAF5) for the three seeded courses plus the learner studio banner—zero text inside images.
## Tone
Warm, encouraging editorial academy—structured clarity with tactile study craft.
---
— Prompt by VibeFather · https://vibefather.ai/t/online-learning-platform · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 独立课程创作者:将 PLATFORM_NAME 设置为你的学院名称,LEARNER_NAME 设置为示例学生姓名,并将三门预置课程替换为你自己的教学大纲和讲师简介。
- 编程训练营:保留仪表盘和课程播放器,将 Systems Design 课程替换为你的课程体系,并将证书页面链接到你的同期学员完成记录。
- 企业培训团队:将平台重命名为你的内部学院,并重写目录筛选器,以适配合规、入职和工具培训等学习路径。
- 音乐或科学教育者:以 Everyday Sound and Acoustics 课程为基础,调整 Canvas 声波课程和测验解释,以匹配你自己的主题。
在线学习平台:常见问题
如何给用 AI 搭建的酒庄网站添加葡萄酒俱乐部注册?
在线学习平台模板是为课程交付而设计的,不是为酒庄注册而设计的,因此葡萄酒俱乐部表单不是它的板块之一。你可以复用学习者仪表盘的布局,将已选课程卡片改造成会员等级,并把注册按钮链接到你的邮件列表。如果要搭建酒庄网站,建议从已经包含注册表单的模板开始。
在线学习平台模板的五个页面都包含什么?
在线学习平台模板包含五个路由:学习者仪表盘,带有连续学习日历条、每周目标进度和三门已选课程;可筛选的三门虚构课程目录,包含教学大纲、讲师简介和评价;课程详情页;交互式课程播放器,带有动画 Canvas 图表、字幕、速度控制、笔记和测验;以及可打印的证书。