Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add the Shortcut Tip product template (`product-shortcut-tip`)

Đã đóng
#70 4 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
74/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start with src/templates/product/minimal-badge.ts and the shared template checklist in #5 to understand the template conventions. Implement the new template in src/templates/product/shortcut-tip.ts, then export it from src/templates/product/index.ts and register it in the Product block of src/templates/registry.ts. Done means it supports two or three plain-text keys with the specified fields and defaults, and meets the checklist.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

good first issue hacktoberfest templates

Part of #5. Product teams often share "pro tip" shortcuts.

Idea
A "Pro tip" pill at the top. In the center, the keys are drawn as keycaps: rounded boxes with a thicker, darker bottom border for depth, JetBrains Mono at around 64px, separated by "+". Below that are the feature name and a one-line description.

Template details

  • File: src/templates/product/shortcut-tip.ts, id product-shortcut-tip
  • Fields: commonFields.title (feature name), commonFields.description, key1 (default "Ctrl"), key2 (default "K"), key3 (optional), label (default "Pro tip"), commonFields.siteName, commonFields.bgColor, commonFields.accentColor, commonFields.textColor

Where to look

  • Closest reference: src/templates/product/minimal-badge.ts

Acceptance criteria

  • Works with 2 or 3 keys; defaults use plain text keys (symbols like ⌘ may be missing from the bundled fonts)
  • Re-exported in src/templates/product/index.ts and registered in the Product block of src/templates/registry.ts
  • Meets the shared template checklist in #5

One template per contributor at a time, so more people get a chance.


Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off dev, and open your PR against dev with Closes #<this issue number>.

Ngôn ngữ chính
TypeScript
Star
8
Fork
4
Merge trung bình
6 giờ 9 phút
Pull request đã merge (30 ngày)
66

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của codercops/ogcops

Tất cả issue của codercops/ogcops

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.