网页免费 已验证

Activity Calendar Chart(界面组件)

制作可复用的活动日历图表区块,让每日变化一目了然。温暖中性的编辑风格以墨色画布、陶土色表面和青绿色强度单元格呈现产品分析与管理层报告。

你会得到

  • 响应式、按日期排列的每日活动网格
  • 清晰的强度图例与日期范围标签
  • 包含日期和值的无障碍单日名称
  • 可编辑的组件样式与示例数据

适合

  • 产品使用情况与贡献度摘要
  • 嵌入网页的管理层报告
  • 现有应用中的可复用分析区块

不适合

  • 按小时安排日程或预约
  • 包含筛选和导航的完整仪表盘

你需要提供

  • 按日历日期记录的每日数值
  • 日期范围与每周起始日偏好
  • 框架和样式限制

运行要求

  • A modern browser
  • Node.js 20+ for the validator

运行成本

No external services. Runs entirely on your agent.

试试这个提示词

/sl-activity-calendar-chart-ui-block 为 SaaS 使用情况报告制作一个供读者快速查看年度活动情况的区块,标题为 “A Year Of Steady Activity”,并展示三项汇总数据:1,284 个活跃项目、有活动的 312 天,以及最繁忙的一天为 9 月 12 日,共 18 个活跃项目。采用简洁克制的 Clay Ledger 风格。

后续提示词

  • 添加可配置的对比周期和简洁的去年同期摘要。
  • 将活动数值和标签改为每周发布频率。

验证情况

已验证

render-checkpass4.0 / 539s

常见问题

显示周期可以更改吗?

可以。将日期范围设为可配置项,并根据输入日期和每周起始日生成对应周数。

强度阈值应该如何设置?

使用明确且有说明的数值区间;如果不同场景的数据规模不同,应允许配置这些区间。

SKILL.md

SKILL.md

Activity Calendar Chart UI Block

A polished, reusable activity-calendar chart block for showing daily usage patterns in a calm, editorial interface.

Style: Clay Ledger. Calm, editorial warmth balances a deep ink canvas with tactile clay neutrals and precise teal data accents. Follow references/style-guide.md exactly.

Use this skill when

  • Product usage and contribution summaries
  • Executive reports embedded in web pages
  • Reusable analytics sections in an existing app

Do not use

  • A full analytics dashboard with filters, navigation, and multiple unrelated charts.
  • A time-series line chart or intraday calendar with hourly intervals.
  • To reproduce another company's brand, logo, product UI or copyrighted characters.

Inputs

  • Daily activity values with dates and units
  • Date range and preferred week-start day
  • Activity label and optional comparison period
  • Framework, styling system, and integration constraints

If something essential is missing, ask one short question before starting. Never invent facts, numbers, quotes or customer names; mark gaps as [needs source].

Workflow

  1. Read the brief and references/section-library.md. Confirm which block the user needs and where it will live (plain HTML or a framework component).
  2. Copy references/template.html to section.html. Keep the <style> block and the one focal section; delete every other section.
  3. Apply the tokens from references/style-guide.md in the :root block. Do not introduce colors, fonts or radii outside the tokens.
  4. Write real copy from the user's brief for every REPLACE_ placeholder, inside the word limits. Never invent customer names, logos or numbers; label fictional testimonials and figures as sample content.
  5. Check the layout at 390px, 768px and 1280px wide: no horizontal scrolling, readable type, tap targets at least 44px.
  6. If the user works in React/Next.js, Vue or Tailwind, port the result with references/framework-adaptation.md after the HTML version passes.
  7. Run the validator and fix every problem it reports:

``bash node scripts/validate-html.mjs section.html ``

  1. Open the file in a browser (from file://) and check keyboard focus, the FAQ toggles and the mobile menu.

What makes this excellent

  • Render a complete date-aligned calendar grid for the requested period, including empty leading or trailing cells where needed.
  • Use a consistent, documented set of activity thresholds so cell intensity represents comparable values across the full range.
  • Show the selected date range, total activity, and a concise peak-day summary without competing with the chart.
  • Include a compact legend that explains zero and increasing activity levels in text as well as color.
  • Make each day keyboard reachable and expose its date and value to assistive technology; do not rely on color alone.
  • Keep the component reusable: isolate data and labels from markup, and avoid app-specific navigation or page chrome.

Output contract

  • section.html: one self-contained HTML file (inline CSS, inline SVG, no network requests, no storage APIs) that opens from file://.
  • Exactly one <h1>, labelled form inputs, alt text on every image, no REPLACE_ placeholders or filler text.
  • Responsive at 390 / 768 / 1280px, using only the style-guide tokens.
  • A hand-off note: sections used, any sample content that must be replaced, framework port (if any) and the validator output.
  • Deliver one reusable web section containing the activity-calendar chart and its directly supporting labels and summary metrics.
  • Include responsive layout and accessible day labels, legend text, and visible keyboard focus states.

Reference demo and agent run

The preview (preview/demo.html) is a static reference built from sample content: it shows the layout, style, copy structure and the visible controls every interactive part needs (labelled form fields, carousel buttons, player chrome). Image areas are labelled placeholders and sample quotes or figures are marked as samples. In a real run the agent uses the user's content and assets, wires behaviour (form destinations, media sources, data) and keeps every promise in the output contract above.

Failure rules

  • Never hand over a file that fails the validator; fix it and run it again.
  • If the brief lacks facts (prices, numbers, customer names), ask once; otherwise mark them clearly as sample content.
  • Do not reproduce another company's website, logo or copy, even if asked to "make it look like" one; build an original page in this style instead.

相似技能

Activity Calendar Chart(界面组件) · SkillLoom