Add the Gift Card e-commerce template (`ecommerce-gift-card`)
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 85/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- frontend
Rechercherichtung
Beginne mit src/templates/ecommerce/coupon-code.ts für das hervorgehobene Promo-Layout und mit src/templates/product/glassmorphism.ts für ein erhöhtes Kartenfeld. Implementiere das Template in src/templates/ecommerce/gift-card.ts, exportiere es anschließend erneut aus src/templates/ecommerce/index.ts und registriere es in src/templates/registry.ts. Prüfe die Lesbarkeit des aufgeführten Textes, lange Texte und Fälle mit leerer Notiz und bestätige, dass es die gemeinsame Checkliste in #5 erfüllt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Part of #5. For gift card promos around holidays and launches.
Idea
The headline sits on the left ("Give them the choice"), with an optional note under it ("Delivered instantly by email"). On the right is a card-shaped panel filled with the accent color: the store name at its top left, "Gift card" at its top right, and the amount large at its bottom left ("$50").
Template details
- File:
src/templates/ecommerce/gift-card.ts, idecommerce-gift-card - Fields:
commonFields.siteName(the store name),commonFields.title(the headline),amount(text, default "$50"),note(text, optional),commonFields.bgColor,commonFields.accentColor,commonFields.textColor
Where to look
- Closest reference:
src/templates/ecommerce/coupon-code.ts(a promo layout with a highlighted box),src/templates/product/glassmorphism.ts(a raised card panel)
Acceptance criteria
- Text on the card stays readable on any accent color (
contrastText()), and the headline stays readable on a light background - Long amounts and headlines shrink or truncate, and an empty
note(or only spaces) hides cleanly - 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 #235 in the description.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 8
- Forks
- 4
- Ø Merge
- 8 Std. 47 Min.
- Gemergte PRs (30 T.)
- 157
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus codercops/ogcops
-
[Bug] “Copy Recommended Meta Tags” generates an unusable placeholder image URLEvtl. vergeben @CreatorguyS hat das vor 3 Tagen übernommen. Offenbug enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
codercops/ogcops#378 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug] Clipboard fallback reports success even when copying failsEvtl. vergeben @srikar-naidu hat das vor 3 Tagen übernommen. Offenbug
codercops/ogcops#384 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Preview checker: entity names like `&constructor;` decode to function sourceEvtl. vergeben @amitsinha-cell hat das vor 3 Tagen übernommen. Offenbug
codercops/ogcops#356 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add the Do and Don't tutorial template (`tutorial-do-dont`)Evtl. vergeben @Ravindar-Amogh-Gummadavelly hat das vor 3 Tagen übernommen. Offengood first issue templates
codercops/ogcops#355 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 30/100
codercops/ogcops#341 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in codercops/ogcops
Ähnliche Issues
-
area: frontend priority: normal
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
formbricks/formbricks#9918 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
thecodacus/pithagoras#364 ·
Maintainer antworten meist innerhalb von 1 Tag
-
TestAutonomousStop_ReportsObservedState fails under host load: 1s wall-clock ceiling vs 250ms cycleOffentype:bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
nightgauge/nightgauge#2909 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag