Add the Coupon Code e-commerce template (`ecommerce-coupon-code`)
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
- 78/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ệ
- typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Read src/templates/event/ticket-cta.ts for the ticket shape and dashed separator, then src/templates/ecommerce/sale-banner.ts for discount typography. Implement the new template in src/templates/ecommerce/coupon-code.ts, following the shared checklist in #5; also update the ecommerce index and template registry. Done means the listed layout, notch alignment, long-code truncation, and registration criteria are met.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Part of #5. Stores often share a promo code, and we don't have a coupon layout.
Idea
A wide coupon card in the middle of the canvas. A left stub shows the discount in big type ("20% OFF"). The right body has the title, the code in a JetBrains Mono box with a dashed border ("FALL20"), and the expiry text. A vertical dashed line separates stub and body, with two half-circle notches cut into the top and bottom edges at the divider. The notches are circles filled with the page background, positioned absolutely.
Template details
- File:
src/templates/ecommerce/coupon-code.ts, idecommerce-coupon-code - Fields:
commonFields.title,discount(text),couponCode(text),expiry(text, e.g. "Valid until Oct 31"),commonFields.siteName,commonFields.bgColor,commonFields.accentColor,commonFields.textColor
Where to look
- Closest reference:
src/templates/event/ticket-cta.ts(ticket shape, dashed separator) - Discount typography:
src/templates/ecommerce/sale-banner.ts
Acceptance criteria
- Notches line up with the divider and use the page background color
- Long codes are truncated (for example to 16 characters)
- Re-exported in
src/templates/ecommerce/index.tsand registered in the E-commerce block ofsrc/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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codercops/ogcops
-
accessibility bug good first issue hacktoberfest ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility bug good first issue hacktoberfest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue hacktoberfest ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue hacktoberfest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
codercops/ogcops#167 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
An empty `imageUrl=`, `logoUrl=` or `template=` returns an error instead of the defaultCó thể đã có người làm @Saifjafri212213 đã nhận hôm nay. Đang mởbug good first issue hacktoberfest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
codercops/ogcops#166 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của codercops/ogcops
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
zts212653/clowder-ai#1678 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Progressive-Victory/the-website#680 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100