|
27 | 27 | white-space: nowrap; |
28 | 28 | } |
29 | 29 |
|
30 | | - .client-extension-app-product-type { |
| 30 | + .client-extension-product-type { |
31 | 31 | background-color: #FFE6C6; |
32 | 32 | color: #9D4C00; |
33 | 33 | } |
34 | 34 |
|
35 | | - .cloud-app-product-type { |
| 35 | + .cloud-product-type { |
36 | 36 | background-color: #D1EEDC; |
37 | 37 | color: #0E7835; |
38 | 38 | } |
39 | 39 |
|
| 40 | + .composite-app-product-type { |
| 41 | + background-color: #FBE0FF; |
| 42 | + color: #720086; |
| 43 | + } |
| 44 | +
|
40 | 45 | .diamond-icon-container { |
41 | 46 | color: #C9C9CF; |
42 | 47 | height: 4px; |
43 | 48 | width: 4px; |
44 | 49 | } |
45 | 50 |
|
46 | | - .dxp-app-product-type { |
| 51 | + .dxp-product-type { |
47 | 52 | background-color: #D1ECFA; |
48 | 53 | color: #166E9E; |
49 | 54 | } |
50 | 55 |
|
51 | | - .fragment-app-product-type { |
| 56 | + .low-code-configuration-product-type { |
52 | 57 | background-color: #DCD7E9; |
53 | 58 | color: #503690; |
54 | 59 | } |
|
70 | 75 | } |
71 | 76 | } |
72 | 77 | </style> |
| 78 | + |
73 | 79 | <#assign |
74 | | - PRODUCT_TYPE_CLIENT_EXTENSION = "CLIENT-EXTENSION" |
75 | | - PRODUCT_TYPE_CLOUD = "CLOUD" |
76 | | - PRODUCT_TYPE_DXP = "DXP" |
77 | | - PRODUCT_TYPE_FRAGMENT = "FRAGMENT" |
78 | | - PRODUCT_TYPE_FREE = "FREE" |
79 | | - PRODUCT_TYPE_PAID = "PAID" |
| 80 | + productTypeValues = |
| 81 | + { |
| 82 | + "client-extension": "Client Extension", |
| 83 | + "cloud": "Cloud App", |
| 84 | + "composite-app": "Composite App", |
| 85 | + "dxp": "DXP App", |
| 86 | + "low-code-configuration": "Low-Code" |
| 87 | + } |
| 88 | + |
80 | 89 | VOCABULARY_PRODUCT_CATEGORY = "MARKETPLACE APP CATEGORY" |
81 | 90 | /> |
82 | 91 |
|
|
116 | 125 | <#assign productTypes = productSpecifications?filter(item -> stringUtil.equals(item.specificationKey, "type")) /> |
117 | 126 |
|
118 | 127 | <#list productTypes as productType> |
119 | | - <#if productType.value?upper_case == PRODUCT_TYPE_CLIENT_EXTENSION> |
120 | | - <div class="align-items-center app-product-type border border-radius-small client-extension-app-product-type d-flex mb-1 mr-2 px-2 rounded-lg"> |
121 | | - <div class="bg-neutral-8">Client Extension</div> |
122 | | - </div> |
123 | | - <#elseif productType.value?upper_case == PRODUCT_TYPE_CLOUD> |
124 | | - <div class="align-items-center app-product-type border border-radius-small cloud-app-product-type d-flex mb-1 mr-2 px-2 rounded-lg"> |
125 | | - <div class="bg-neutral-8">Cloud App</div> |
126 | | - </div> |
127 | | - <#elseif productType.value?upper_case == PRODUCT_TYPE_DXP> |
128 | | - <div class="align-items-center app-product-type border border-radius-small d-flex dxp-app-product-type mb-1 mr-2 px-2 rounded-lg"> |
129 | | - <div class="bg-neutral-8">DXP App</div> |
130 | | - </div> |
131 | | - <#elseif productType.value?upper_case == PRODUCT_TYPE_FRAGMENT> |
132 | | - <div class="align-items-center app-product-type border border-radius-small d-flex fragment-app-product-type mb-1 mr-2 px-2 rounded-lg"> |
133 | | - <div class="bg-neutral-8">Fragment</div> |
134 | | - </div> |
| 128 | + <#if productType?has_content> |
| 129 | + <#assign appType = (productTypeValues[productType.value]!) /> |
| 130 | + |
| 131 | + <#if appType?has_content> |
| 132 | + <div class="align-items-center app-product-type border border-radius-small d-flex mb-1 mr-2 px-2 rounded-lg ${productType.value}-product-type"> |
| 133 | + <div class="bg-neutral-8">${appType}</div> |
| 134 | + </div> |
| 135 | + </#if> |
135 | 136 | </#if> |
136 | 137 | </#list> |
137 | 138 | </#if> |
138 | 139 |
|
139 | 140 | <#if categories?has_content> |
140 | 141 | <#assign filteredCategories = categories?filter(category -> category.vocabulary?upper_case == VOCABULARY_PRODUCT_CATEGORY) /> |
141 | 142 |
|
142 | | - <#if filteredCategories?has_content && productTypes?has_content> |
| 143 | + <#if filteredCategories?has_content && appType?has_content> |
143 | 144 | <span class="align-items-center d-flex justify-content-between"> |
144 | 145 | <span class="align-items-center d-flex diamond-icon-container justify-content-between mr-3"> |
145 | 146 | <@clay["icon"] symbol="diamond" /> |
|
0 commit comments