diff --git a/clip/initParams.ts b/clip/initParams.ts
index 034f14b..e2099f7 100644
--- a/clip/initParams.ts
+++ b/clip/initParams.ts
@@ -2,7 +2,8 @@ export default [
{
name: "Blue medium",
value: {
- colors: ["#fff", "#161616"],
+ backgroundColor: "#161616",
+ fontColor: "#fff",
offer: "39.90€",
images: [
"https://donkeyclip.github.io/week-offer/server/white.png",
@@ -19,6 +20,8 @@ export default [
firstRow: "ΠΡΟΣΦΟΡΑ",
secondRow: "ΕΒΔΟΜΑΔΑΣ",
thirdRow: "Nike Zoom Lite 3",
+ bannerLink:
+ "https://www.e-tennis.gr/tennis-shoes/tennis-shoe/nike/shopby/show_onsales_products-sales_products-model-zoom_lite.html",
},
},
];
diff --git a/clip/initParamsValidationRules.ts b/clip/initParamsValidationRules.ts
index 30ecae2..18ad2ee 100644
--- a/clip/initParamsValidationRules.ts
+++ b/clip/initParamsValidationRules.ts
@@ -1,42 +1,39 @@
export default {
- colors: {
- label: "Colors",
+ backgroundColor: { label: "Background Color", type: "color" },
+ fontColor: { label: "Font Color", type: "color" },
+ firstRow: {
+ label: "First Row",
+ type: "string",
+ },
+ secondRow: {
+ label: "Second Row",
+ type: "string",
+ },
+ offer: {
+ label: "Offer",
+ type: "string",
+ },
+ images: {
+ label: "Images",
type: "array",
- items: {
- type: "color",
- },
- firstRow: {
- label: "First Row",
- type: "string",
- },
- secondRow: {
- label: "Second Row",
- type: "string",
- },
- offer: {
- label: "Offer",
- type: "string",
- },
- images: {
- label: "Images",
- type: "array",
- items: { type: "string" },
- },
- firstImagePosition: {
- type: "object",
- label: "First Image Position",
- props: {
- top: { type: "number" },
- left: { type: "number" },
- },
+ items: { type: "string" },
+ },
+ firstImagePosition: {
+ type: "object",
+ label: "First Image Position",
+ props: {
+ top: { type: "number" },
+ left: { type: "number" },
},
- secondImagePosition: {
- type: "object",
- label: "Second Image Position",
- props: {
- top: { type: "number" },
- left: { type: "number" },
- },
+ },
+ secondImagePosition: {
+ type: "object",
+ label: "Second Image Position",
+ props: {
+ top: { type: "number" },
+ left: { type: "number" },
},
},
+ bannerLink: { type: "string", label: "Link" },
+ thirdRow: { type: "string", label: "Third Row" },
};