Add the Coupon Code e-commerce template (`ecommerce-coupon-code`)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- frontend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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>.
- Lenguaje dominante
- TypeScript
- Estrellas
- 8
- Forks
- 4
- Merge medio
- 6 h 37 min
- PR fusionados (30 d)
- 58
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de codercops/ogcops
-
hacktoberfest help wanted templates
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
good first issue hacktoberfest templates
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Add the GitHub Issue Card template (`github-issue-card`)Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertogood first issue hacktoberfest templates
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
codercops/ogcops#65 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Gallery search and filters stop working after you come back to /templates through a site linkPosiblemente ocupada @prakashNalla la tomó hace 1 día. Abiertobug good first issue hacktoberfest ui
codercops/ogcops#151 · 4 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Hacktoberfest 2026: start hereAbiertohacktoberfest
Dificultad 1/5 Menos de una hora Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
Todos los issues de codercops/ogcops
Issues similares
-
ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
xavxyz/bei-shan-lin-shui#57 ·
Los mantenedores suelen responder en 1 día
-
[BUG] rag: sentence content can cross the reported sentence boundariesPosiblemente ocupada @LJK-ikun la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
bug needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
README: the Resource URI Schemas example's file://documents/* pattern only matches that literal URIAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
platformatic/mcp#361 ·
Los mantenedores suelen responder en 1 día
-
最近文档这个弹窗,左右宽度没有最小宽度限制Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
siyuan-note/siyuan#20799 · 7 comentarios ·
Los mantenedores suelen responder en 1 día