forked from adobecom/caas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
348 lines (326 loc) · 14.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="robots" content="noodp" />
<meta name="template" content="" />
<meta name="description" content="Card Artboard" />
<link rel="stylesheet" href="./dist/app.css" type="text/css">
<link rel="stylesheet" href="./dependencies/typekit.css" type="text/css">
<link rel="stylesheet" href="./dependencies/dexter/publish.css" type="text/css">
<title>CaaS</title>
</head>
<body class="page basicpage spectrum spectrum--lightest">
<div class="root responsivegrid">
<div class="aem-Grid aem-Grid--12 aem-Grid--default--12">
<div class="aem-Grid aem-Grid--12 aem-Grid--default--12 ">
<div class="position aem-GridColumn aem-GridColumn--default--12">
<div id="root_content_position"
class="dexter-Position mobile-place-static mobile-place-left mobile-place-top mobile-padding-top-0 mobile-padding-right-0 mobile-padding-bottom-0 mobile-padding-left-0 mobile-margin-top-0 mobile-margin-right-0 mobile-margin-bottom-0 mobile-margin-left-0 is-Editor-false"
style="background-color: transparent; background-position: 50% 50%;">
<div class="aem-Grid aem-Grid--12 aem-Grid--default--12 ">
<div class="cardcollection aem-GridColumn aem-GridColumn--default--12">
<section id="create-app" class="create-app consonant">
<div class="collection-Container create-card-collection">
<div class="container create-card-collection__outer-wrapper">
<div id="someDivId">Please include the necessary clientlibs </div>
<!--<div id="someDivIdTwo"></div>-->
<!--<consonant-card-collection id="f" data-config="{}"></consonant-card-collection>-->
</div>
</div>
</section>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="./dist/main.source.js"></script>
<script type="text/javascript">
var config = {
collection: {
mode: "lightest", // Can be empty, "light", "dark", "darkest";
layout: {
type: '3up', // Can be "2up", "3up", "4up", "5up";
gutter: '4x', // Can be "2x", "3x", "4x";
container: '1200MaxWidth', // Can be "83Percent", "1200MaxWidth", "32Margin";
},
lazyLoad: false,
button: {
style: "call-to-action", // Can be "primary", "call-to-action";
},
banner: {
upcoming: {
description: "Upcoming"
},
live: {
description: "Live"
},
onDemand: {
description: "On Demand"
},
register: {
description: "Sign Up"
}
},
resultsPerPage: '5',
endpoint: location.hostname === "localhost" ? "../../mock-json/all-art-board-15-cards-show.json" : "../../caas/mock-json/all-art-board-15-cards-show.json",
totalCardsToShow: '55',
cardStyle: "1:2", // available options: "1:2", "3:4", "full-card", "half-height", "custom-card", "product", "double-wide";
showTotalResults: 'true',
i18n: {
prettyDateIntervalFormat: '{LLL} {dd} | {timeRange} {timeZone}',
totalResultsText: '{total} Results',
title: 'Lorem Ipsum 2',
titleHeadingLevel: 'h2',
cardTitleAccessibilityLevel: '3',
onErrorTitle: 'Sorry there was a system error.',
onErrorDescription: 'Please try reloading the page or try coming back to the page another time.',
lastModified: "Last modified {date}"
},
setCardBorders: "true", // Can be true or false;
useOverlayLinks: "false", // Can be true or false;
},
featuredCards: ['c7d34f39-397c-3727-9dff-5d0d9d8cf731'],
filterPanel: {
enabled: 'true',
type: 'top',
eventFilter: 'all',
showEmptyFilters: true,
filters: [
{
"group": "By Solution",
"id": "adobe-com-enterprise:topic",
"items": [
{
"label": "Business Continuity",
"id": "adobe-com-enterprise:topic/business-continuity"
},
{
"label": "Creativity and Design",
"id": "adobe-com-enterprise:topic/creativity-design"
},
{
"label": "Customer Intelligence",
"id": "adobe-com-enterprise:topic/customer-intelligence"
},
{
"label": "Data Management Platform",
"id": "adobe-com-enterprise:topic/data-management-platform"
},
{
"label": "Digital Foundation",
"id": "adobe-com-enterprise:topic/digital-foundation"
},
{
"label": "Digital Trends",
"id": "adobe-com-enterprise:topic/digital-trends"
},
{
"label": "Document Management",
"id": "adobe-com-enterprise:topic/document-management"
},
{
"label": "Marketing Automation",
"id": "adobe-com-enterprise:topic/marketing-automation"
},
{
"label": "Personalization",
"id": "adobe-com-enterprise:topic/personalization"
},
{
"label": "Stock",
"id": "adobe-com-enterprise:topic/Stock"
}
]
},
{
"group": "Availability",
"id": "adobe-com-enterprise:availability",
"items": [
{
"label": "On-Demand",
"id": "adobe-com-enterprise:availability/on-demand"
},
{
"label": "Upcoming",
"id": "adobe-com-enterprise:availability/upcoming"
}
]
},
{
"group": "Duration",
"id": "adobe-com-enterprise:duration",
"items": [
{
"label": "Long",
"id": "adobe-com-enterprise:duration/long"
},
{
"label": "Short",
"id": "adobe-com-enterprise:duration/short"
}
]
},
{
"group": "Rating",
"id": "adobe-com-enterprise:rating",
"items": [
{
"label": "5",
"id": "adobe-com-enterprise:rating/5"
},
{
"label": "4",
"id": "adobe-com-enterprise:rating/4"
}
]
}
],
filterLogic: 'or',
topPanel: {
mobile: {
blurFilters: true,
}
},
i18n: {
leftPanel: {
header: 'My Favorites',
// searchBoxTitle: 'Search',
clearAllFiltersText: 'Clear All',
mobile: {
filtersBtnLabel: 'Filters:',
panel: {
header: 'Filters',
totalResultsText: '{total} Results',
applyBtnText: 'Apply',
clearFilterText: 'Clear',
doneBtnText: 'Done',
},
group: {
totalResultsText: '{total} Results',
applyBtnText: 'Apply',
clearFilterText: 'Clear Left',
doneBtnText: 'Done',
}
}
},
topPanel: {
groupLabel: 'Filters',
clearAllFiltersText: 'Clear All Top',
moreFiltersBtnText: 'More Filters: +',
mobile: {
group: {
totalResultsText: '{total} esults',
applyBtnText: 'Apply',
clearFilterText: 'Clear Top',
doneBtnText: 'Done',
}
}
}
}
},
hideCtaIds: [''],
hideCtaTags: [''],
sort: {
enabled: 'true',
defaultSort: 'customSort',
options: '[{"label":"Random", "sort":"random"},{"label":"Featured","sort":"featured"},{"label":"Title: (A-Z)","sort":"titleAsc"},{"label":"Title: (Z-A)","sort":"titleDesc"},{"label":"Date: (Oldest to newest)","sort":"dateAsc"},{"label":"Date: (Newest to oldest)","sort":"dateDesc"}, {"label": "Custom Sort", "sort": "customSort"}]',
customSort: function(card){console.log("customSort: ", card); return card;}
},
pagination: {
animationStyle: 'paged',
enabled: 'true',
type: 'loadMore',
loadMoreButton: {
style: "primary", // Can be "primary", "over-background";
useThemeThree: "true", // Can be "true" or "false";
},
i18n: {
loadMore: {
btnText: 'Load More',
resultsQuantityText: 'Showing {start} of {end} cards',
},
paginator: {
resultsQuantityText: '{start}-{end} of {total} results',
prevLabel: 'Prev',
nextLabel: 'Next',
}
}
},
bookmarks: {
showOnCards: 'true',
leftFilterPanel: {
bookmarkOnlyCollection: 'false',
showBookmarksFilter: 'true',
selectBookmarksIcon: '',
unselectBookmarksIcon: '',
},
i18n: {
leftFilterPanel: {
filterTitle: 'My Favorites',
}
}
},
search: {
enabled: 'true',
searchFields: '["contentArea.title","contentArea.description","search.meta.author","overlays.banner.description", "foo.bar"]',
i18n: {
noResultsTitle: 'No Results Found',
noResultsDescription: 'We could not find any results. {break} Try checking your spelling or broadening your search.',
leftFilterPanel: {
searchTitle: 'Search',
searchPlaceholderText: 'Search here...',
},
topFilterPanel: {
searchPlaceholderText: 'i18n.topFilterPanel.searchPlaceholderText',
},
filterInfo: {
searchPlaceholderText: 'i18n.filterInfo.searchPlaceholderText',
}
}
},
language: 'en-US',
analytics: {
trackImpressions: 'true',
collectionIdentifier: 'Some Identifier',
},
customCard: ["data", "return `<div class=customCard><div class=backgroundImg></div> <section><label>PHOTO EDITING</label><p><b>Transform a landscape with Sky Replacement.</b></p></div></section> </div>`"],
onCardSaved: function(){},
onCardUnsaved: function(){}
};
const consonantCardCollection = new ConsonantCardCollection(config, document.getElementById("someDivId"));
</script>
</body>
<div class="modalContainer parsys">
</div>
<!--<script type="text/javascript" src="./dependencies/head.js"></script>-->
<!--<script type="text/javascript" src="./dependencies/publish.js"></script>-->
<style>
.customCard * {
font-family: 'adobe-clean';
}
.customCard section {
padding: 16px 24px;
}
.customCard label {
font-size: 14px;
}
.customCard p {
font-size: 18px;
}
.backgroundImg {
background-image: url('https://cc-prod.scene7.com/is/image/CCProdAuthor/mb_ps_us_riverflow2_720x634');
background-size: cover;
background-position: 50% 50%;
height: 316px;
}
.customCard {
border: solid 1px #BCBCBC;
border-radius: 6px;
max-height: 439px;
}
</style>
</html>