Add the Coupon Code e-commerce template (`ecommerce-coupon-code`)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 78/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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>.
- 主要言語
- TypeScript
- スター
- 8
- フォーク
- 4
- 平均マージ
- 6時間 37分
- マージ済み PR(30日)
- 58
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codercops/ogcops のほかの issue
-
hacktoberfest help wanted templates
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
good first issue hacktoberfest templates
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Add the GitHub Issue Card template (`github-issue-card`)再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンgood first issue hacktoberfest templates
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
codercops/ogcops#65 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Gallery search and filters stop working after you come back to /templates through a site link対応中かも @prakashNalla が 1 日前に担当しました。 オープンbug good first issue hacktoberfest ui
codercops/ogcops#151 · コメント 4 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
hacktoberfest
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
codercops/ogcops の issue をすべて見る
似ている issue
-
ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
xavxyz/bei-shan-lin-shui#57 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] rag: sentence content can cross the reported sentence boundaries対応中かも @LJK-ikun が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
README: the Resource URI Schemas example's file://documents/* pattern only matches that literal URIオープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
platformatic/mcp#361 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
siyuan-note/siyuan#20799 · コメント 7 件 ·
メンテナーはふだん 1 日以内に返信