@treely/strapi-slices 5.0.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CustomerCard/CustomerCard.d.ts +6 -0
- package/dist/components/CustomerCard/index.d.ts +2 -0
- package/dist/{slices/CustomerStories → components/CustomerCard}/messages.de.d.ts +1 -1
- package/dist/{slices/CustomerStories → components/CustomerCard}/messages.en.d.ts +1 -1
- package/dist/components/CustomerQuoteCard/CustomerQuoteCard.d.ts +6 -0
- package/dist/components/CustomerQuoteCard/index.d.ts +2 -0
- package/dist/components/CustomerQuoteCard/messages.de.d.ts +4 -0
- package/dist/components/CustomerQuoteCard/messages.en.d.ts +4 -0
- package/dist/models/strapi/StrapiCustomerStory.d.ts +6 -3
- package/dist/rootMessages.de.d.ts +2 -1
- package/dist/rootMessages.en.d.ts +2 -1
- package/dist/strapi-slices.cjs.development.js +178 -109
- package/dist/strapi-slices.cjs.development.js.map +1 -1
- package/dist/strapi-slices.cjs.production.min.js +1 -1
- package/dist/strapi-slices.cjs.production.min.js.map +1 -1
- package/dist/strapi-slices.esm.js +178 -109
- package/dist/strapi-slices.esm.js.map +1 -1
- package/dist/test/strapiMocks/strapiCustomerStory.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/CreditsAvailableBadge/messages.de.ts +1 -2
- package/src/components/CreditsAvailableBadge/messages.en.ts +1 -1
- package/src/components/CustomerCard/CustomerCard.test.tsx +49 -0
- package/src/components/CustomerCard/CustomerCard.tsx +63 -0
- package/src/components/CustomerCard/index.ts +3 -0
- package/src/{slices/CustomerStories → components/CustomerCard}/messages.de.ts +1 -1
- package/src/{slices/CustomerStories → components/CustomerCard}/messages.en.ts +1 -1
- package/src/components/CustomerQuoteCard/CustomerQuoteCard.test.tsx +57 -0
- package/src/components/CustomerQuoteCard/CustomerQuoteCard.tsx +55 -0
- package/src/components/CustomerQuoteCard/index.ts +3 -0
- package/src/components/CustomerQuoteCard/messages.de.ts +4 -0
- package/src/components/CustomerQuoteCard/messages.en.ts +4 -0
- package/src/components/portfolio/PortfolioProjectCard/messages.de.ts +1 -1
- package/src/components/portfolio/PortfolioProjectCard/messages.en.ts +1 -1
- package/src/models/strapi/StrapiCustomerStory.ts +6 -3
- package/src/rootMessages.de.ts +8 -6
- package/src/rootMessages.en.ts +8 -6
- package/src/slices/CustomerStories/CustomerStories.stories.tsx +32 -3
- package/src/slices/CustomerStories/CustomerStories.test.tsx +2 -2
- package/src/slices/CustomerStories/CustomerStories.tsx +13 -56
- package/src/test/strapiMocks/strapiCustomerStory.ts +30 -164
|
@@ -7,9 +7,11 @@ interface StrapiCustomerStory {
|
|
|
7
7
|
title: string;
|
|
8
8
|
slug: string;
|
|
9
9
|
img: StrapiImage;
|
|
10
|
-
customerName
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
customerName?: string;
|
|
11
|
+
customerCardCustomerIndustry?: string;
|
|
12
|
+
quoteCardCustomerTitle?: string;
|
|
13
|
+
cardImage?: StrapiImage;
|
|
14
|
+
quoteCardQuote?: string;
|
|
13
15
|
locale: Locale;
|
|
14
16
|
createdAt: string;
|
|
15
17
|
updatedAt: string;
|
|
@@ -17,5 +19,6 @@ interface StrapiCustomerStory {
|
|
|
17
19
|
slices: any[];
|
|
18
20
|
localizations: StrapiLocalization[];
|
|
19
21
|
topBanner?: StrapiTopBanner;
|
|
22
|
+
variant?: 'customerCard' | 'quoteCard';
|
|
20
23
|
}
|
|
21
24
|
export default StrapiCustomerStory;
|
|
@@ -21,7 +21,8 @@ declare const rootMessagesDe: {
|
|
|
21
21
|
'sections.glossary.copyButtonLabel': string;
|
|
22
22
|
'sections.glossary.copySuccessMessage': string;
|
|
23
23
|
'sections.glossary.copyFailureMessage': string;
|
|
24
|
-
'sections.
|
|
24
|
+
'sections.customerQuoteCard.more': string;
|
|
25
|
+
'sections.customerCard.more': string;
|
|
25
26
|
'sections.cta.backgroundShapes': string;
|
|
26
27
|
'sections.cta.backgroundShapesLight': string;
|
|
27
28
|
'sections.comparison.backgroundShapes': string;
|
|
@@ -21,7 +21,8 @@ declare const rootMessagesEn: {
|
|
|
21
21
|
'sections.glossary.copyButtonLabel': string;
|
|
22
22
|
'sections.glossary.copySuccessMessage': string;
|
|
23
23
|
'sections.glossary.copyFailureMessage': string;
|
|
24
|
-
'sections.
|
|
24
|
+
'sections.customerQuoteCard.more': string;
|
|
25
|
+
'sections.customerCard.more': string;
|
|
25
26
|
'sections.cta.backgroundShapesDark': string;
|
|
26
27
|
'sections.cta.backgroundShapesLight': string;
|
|
27
28
|
'sections.comparison.backgroundShapes': string;
|
|
@@ -2175,62 +2175,51 @@ var FORMAT_AS_PERCENT_CONFIG = {
|
|
|
2175
2175
|
maximumFractionDigits: 2
|
|
2176
2176
|
};
|
|
2177
2177
|
|
|
2178
|
-
var messagesDe$
|
|
2178
|
+
var messagesDe$d = {
|
|
2179
2179
|
'sections.comparison.backgroundShapes': 'Hintergrundformen'
|
|
2180
2180
|
};
|
|
2181
2181
|
|
|
2182
|
+
var messagesDe$c = {
|
|
2183
|
+
'components.creditsAvailableBadge.text.yes': 'Credits verfügbar',
|
|
2184
|
+
'components.creditsAvailableBadge.text.some': 'Einige verbleibende Credits',
|
|
2185
|
+
'components.creditsAvailableBadge.text.no': 'Keine verbleibenden Credits',
|
|
2186
|
+
'components.creditsAvailableBadge.text.notYet': 'Gutschriften bald verfügbar'
|
|
2187
|
+
};
|
|
2188
|
+
|
|
2182
2189
|
var messagesDe$b = {
|
|
2183
2190
|
'sections.cta.backgroundShapes': 'Dunkle Hintergrundformen',
|
|
2184
2191
|
'sections.cta.backgroundShapesLight': 'Helle Hintergrundformen'
|
|
2185
2192
|
};
|
|
2186
2193
|
|
|
2187
2194
|
var messagesDe$a = {
|
|
2188
|
-
'sections.
|
|
2195
|
+
'sections.customerCard.more': 'Weiterlesen'
|
|
2189
2196
|
};
|
|
2190
2197
|
|
|
2191
2198
|
var messagesDe$9 = {
|
|
2192
|
-
'sections.
|
|
2193
|
-
'sections.glossary.copySuccessMessage': 'Link in die Zwischenablage kopiert',
|
|
2194
|
-
'sections.glossary.copyFailureMessage': 'Link konnte nicht in die Zwischenablage kopiert werden'
|
|
2199
|
+
'sections.customerQuoteCard.more': 'Weiterlesen'
|
|
2195
2200
|
};
|
|
2196
2201
|
|
|
2197
2202
|
var messagesDe$8 = {
|
|
2198
|
-
'sections.
|
|
2199
|
-
'
|
|
2203
|
+
'sections.glossary.copyButtonLabel': 'Kopiere den Link zu diesem Abschnitt in die Zwischenablage',
|
|
2204
|
+
'sections.glossary.copySuccessMessage': 'Link in die Zwischenablage kopiert',
|
|
2205
|
+
'sections.glossary.copyFailureMessage': 'Link konnte nicht in die Zwischenablage kopiert werden'
|
|
2200
2206
|
};
|
|
2201
2207
|
|
|
2202
2208
|
var messagesDe$7 = {
|
|
2203
|
-
'
|
|
2209
|
+
'features.portfolio.documentsDownloadList.projectDocuments': 'Projektdokumente',
|
|
2210
|
+
'features.portfolio.documentsDownloadList.downloadDocument': 'Dokument herunterladen'
|
|
2204
2211
|
};
|
|
2205
2212
|
|
|
2206
2213
|
var messagesDe$6 = {
|
|
2207
|
-
'sections.
|
|
2208
|
-
'
|
|
2209
|
-
'sections.shopCheckout.contributionValue.label.CHF': 'Geben sie einen Betrag in CHF ein',
|
|
2210
|
-
'sections.shopCheckout.contributionValue.unit.EUR': '€',
|
|
2211
|
-
'sections.shopCheckout.contributionValue.unit.CHF': 'CHF',
|
|
2212
|
-
'sections.shopCheckout.contributionValue.validation.empty': 'Bitte geben sie einen Betrag ein',
|
|
2213
|
-
'sections.shopCheckout.contributionValue.validation.tooLow.EUR': 'Der Betrag muss mindestens 10 Euro sein',
|
|
2214
|
-
'sections.shopCheckout.contributionValue.validation.tooLow.CHF': 'Der Betrag muss mindestens 10 CHF sein',
|
|
2215
|
-
'sections.shopCheckout.contributionValue.validation.tooHigh': 'Für größere Einkäufe kontaktieren Sie bitte unser Verkaufsteam über office@tree.ly',
|
|
2216
|
-
'sections.shopCheckout.summary.kg': 'Menge',
|
|
2217
|
-
'sections.shopCheckout.summary.price': 'Preis',
|
|
2218
|
-
'sections.shopCheckout.submit': 'Kaufen'
|
|
2214
|
+
'sections.projectFacts.projectInfo.value': 'Projekt Infos',
|
|
2215
|
+
'projects.projectFacts.properties.area': 'Fläche'
|
|
2219
2216
|
};
|
|
2220
2217
|
|
|
2221
2218
|
var messagesDe$5 = {
|
|
2222
|
-
'
|
|
2223
|
-
'components.creditsAvailableBadge.text.some': 'Einige verbleibende Credits',
|
|
2224
|
-
'components.creditsAvailableBadge.text.no': 'Keine verbleibenden Credits',
|
|
2225
|
-
'components.creditsAvailableBadge.text.notYet': 'Noch keine Credits verfügbar'
|
|
2219
|
+
'sections.projectsMap.link.text': 'Mehr Infos'
|
|
2226
2220
|
};
|
|
2227
2221
|
|
|
2228
2222
|
var messagesDe$4 = {
|
|
2229
|
-
'features.portfolio.documentsDownloadList.projectDocuments': 'Projektdokumente',
|
|
2230
|
-
'features.portfolio.documentsDownloadList.downloadDocument': 'Dokument herunterladen'
|
|
2231
|
-
};
|
|
2232
|
-
|
|
2233
|
-
var messagesDe$3 = {
|
|
2234
2223
|
'features.projectInfo.projectInfo.value': 'Projekt Infos',
|
|
2235
2224
|
'features.projectInfo.properties.area': 'Projekt Fläche',
|
|
2236
2225
|
'features.projectInfo.properties.location': 'Standort',
|
|
@@ -2245,6 +2234,13 @@ var messagesDe$3 = {
|
|
|
2245
2234
|
'features.projectInfo.properties.year': '{years} {years, plural, one {Jahr} other {Jahre} }'
|
|
2246
2235
|
};
|
|
2247
2236
|
|
|
2237
|
+
var messagesDe$3 = {
|
|
2238
|
+
'components.portfolioProjectCard.text.yes': 'Credits verfügbar',
|
|
2239
|
+
'components.portfolioProjectCard.text.some': 'Einige verbleibende Credits',
|
|
2240
|
+
'components.portfolioProjectCard.text.no': 'Keine verbleibenden Credits',
|
|
2241
|
+
'components.portfolioProjectCard.text.notYet': 'Gutschriften bald verfügbar'
|
|
2242
|
+
};
|
|
2243
|
+
|
|
2248
2244
|
var messagesDe$2 = {
|
|
2249
2245
|
'portfolio.smallCheckout.contributionValueCurrency.label.CHF': 'Geben Sie den Beitrag in Fr. ein',
|
|
2250
2246
|
'portfolio.smallCheckout.contributionValueCurrency.label.EUR': 'Geben Sie den Beitrag in € ein',
|
|
@@ -2262,10 +2258,18 @@ var messagesDe$2 = {
|
|
|
2262
2258
|
};
|
|
2263
2259
|
|
|
2264
2260
|
var messagesDe$1 = {
|
|
2265
|
-
'
|
|
2266
|
-
'
|
|
2267
|
-
'
|
|
2268
|
-
'
|
|
2261
|
+
'sections.shopCheckout.intro.price': 'Preis',
|
|
2262
|
+
'sections.shopCheckout.contributionValue.label.EUR': 'Geben sie einen Betrag in € ein',
|
|
2263
|
+
'sections.shopCheckout.contributionValue.label.CHF': 'Geben sie einen Betrag in CHF ein',
|
|
2264
|
+
'sections.shopCheckout.contributionValue.unit.EUR': '€',
|
|
2265
|
+
'sections.shopCheckout.contributionValue.unit.CHF': 'CHF',
|
|
2266
|
+
'sections.shopCheckout.contributionValue.validation.empty': 'Bitte geben sie einen Betrag ein',
|
|
2267
|
+
'sections.shopCheckout.contributionValue.validation.tooLow.EUR': 'Der Betrag muss mindestens 10 Euro sein',
|
|
2268
|
+
'sections.shopCheckout.contributionValue.validation.tooLow.CHF': 'Der Betrag muss mindestens 10 CHF sein',
|
|
2269
|
+
'sections.shopCheckout.contributionValue.validation.tooHigh': 'Für größere Einkäufe kontaktieren Sie bitte unser Verkaufsteam über office@tree.ly',
|
|
2270
|
+
'sections.shopCheckout.summary.kg': 'Menge',
|
|
2271
|
+
'sections.shopCheckout.summary.price': 'Preis',
|
|
2272
|
+
'sections.shopCheckout.submit': 'Kaufen'
|
|
2269
2273
|
};
|
|
2270
2274
|
|
|
2271
2275
|
var messagesDe = {
|
|
@@ -2278,64 +2282,53 @@ var unitMessagesDe = {
|
|
|
2278
2282
|
'unit.formatter.tonsCo2PerYear': '{number} tCO₂/Jahr'
|
|
2279
2283
|
};
|
|
2280
2284
|
|
|
2281
|
-
var rootMessagesDe = /*#__PURE__*/_extends({}, messagesDe$
|
|
2285
|
+
var rootMessagesDe = /*#__PURE__*/_extends({}, messagesDe$c, messagesDe$7, messagesDe$3, messagesDe$4, messagesDe$2, messagesDe$d, messagesDe$b, messagesDe$a, messagesDe$9, messagesDe$8, messagesDe$6, messagesDe$5, messagesDe$1, messagesDe, unitMessagesDe);
|
|
2282
2286
|
|
|
2283
|
-
var messagesEn$
|
|
2287
|
+
var messagesEn$d = {
|
|
2284
2288
|
'sections.comparison.backgroundShapes': 'Background shapes'
|
|
2285
2289
|
};
|
|
2286
2290
|
|
|
2291
|
+
var messagesEn$c = {
|
|
2292
|
+
'components.creditsAvailableBadge.text.yes': 'Credits available',
|
|
2293
|
+
'components.creditsAvailableBadge.text.some': 'Some remaining credits',
|
|
2294
|
+
'components.creditsAvailableBadge.text.no': 'No remaining credits',
|
|
2295
|
+
'components.creditsAvailableBadge.text.notYet': 'Credits available soon'
|
|
2296
|
+
};
|
|
2297
|
+
|
|
2287
2298
|
var messagesEn$b = {
|
|
2288
2299
|
'sections.cta.backgroundShapesDark': 'Dark background shapes',
|
|
2289
2300
|
'sections.cta.backgroundShapesLight': 'Light background shapes'
|
|
2290
2301
|
};
|
|
2291
2302
|
|
|
2292
2303
|
var messagesEn$a = {
|
|
2293
|
-
'sections.
|
|
2304
|
+
'sections.customerCard.more': 'Read more'
|
|
2294
2305
|
};
|
|
2295
2306
|
|
|
2296
2307
|
var messagesEn$9 = {
|
|
2297
|
-
'sections.
|
|
2298
|
-
'sections.glossary.copySuccessMessage': 'Copied the link to your clipboard',
|
|
2299
|
-
'sections.glossary.copyFailureMessage': 'Could not copy link to clipboard'
|
|
2308
|
+
'sections.customerQuoteCard.more': 'Read more'
|
|
2300
2309
|
};
|
|
2301
2310
|
|
|
2302
2311
|
var messagesEn$8 = {
|
|
2303
|
-
'sections.
|
|
2304
|
-
'
|
|
2312
|
+
'sections.glossary.copyButtonLabel': 'Copy a link to this section to your clipboard',
|
|
2313
|
+
'sections.glossary.copySuccessMessage': 'Copied the link to your clipboard',
|
|
2314
|
+
'sections.glossary.copyFailureMessage': 'Could not copy link to clipboard'
|
|
2305
2315
|
};
|
|
2306
2316
|
|
|
2307
2317
|
var messagesEn$7 = {
|
|
2308
|
-
'
|
|
2318
|
+
'features.portfolio.documentsDownloadList.projectDocuments': 'Project documents',
|
|
2319
|
+
'features.portfolio.documentsDownloadList.downloadDocument': 'Download document'
|
|
2309
2320
|
};
|
|
2310
2321
|
|
|
2311
2322
|
var messagesEn$6 = {
|
|
2312
|
-
'sections.
|
|
2313
|
-
'
|
|
2314
|
-
'sections.shopCheckout.contributionValue.label.CHF': 'Enter contribution value in CHF',
|
|
2315
|
-
'sections.shopCheckout.contributionValue.unit.EUR': '€',
|
|
2316
|
-
'sections.shopCheckout.contributionValue.unit.CHF': 'CHF',
|
|
2317
|
-
'sections.shopCheckout.contributionValue.validation.empty': 'Please enter a value',
|
|
2318
|
-
'sections.shopCheckout.contributionValue.validation.tooLow.EUR': 'Der Betrag muss mindestens 10 Euro sein',
|
|
2319
|
-
'sections.shopCheckout.contributionValue.validation.tooLow.CHF': 'Der Betrag muss mindestens 10 CHF sein',
|
|
2320
|
-
'sections.shopCheckout.contributionValue.validation.tooHigh': 'For bigger purchases please contact our sales team via office@tree.ly',
|
|
2321
|
-
'sections.shopCheckout.summary.kg': 'Quantity',
|
|
2322
|
-
'sections.shopCheckout.summary.price': 'Price',
|
|
2323
|
-
'sections.shopCheckout.submit': 'Checkout'
|
|
2323
|
+
'sections.projectFacts.projectInfo.value': 'Project Infos',
|
|
2324
|
+
'projects.projectFacts.properties.area': 'Area'
|
|
2324
2325
|
};
|
|
2325
2326
|
|
|
2326
2327
|
var messagesEn$5 = {
|
|
2327
|
-
'
|
|
2328
|
-
'components.creditsAvailableBadge.text.some': 'Some remaining credits',
|
|
2329
|
-
'components.creditsAvailableBadge.text.no': 'No remaining credits',
|
|
2330
|
-
'components.creditsAvailableBadge.text.notYet': 'No credits available yet'
|
|
2328
|
+
'sections.projectsMap.link.text': 'Show more info'
|
|
2331
2329
|
};
|
|
2332
2330
|
|
|
2333
2331
|
var messagesEn$4 = {
|
|
2334
|
-
'features.portfolio.documentsDownloadList.projectDocuments': 'Project documents',
|
|
2335
|
-
'features.portfolio.documentsDownloadList.downloadDocument': 'Download document'
|
|
2336
|
-
};
|
|
2337
|
-
|
|
2338
|
-
var messagesEn$3 = {
|
|
2339
2332
|
'features.projectInfo.projectInfo.value': 'Project Infos',
|
|
2340
2333
|
'features.projectInfo.properties.area': 'Project Area',
|
|
2341
2334
|
'features.projectInfo.properties.location': 'Location',
|
|
@@ -2350,6 +2343,13 @@ var messagesEn$3 = {
|
|
|
2350
2343
|
'features.projectInfo.properties.year': '{years} {years, plural, one {year} other {years} }'
|
|
2351
2344
|
};
|
|
2352
2345
|
|
|
2346
|
+
var messagesEn$3 = {
|
|
2347
|
+
'components.portfolioProjectCard.text.yes': 'Credits available',
|
|
2348
|
+
'components.portfolioProjectCard.text.some': 'Some remaining credits',
|
|
2349
|
+
'components.portfolioProjectCard.text.no': 'No remaining credits',
|
|
2350
|
+
'components.portfolioProjectCard.text.notYet': 'Credits available soon'
|
|
2351
|
+
};
|
|
2352
|
+
|
|
2353
2353
|
var messagesEn$2 = {
|
|
2354
2354
|
'portfolio.smallCheckout.contributionValueCurrency.label.CHF': 'Contribution Amount in CHF',
|
|
2355
2355
|
'portfolio.smallCheckout.contributionValueCurrency.label.EUR': 'Contribution Amount in €',
|
|
@@ -2367,10 +2367,18 @@ var messagesEn$2 = {
|
|
|
2367
2367
|
};
|
|
2368
2368
|
|
|
2369
2369
|
var messagesEn$1 = {
|
|
2370
|
-
'
|
|
2371
|
-
'
|
|
2372
|
-
'
|
|
2373
|
-
'
|
|
2370
|
+
'sections.shopCheckout.intro.price': 'Price',
|
|
2371
|
+
'sections.shopCheckout.contributionValue.label.EUR': 'Enter contribution value in €',
|
|
2372
|
+
'sections.shopCheckout.contributionValue.label.CHF': 'Enter contribution value in CHF',
|
|
2373
|
+
'sections.shopCheckout.contributionValue.unit.EUR': '€',
|
|
2374
|
+
'sections.shopCheckout.contributionValue.unit.CHF': 'CHF',
|
|
2375
|
+
'sections.shopCheckout.contributionValue.validation.empty': 'Please enter a value',
|
|
2376
|
+
'sections.shopCheckout.contributionValue.validation.tooLow.EUR': 'Der Betrag muss mindestens 10 Euro sein',
|
|
2377
|
+
'sections.shopCheckout.contributionValue.validation.tooLow.CHF': 'Der Betrag muss mindestens 10 CHF sein',
|
|
2378
|
+
'sections.shopCheckout.contributionValue.validation.tooHigh': 'For bigger purchases please contact our sales team via office@tree.ly',
|
|
2379
|
+
'sections.shopCheckout.summary.kg': 'Quantity',
|
|
2380
|
+
'sections.shopCheckout.summary.price': 'Price',
|
|
2381
|
+
'sections.shopCheckout.submit': 'Checkout'
|
|
2374
2382
|
};
|
|
2375
2383
|
|
|
2376
2384
|
var messagesEn = {
|
|
@@ -2383,7 +2391,7 @@ var unitMessagesEn = {
|
|
|
2383
2391
|
'unit.formatter.tonsCo2PerYear': '{number} tCO₂/year'
|
|
2384
2392
|
};
|
|
2385
2393
|
|
|
2386
|
-
var rootMessagesEn = /*#__PURE__*/_extends({}, messagesEn$
|
|
2394
|
+
var rootMessagesEn = /*#__PURE__*/_extends({}, messagesEn$c, messagesEn$7, messagesEn$3, messagesEn$4, messagesEn$2, messagesEn$d, messagesEn$b, messagesEn$a, messagesEn$9, messagesEn$8, messagesEn$6, messagesEn$5, messagesEn$1, messagesEn, unitMessagesEn);
|
|
2387
2395
|
|
|
2388
2396
|
var _templateObject$4;
|
|
2389
2397
|
var GLOBAL_STYLE = /*#__PURE__*/react$1.css(_templateObject$4 || (_templateObject$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n :root {\n --default-hero-height: calc(100vh - var(--boemly-space-24));\n }\n\n a {\n text-decoration: none;\n }\n"])));
|
|
@@ -4492,15 +4500,106 @@ var ProjectFacts = function ProjectFacts(_ref) {
|
|
|
4492
4500
|
})))));
|
|
4493
4501
|
};
|
|
4494
4502
|
|
|
4503
|
+
var CustomerCard = function CustomerCard(_ref) {
|
|
4504
|
+
var customerStory = _ref.customerStory;
|
|
4505
|
+
var _useContext = React.useContext(IntlContext),
|
|
4506
|
+
formatMessage = _useContext.formatMessage;
|
|
4507
|
+
return React__default.default.createElement(boemly.Container, {
|
|
4508
|
+
padding: "none",
|
|
4509
|
+
height: "full"
|
|
4510
|
+
}, React__default.default.createElement(boemly.Flex, {
|
|
4511
|
+
flexDir: "column",
|
|
4512
|
+
height: "full"
|
|
4513
|
+
}, React__default.default.createElement(boemly.Center, {
|
|
4514
|
+
height: "24",
|
|
4515
|
+
backgroundColor: "primary.50",
|
|
4516
|
+
borderTopRadius: "xl"
|
|
4517
|
+
}, customerStory.cardImage && React__default.default.createElement(boemly.Box, {
|
|
4518
|
+
position: "relative",
|
|
4519
|
+
height: "12",
|
|
4520
|
+
width: "12"
|
|
4521
|
+
}, React__default.default.createElement(Image__default.default, {
|
|
4522
|
+
src: strapiMediaUrl(customerStory.cardImage.img, 'medium'),
|
|
4523
|
+
alt: customerStory.cardImage.alt,
|
|
4524
|
+
fill: true,
|
|
4525
|
+
style: {
|
|
4526
|
+
objectFit: customerStory.cardImage.objectFit
|
|
4527
|
+
}
|
|
4528
|
+
}))), React__default.default.createElement(boemly.Box, {
|
|
4529
|
+
px: "6",
|
|
4530
|
+
pt: "8",
|
|
4531
|
+
pb: "6",
|
|
4532
|
+
mb: "auto"
|
|
4533
|
+
}, customerStory.customerCardCustomerIndustry && React__default.default.createElement(boemly.Text, {
|
|
4534
|
+
size: "xsMonoUppercase",
|
|
4535
|
+
color: "gray.500",
|
|
4536
|
+
mb: "2"
|
|
4537
|
+
}, customerStory.customerCardCustomerIndustry), customerStory.title && React__default.default.createElement(boemly.Heading, {
|
|
4538
|
+
size: "md",
|
|
4539
|
+
fontWeight: "500"
|
|
4540
|
+
}, customerStory.title)), React__default.default.createElement(boemly.Box, {
|
|
4541
|
+
px: "6",
|
|
4542
|
+
pt: "8",
|
|
4543
|
+
pb: "6"
|
|
4544
|
+
}, React__default.default.createElement(boemly.Link, {
|
|
4545
|
+
href: "/customer-stories/" + customerStory.slug
|
|
4546
|
+
}, React__default.default.createElement(boemly.Button, {
|
|
4547
|
+
variant: "outline",
|
|
4548
|
+
size: "sm"
|
|
4549
|
+
}, formatMessage({
|
|
4550
|
+
id: 'sections.customerCard.more'
|
|
4551
|
+
}))))));
|
|
4552
|
+
};
|
|
4553
|
+
|
|
4554
|
+
var CustomerQuoteCard = function CustomerQuoteCard(_ref) {
|
|
4555
|
+
var customerStory = _ref.customerStory;
|
|
4556
|
+
var _useContext = React.useContext(IntlContext),
|
|
4557
|
+
formatMessage = _useContext.formatMessage;
|
|
4558
|
+
return React__default.default.createElement(boemly.Container, {
|
|
4559
|
+
p: "1",
|
|
4560
|
+
backgroundColor: "primary.100",
|
|
4561
|
+
height: "full"
|
|
4562
|
+
}, customerStory.cardImage ? React__default.default.createElement(boemly.Box, {
|
|
4563
|
+
position: "relative",
|
|
4564
|
+
height: "12",
|
|
4565
|
+
width: "12",
|
|
4566
|
+
borderRadius: "full",
|
|
4567
|
+
overflow: "hidden"
|
|
4568
|
+
}, React__default.default.createElement(Image__default.default, {
|
|
4569
|
+
src: strapiMediaUrl(customerStory.cardImage.img, 'medium'),
|
|
4570
|
+
alt: customerStory.cardImage.alt,
|
|
4571
|
+
fill: true,
|
|
4572
|
+
style: {
|
|
4573
|
+
objectFit: customerStory.cardImage.objectFit
|
|
4574
|
+
}
|
|
4575
|
+
})) : React__default.default.createElement(React__default.default.Fragment, null), React__default.default.createElement(boemly.Box, null, React__default.default.createElement(boemly.Box, {
|
|
4576
|
+
my: "8"
|
|
4577
|
+
}, React__default.default.createElement(boemly.Heading, {
|
|
4578
|
+
size: "md",
|
|
4579
|
+
fontWeight: "500"
|
|
4580
|
+
}, customerStory.customerName), React__default.default.createElement(boemly.Text, {
|
|
4581
|
+
size: "xs"
|
|
4582
|
+
}, customerStory.quoteCardCustomerTitle)), React__default.default.createElement(boemly.Text, {
|
|
4583
|
+
size: "xs",
|
|
4584
|
+
color: "black"
|
|
4585
|
+
}, customerStory.quoteCardQuote), React__default.default.createElement(boemly.Link, {
|
|
4586
|
+
href: "/customer-stories/" + customerStory.slug
|
|
4587
|
+
}, React__default.default.createElement(boemly.Button, {
|
|
4588
|
+
variant: "outline",
|
|
4589
|
+
size: "sm",
|
|
4590
|
+
mt: "8"
|
|
4591
|
+
}, formatMessage({
|
|
4592
|
+
id: 'sections.customerQuoteCard.more'
|
|
4593
|
+
})))));
|
|
4594
|
+
};
|
|
4595
|
+
|
|
4495
4596
|
var CustomerStories = function CustomerStories(_ref) {
|
|
4496
4597
|
var slice = _ref.slice,
|
|
4497
4598
|
customerStories = _ref.customerStories;
|
|
4498
|
-
var _useContext = React.useContext(IntlContext),
|
|
4499
|
-
formatMessage = _useContext.formatMessage;
|
|
4500
4599
|
return React__default.default.createElement(boemly.DefaultSectionContainer, null, React__default.default.createElement(boemly.Wrapper, null, React__default.default.createElement(boemly.SimpleGrid, {
|
|
4501
|
-
columns: [1, null, null, 2],
|
|
4502
|
-
spacingX:
|
|
4503
|
-
spacingY:
|
|
4600
|
+
columns: [1, null, null, 2, 3],
|
|
4601
|
+
spacingX: 6,
|
|
4602
|
+
spacingY: 6
|
|
4504
4603
|
}, slice.customer_stories.map(function (_ref2) {
|
|
4505
4604
|
var attributes = _ref2.attributes;
|
|
4506
4605
|
var customerStory = customerStories.find(function (cs) {
|
|
@@ -4509,43 +4608,13 @@ var CustomerStories = function CustomerStories(_ref) {
|
|
|
4509
4608
|
if (!customerStory) {
|
|
4510
4609
|
return null;
|
|
4511
4610
|
}
|
|
4512
|
-
return React__default.default.createElement(boemly.
|
|
4513
|
-
padding: "none",
|
|
4611
|
+
return React__default.default.createElement(boemly.Box, {
|
|
4514
4612
|
key: customerStory.id
|
|
4515
|
-
}, React__default.default.createElement(
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
}
|
|
4520
|
-
position: "relative",
|
|
4521
|
-
height: "12",
|
|
4522
|
-
width: "12"
|
|
4523
|
-
}, React__default.default.createElement(Image__default.default, {
|
|
4524
|
-
src: strapiMediaUrl(customerStory.attributes.customerLogo.img, 'medium'),
|
|
4525
|
-
alt: customerStory.attributes.customerLogo.alt,
|
|
4526
|
-
fill: true,
|
|
4527
|
-
style: {
|
|
4528
|
-
objectFit: customerStory.attributes.customerLogo.objectFit
|
|
4529
|
-
}
|
|
4530
|
-
}))), React__default.default.createElement(boemly.Box, {
|
|
4531
|
-
px: "6",
|
|
4532
|
-
pt: "12",
|
|
4533
|
-
pb: "6"
|
|
4534
|
-
}, React__default.default.createElement(boemly.Text, {
|
|
4535
|
-
size: "xsMonoUppercase",
|
|
4536
|
-
color: "gray.500",
|
|
4537
|
-
mb: "2"
|
|
4538
|
-
}, customerStory.attributes.customerIndustry), React__default.default.createElement(boemly.Heading, {
|
|
4539
|
-
size: "xl"
|
|
4540
|
-
}, customerStory.attributes.title), React__default.default.createElement(boemly.Button, {
|
|
4541
|
-
as: Link__default.default,
|
|
4542
|
-
href: "/customer-stories/" + customerStory.attributes.slug,
|
|
4543
|
-
variant: "outline",
|
|
4544
|
-
size: "sm",
|
|
4545
|
-
mt: "12"
|
|
4546
|
-
}, formatMessage({
|
|
4547
|
-
id: 'sections.customerStories.more'
|
|
4548
|
-
}))));
|
|
4613
|
+
}, attributes.variant === 'customerCard' && React__default.default.createElement(CustomerCard, {
|
|
4614
|
+
customerStory: customerStory.attributes
|
|
4615
|
+
}), attributes.variant === 'quoteCard' && React__default.default.createElement(CustomerQuoteCard, {
|
|
4616
|
+
customerStory: customerStory.attributes
|
|
4617
|
+
}));
|
|
4549
4618
|
}))));
|
|
4550
4619
|
};
|
|
4551
4620
|
|