@treely/strapi-slices 5.0.0 → 5.1.0

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.
Files changed (40) hide show
  1. package/dist/components/CustomerCard/CustomerCard.d.ts +6 -0
  2. package/dist/components/CustomerCard/index.d.ts +2 -0
  3. package/dist/{slices/CustomerStories → components/CustomerCard}/messages.de.d.ts +1 -1
  4. package/dist/{slices/CustomerStories → components/CustomerCard}/messages.en.d.ts +1 -1
  5. package/dist/components/CustomerQuoteCard/CustomerQuoteCard.d.ts +6 -0
  6. package/dist/components/CustomerQuoteCard/index.d.ts +2 -0
  7. package/dist/components/CustomerQuoteCard/messages.de.d.ts +4 -0
  8. package/dist/components/CustomerQuoteCard/messages.en.d.ts +4 -0
  9. package/dist/models/strapi/StrapiCustomerStory.d.ts +6 -3
  10. package/dist/rootMessages.de.d.ts +2 -1
  11. package/dist/rootMessages.en.d.ts +2 -1
  12. package/dist/strapi-slices.cjs.development.js +178 -109
  13. package/dist/strapi-slices.cjs.development.js.map +1 -1
  14. package/dist/strapi-slices.cjs.production.min.js +1 -1
  15. package/dist/strapi-slices.cjs.production.min.js.map +1 -1
  16. package/dist/strapi-slices.esm.js +178 -109
  17. package/dist/strapi-slices.esm.js.map +1 -1
  18. package/dist/test/strapiMocks/strapiCustomerStory.d.ts +1 -0
  19. package/package.json +1 -1
  20. package/src/components/CreditsAvailableBadge/messages.de.ts +1 -2
  21. package/src/components/CreditsAvailableBadge/messages.en.ts +1 -1
  22. package/src/components/CustomerCard/CustomerCard.test.tsx +49 -0
  23. package/src/components/CustomerCard/CustomerCard.tsx +63 -0
  24. package/src/components/CustomerCard/index.ts +3 -0
  25. package/src/{slices/CustomerStories → components/CustomerCard}/messages.de.ts +1 -1
  26. package/src/{slices/CustomerStories → components/CustomerCard}/messages.en.ts +1 -1
  27. package/src/components/CustomerQuoteCard/CustomerQuoteCard.test.tsx +57 -0
  28. package/src/components/CustomerQuoteCard/CustomerQuoteCard.tsx +55 -0
  29. package/src/components/CustomerQuoteCard/index.ts +3 -0
  30. package/src/components/CustomerQuoteCard/messages.de.ts +4 -0
  31. package/src/components/CustomerQuoteCard/messages.en.ts +4 -0
  32. package/src/components/portfolio/PortfolioProjectCard/messages.de.ts +1 -1
  33. package/src/components/portfolio/PortfolioProjectCard/messages.en.ts +1 -1
  34. package/src/models/strapi/StrapiCustomerStory.ts +6 -3
  35. package/src/rootMessages.de.ts +8 -6
  36. package/src/rootMessages.en.ts +8 -6
  37. package/src/slices/CustomerStories/CustomerStories.stories.tsx +32 -3
  38. package/src/slices/CustomerStories/CustomerStories.test.tsx +2 -2
  39. package/src/slices/CustomerStories/CustomerStories.tsx +13 -56
  40. package/src/test/strapiMocks/strapiCustomerStory.ts +30 -164
@@ -2162,62 +2162,51 @@ var FORMAT_AS_PERCENT_CONFIG = {
2162
2162
  maximumFractionDigits: 2
2163
2163
  };
2164
2164
 
2165
- var messagesDe$c = {
2165
+ var messagesDe$d = {
2166
2166
  'sections.comparison.backgroundShapes': 'Hintergrundformen'
2167
2167
  };
2168
2168
 
2169
+ var messagesDe$c = {
2170
+ 'components.creditsAvailableBadge.text.yes': 'Credits verfügbar',
2171
+ 'components.creditsAvailableBadge.text.some': 'Einige verbleibende Credits',
2172
+ 'components.creditsAvailableBadge.text.no': 'Keine verbleibenden Credits',
2173
+ 'components.creditsAvailableBadge.text.notYet': 'Gutschriften bald verfügbar'
2174
+ };
2175
+
2169
2176
  var messagesDe$b = {
2170
2177
  'sections.cta.backgroundShapes': 'Dunkle Hintergrundformen',
2171
2178
  'sections.cta.backgroundShapesLight': 'Helle Hintergrundformen'
2172
2179
  };
2173
2180
 
2174
2181
  var messagesDe$a = {
2175
- 'sections.customerStories.more': 'Weiterlesen'
2182
+ 'sections.customerCard.more': 'Weiterlesen'
2176
2183
  };
2177
2184
 
2178
2185
  var messagesDe$9 = {
2179
- 'sections.glossary.copyButtonLabel': 'Kopiere den Link zu diesem Abschnitt in die Zwischenablage',
2180
- 'sections.glossary.copySuccessMessage': 'Link in die Zwischenablage kopiert',
2181
- 'sections.glossary.copyFailureMessage': 'Link konnte nicht in die Zwischenablage kopiert werden'
2186
+ 'sections.customerQuoteCard.more': 'Weiterlesen'
2182
2187
  };
2183
2188
 
2184
2189
  var messagesDe$8 = {
2185
- 'sections.projectFacts.projectInfo.value': 'Projekt Infos',
2186
- 'projects.projectFacts.properties.area': 'Fläche'
2190
+ 'sections.glossary.copyButtonLabel': 'Kopiere den Link zu diesem Abschnitt in die Zwischenablage',
2191
+ 'sections.glossary.copySuccessMessage': 'Link in die Zwischenablage kopiert',
2192
+ 'sections.glossary.copyFailureMessage': 'Link konnte nicht in die Zwischenablage kopiert werden'
2187
2193
  };
2188
2194
 
2189
2195
  var messagesDe$7 = {
2190
- 'sections.projectsMap.link.text': 'Mehr Infos'
2196
+ 'features.portfolio.documentsDownloadList.projectDocuments': 'Projektdokumente',
2197
+ 'features.portfolio.documentsDownloadList.downloadDocument': 'Dokument herunterladen'
2191
2198
  };
2192
2199
 
2193
2200
  var messagesDe$6 = {
2194
- 'sections.shopCheckout.intro.price': 'Preis',
2195
- 'sections.shopCheckout.contributionValue.label.EUR': 'Geben sie einen Betrag in € ein',
2196
- 'sections.shopCheckout.contributionValue.label.CHF': 'Geben sie einen Betrag in CHF ein',
2197
- 'sections.shopCheckout.contributionValue.unit.EUR': '€',
2198
- 'sections.shopCheckout.contributionValue.unit.CHF': 'CHF',
2199
- 'sections.shopCheckout.contributionValue.validation.empty': 'Bitte geben sie einen Betrag ein',
2200
- 'sections.shopCheckout.contributionValue.validation.tooLow.EUR': 'Der Betrag muss mindestens 10 Euro sein',
2201
- 'sections.shopCheckout.contributionValue.validation.tooLow.CHF': 'Der Betrag muss mindestens 10 CHF sein',
2202
- 'sections.shopCheckout.contributionValue.validation.tooHigh': 'Für größere Einkäufe kontaktieren Sie bitte unser Verkaufsteam über office@tree.ly',
2203
- 'sections.shopCheckout.summary.kg': 'Menge',
2204
- 'sections.shopCheckout.summary.price': 'Preis',
2205
- 'sections.shopCheckout.submit': 'Kaufen'
2201
+ 'sections.projectFacts.projectInfo.value': 'Projekt Infos',
2202
+ 'projects.projectFacts.properties.area': 'Fläche'
2206
2203
  };
2207
2204
 
2208
2205
  var messagesDe$5 = {
2209
- 'components.creditsAvailableBadge.text.yes': 'Credits verfügbar',
2210
- 'components.creditsAvailableBadge.text.some': 'Einige verbleibende Credits',
2211
- 'components.creditsAvailableBadge.text.no': 'Keine verbleibenden Credits',
2212
- 'components.creditsAvailableBadge.text.notYet': 'Noch keine Credits verfügbar'
2206
+ 'sections.projectsMap.link.text': 'Mehr Infos'
2213
2207
  };
2214
2208
 
2215
2209
  var messagesDe$4 = {
2216
- 'features.portfolio.documentsDownloadList.projectDocuments': 'Projektdokumente',
2217
- 'features.portfolio.documentsDownloadList.downloadDocument': 'Dokument herunterladen'
2218
- };
2219
-
2220
- var messagesDe$3 = {
2221
2210
  'features.projectInfo.projectInfo.value': 'Projekt Infos',
2222
2211
  'features.projectInfo.properties.area': 'Projekt Fläche',
2223
2212
  'features.projectInfo.properties.location': 'Standort',
@@ -2232,6 +2221,13 @@ var messagesDe$3 = {
2232
2221
  'features.projectInfo.properties.year': '{years} {years, plural, one {Jahr} other {Jahre} }'
2233
2222
  };
2234
2223
 
2224
+ var messagesDe$3 = {
2225
+ 'components.portfolioProjectCard.text.yes': 'Credits verfügbar',
2226
+ 'components.portfolioProjectCard.text.some': 'Einige verbleibende Credits',
2227
+ 'components.portfolioProjectCard.text.no': 'Keine verbleibenden Credits',
2228
+ 'components.portfolioProjectCard.text.notYet': 'Gutschriften bald verfügbar'
2229
+ };
2230
+
2235
2231
  var messagesDe$2 = {
2236
2232
  'portfolio.smallCheckout.contributionValueCurrency.label.CHF': 'Geben Sie den Beitrag in Fr. ein',
2237
2233
  'portfolio.smallCheckout.contributionValueCurrency.label.EUR': 'Geben Sie den Beitrag in € ein',
@@ -2249,10 +2245,18 @@ var messagesDe$2 = {
2249
2245
  };
2250
2246
 
2251
2247
  var messagesDe$1 = {
2252
- 'components.portfolioProjectCard.text.yes': 'Credits verfügbar',
2253
- 'components.portfolioProjectCard.text.some': 'Einige verbleibende Credits',
2254
- 'components.portfolioProjectCard.text.no': 'Keine verbleibenden Credits',
2255
- 'components.portfolioProjectCard.text.notYet': 'Noch keine Credits verfügbar'
2248
+ 'sections.shopCheckout.intro.price': 'Preis',
2249
+ 'sections.shopCheckout.contributionValue.label.EUR': 'Geben sie einen Betrag in € ein',
2250
+ 'sections.shopCheckout.contributionValue.label.CHF': 'Geben sie einen Betrag in CHF ein',
2251
+ 'sections.shopCheckout.contributionValue.unit.EUR': '',
2252
+ 'sections.shopCheckout.contributionValue.unit.CHF': 'CHF',
2253
+ 'sections.shopCheckout.contributionValue.validation.empty': 'Bitte geben sie einen Betrag ein',
2254
+ 'sections.shopCheckout.contributionValue.validation.tooLow.EUR': 'Der Betrag muss mindestens 10 Euro sein',
2255
+ 'sections.shopCheckout.contributionValue.validation.tooLow.CHF': 'Der Betrag muss mindestens 10 CHF sein',
2256
+ 'sections.shopCheckout.contributionValue.validation.tooHigh': 'Für größere Einkäufe kontaktieren Sie bitte unser Verkaufsteam über office@tree.ly',
2257
+ 'sections.shopCheckout.summary.kg': 'Menge',
2258
+ 'sections.shopCheckout.summary.price': 'Preis',
2259
+ 'sections.shopCheckout.submit': 'Kaufen'
2256
2260
  };
2257
2261
 
2258
2262
  var messagesDe = {
@@ -2265,64 +2269,53 @@ var unitMessagesDe = {
2265
2269
  'unit.formatter.tonsCo2PerYear': '{number} tCO₂/Jahr'
2266
2270
  };
2267
2271
 
2268
- var rootMessagesDe = /*#__PURE__*/_extends({}, messagesDe$5, messagesDe$4, messagesDe$1, messagesDe$3, messagesDe$2, messagesDe$c, messagesDe$b, messagesDe$a, messagesDe$9, messagesDe$8, messagesDe$7, messagesDe$6, messagesDe, unitMessagesDe);
2272
+ 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);
2269
2273
 
2270
- var messagesEn$c = {
2274
+ var messagesEn$d = {
2271
2275
  'sections.comparison.backgroundShapes': 'Background shapes'
2272
2276
  };
2273
2277
 
2278
+ var messagesEn$c = {
2279
+ 'components.creditsAvailableBadge.text.yes': 'Credits available',
2280
+ 'components.creditsAvailableBadge.text.some': 'Some remaining credits',
2281
+ 'components.creditsAvailableBadge.text.no': 'No remaining credits',
2282
+ 'components.creditsAvailableBadge.text.notYet': 'Credits available soon'
2283
+ };
2284
+
2274
2285
  var messagesEn$b = {
2275
2286
  'sections.cta.backgroundShapesDark': 'Dark background shapes',
2276
2287
  'sections.cta.backgroundShapesLight': 'Light background shapes'
2277
2288
  };
2278
2289
 
2279
2290
  var messagesEn$a = {
2280
- 'sections.customerStories.more': 'Read more'
2291
+ 'sections.customerCard.more': 'Read more'
2281
2292
  };
2282
2293
 
2283
2294
  var messagesEn$9 = {
2284
- 'sections.glossary.copyButtonLabel': 'Copy a link to this section to your clipboard',
2285
- 'sections.glossary.copySuccessMessage': 'Copied the link to your clipboard',
2286
- 'sections.glossary.copyFailureMessage': 'Could not copy link to clipboard'
2295
+ 'sections.customerQuoteCard.more': 'Read more'
2287
2296
  };
2288
2297
 
2289
2298
  var messagesEn$8 = {
2290
- 'sections.projectFacts.projectInfo.value': 'Project Infos',
2291
- 'projects.projectFacts.properties.area': 'Area'
2299
+ 'sections.glossary.copyButtonLabel': 'Copy a link to this section to your clipboard',
2300
+ 'sections.glossary.copySuccessMessage': 'Copied the link to your clipboard',
2301
+ 'sections.glossary.copyFailureMessage': 'Could not copy link to clipboard'
2292
2302
  };
2293
2303
 
2294
2304
  var messagesEn$7 = {
2295
- 'sections.projectsMap.link.text': 'Show more info'
2305
+ 'features.portfolio.documentsDownloadList.projectDocuments': 'Project documents',
2306
+ 'features.portfolio.documentsDownloadList.downloadDocument': 'Download document'
2296
2307
  };
2297
2308
 
2298
2309
  var messagesEn$6 = {
2299
- 'sections.shopCheckout.intro.price': 'Price',
2300
- 'sections.shopCheckout.contributionValue.label.EUR': 'Enter contribution value in €',
2301
- 'sections.shopCheckout.contributionValue.label.CHF': 'Enter contribution value in CHF',
2302
- 'sections.shopCheckout.contributionValue.unit.EUR': '€',
2303
- 'sections.shopCheckout.contributionValue.unit.CHF': 'CHF',
2304
- 'sections.shopCheckout.contributionValue.validation.empty': 'Please enter a value',
2305
- 'sections.shopCheckout.contributionValue.validation.tooLow.EUR': 'Der Betrag muss mindestens 10 Euro sein',
2306
- 'sections.shopCheckout.contributionValue.validation.tooLow.CHF': 'Der Betrag muss mindestens 10 CHF sein',
2307
- 'sections.shopCheckout.contributionValue.validation.tooHigh': 'For bigger purchases please contact our sales team via office@tree.ly',
2308
- 'sections.shopCheckout.summary.kg': 'Quantity',
2309
- 'sections.shopCheckout.summary.price': 'Price',
2310
- 'sections.shopCheckout.submit': 'Checkout'
2310
+ 'sections.projectFacts.projectInfo.value': 'Project Infos',
2311
+ 'projects.projectFacts.properties.area': 'Area'
2311
2312
  };
2312
2313
 
2313
2314
  var messagesEn$5 = {
2314
- 'components.creditsAvailableBadge.text.yes': 'Credits available',
2315
- 'components.creditsAvailableBadge.text.some': 'Some remaining credits',
2316
- 'components.creditsAvailableBadge.text.no': 'No remaining credits',
2317
- 'components.creditsAvailableBadge.text.notYet': 'No credits available yet'
2315
+ 'sections.projectsMap.link.text': 'Show more info'
2318
2316
  };
2319
2317
 
2320
2318
  var messagesEn$4 = {
2321
- 'features.portfolio.documentsDownloadList.projectDocuments': 'Project documents',
2322
- 'features.portfolio.documentsDownloadList.downloadDocument': 'Download document'
2323
- };
2324
-
2325
- var messagesEn$3 = {
2326
2319
  'features.projectInfo.projectInfo.value': 'Project Infos',
2327
2320
  'features.projectInfo.properties.area': 'Project Area',
2328
2321
  'features.projectInfo.properties.location': 'Location',
@@ -2337,6 +2330,13 @@ var messagesEn$3 = {
2337
2330
  'features.projectInfo.properties.year': '{years} {years, plural, one {year} other {years} }'
2338
2331
  };
2339
2332
 
2333
+ var messagesEn$3 = {
2334
+ 'components.portfolioProjectCard.text.yes': 'Credits available',
2335
+ 'components.portfolioProjectCard.text.some': 'Some remaining credits',
2336
+ 'components.portfolioProjectCard.text.no': 'No remaining credits',
2337
+ 'components.portfolioProjectCard.text.notYet': 'Credits available soon'
2338
+ };
2339
+
2340
2340
  var messagesEn$2 = {
2341
2341
  'portfolio.smallCheckout.contributionValueCurrency.label.CHF': 'Contribution Amount in CHF',
2342
2342
  'portfolio.smallCheckout.contributionValueCurrency.label.EUR': 'Contribution Amount in €',
@@ -2354,10 +2354,18 @@ var messagesEn$2 = {
2354
2354
  };
2355
2355
 
2356
2356
  var messagesEn$1 = {
2357
- 'components.portfolioProjectCard.text.yes': 'Credits available',
2358
- 'components.portfolioProjectCard.text.some': 'Some remaining credits',
2359
- 'components.portfolioProjectCard.text.no': 'No remaining credits',
2360
- 'components.portfolioProjectCard.text.notYet': 'No credits available yet'
2357
+ 'sections.shopCheckout.intro.price': 'Price',
2358
+ 'sections.shopCheckout.contributionValue.label.EUR': 'Enter contribution value in €',
2359
+ 'sections.shopCheckout.contributionValue.label.CHF': 'Enter contribution value in CHF',
2360
+ 'sections.shopCheckout.contributionValue.unit.EUR': '',
2361
+ 'sections.shopCheckout.contributionValue.unit.CHF': 'CHF',
2362
+ 'sections.shopCheckout.contributionValue.validation.empty': 'Please enter a value',
2363
+ 'sections.shopCheckout.contributionValue.validation.tooLow.EUR': 'Der Betrag muss mindestens 10 Euro sein',
2364
+ 'sections.shopCheckout.contributionValue.validation.tooLow.CHF': 'Der Betrag muss mindestens 10 CHF sein',
2365
+ 'sections.shopCheckout.contributionValue.validation.tooHigh': 'For bigger purchases please contact our sales team via office@tree.ly',
2366
+ 'sections.shopCheckout.summary.kg': 'Quantity',
2367
+ 'sections.shopCheckout.summary.price': 'Price',
2368
+ 'sections.shopCheckout.submit': 'Checkout'
2361
2369
  };
2362
2370
 
2363
2371
  var messagesEn = {
@@ -2370,7 +2378,7 @@ var unitMessagesEn = {
2370
2378
  'unit.formatter.tonsCo2PerYear': '{number} tCO₂/year'
2371
2379
  };
2372
2380
 
2373
- var rootMessagesEn = /*#__PURE__*/_extends({}, messagesEn$5, messagesEn$4, messagesEn$1, messagesEn$3, messagesEn$2, messagesEn$c, messagesEn$b, messagesEn$a, messagesEn$9, messagesEn$8, messagesEn$7, messagesEn$6, messagesEn, unitMessagesEn);
2381
+ 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);
2374
2382
 
2375
2383
  var _templateObject$4;
2376
2384
  var GLOBAL_STYLE = /*#__PURE__*/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"])));
@@ -4479,15 +4487,106 @@ var ProjectFacts = function ProjectFacts(_ref) {
4479
4487
  })))));
4480
4488
  };
4481
4489
 
4490
+ var CustomerCard = function CustomerCard(_ref) {
4491
+ var customerStory = _ref.customerStory;
4492
+ var _useContext = useContext(IntlContext),
4493
+ formatMessage = _useContext.formatMessage;
4494
+ return React.createElement(Container, {
4495
+ padding: "none",
4496
+ height: "full"
4497
+ }, React.createElement(Flex, {
4498
+ flexDir: "column",
4499
+ height: "full"
4500
+ }, React.createElement(Center, {
4501
+ height: "24",
4502
+ backgroundColor: "primary.50",
4503
+ borderTopRadius: "xl"
4504
+ }, customerStory.cardImage && React.createElement(Box, {
4505
+ position: "relative",
4506
+ height: "12",
4507
+ width: "12"
4508
+ }, React.createElement(Image, {
4509
+ src: strapiMediaUrl(customerStory.cardImage.img, 'medium'),
4510
+ alt: customerStory.cardImage.alt,
4511
+ fill: true,
4512
+ style: {
4513
+ objectFit: customerStory.cardImage.objectFit
4514
+ }
4515
+ }))), React.createElement(Box, {
4516
+ px: "6",
4517
+ pt: "8",
4518
+ pb: "6",
4519
+ mb: "auto"
4520
+ }, customerStory.customerCardCustomerIndustry && React.createElement(Text, {
4521
+ size: "xsMonoUppercase",
4522
+ color: "gray.500",
4523
+ mb: "2"
4524
+ }, customerStory.customerCardCustomerIndustry), customerStory.title && React.createElement(Heading, {
4525
+ size: "xl",
4526
+ fontWeight: "500"
4527
+ }, customerStory.title)), React.createElement(Box, {
4528
+ px: "6",
4529
+ pt: "8",
4530
+ pb: "6"
4531
+ }, React.createElement(Link$1, {
4532
+ href: "/customer-stories/" + customerStory.slug
4533
+ }, React.createElement(Button, {
4534
+ variant: "outline",
4535
+ size: "sm"
4536
+ }, formatMessage({
4537
+ id: 'sections.customerCard.more'
4538
+ }))))));
4539
+ };
4540
+
4541
+ var CustomerQuoteCard = function CustomerQuoteCard(_ref) {
4542
+ var customerStory = _ref.customerStory;
4543
+ var _useContext = useContext(IntlContext),
4544
+ formatMessage = _useContext.formatMessage;
4545
+ return React.createElement(Container, {
4546
+ p: "1",
4547
+ backgroundColor: "primary.100",
4548
+ height: "full"
4549
+ }, customerStory.cardImage ? React.createElement(Box, {
4550
+ position: "relative",
4551
+ height: "12",
4552
+ width: "12",
4553
+ borderRadius: "full",
4554
+ overflow: "hidden"
4555
+ }, React.createElement(Image, {
4556
+ src: strapiMediaUrl(customerStory.cardImage.img, 'medium'),
4557
+ alt: customerStory.cardImage.alt,
4558
+ fill: true,
4559
+ style: {
4560
+ objectFit: customerStory.cardImage.objectFit
4561
+ }
4562
+ })) : React.createElement(React.Fragment, null), React.createElement(Box, null, React.createElement(Box, {
4563
+ my: "8"
4564
+ }, React.createElement(Heading, {
4565
+ size: "xl",
4566
+ fontWeight: "500"
4567
+ }, customerStory.customerName), React.createElement(Text, {
4568
+ size: "xs"
4569
+ }, customerStory.quoteCardCustomerTitle)), React.createElement(Text, {
4570
+ size: "xs",
4571
+ color: "black"
4572
+ }, customerStory.quoteCardQuote), React.createElement(Link$1, {
4573
+ href: "/customer-stories/" + customerStory.slug
4574
+ }, React.createElement(Button, {
4575
+ variant: "outline",
4576
+ size: "sm",
4577
+ mt: "8"
4578
+ }, formatMessage({
4579
+ id: 'sections.customerQuoteCard.more'
4580
+ })))));
4581
+ };
4582
+
4482
4583
  var CustomerStories = function CustomerStories(_ref) {
4483
4584
  var slice = _ref.slice,
4484
4585
  customerStories = _ref.customerStories;
4485
- var _useContext = useContext(IntlContext),
4486
- formatMessage = _useContext.formatMessage;
4487
4586
  return React.createElement(DefaultSectionContainer, null, React.createElement(Wrapper, null, React.createElement(SimpleGrid, {
4488
- columns: [1, null, null, 2],
4489
- spacingX: 56,
4490
- spacingY: 24
4587
+ columns: [1, null, null, 2, 3],
4588
+ spacingX: 6,
4589
+ spacingY: 6
4491
4590
  }, slice.customer_stories.map(function (_ref2) {
4492
4591
  var attributes = _ref2.attributes;
4493
4592
  var customerStory = customerStories.find(function (cs) {
@@ -4496,43 +4595,13 @@ var CustomerStories = function CustomerStories(_ref) {
4496
4595
  if (!customerStory) {
4497
4596
  return null;
4498
4597
  }
4499
- return React.createElement(Container, {
4500
- padding: "none",
4598
+ return React.createElement(Box, {
4501
4599
  key: customerStory.id
4502
- }, React.createElement(Center, {
4503
- height: "24",
4504
- backgroundColor: "primary.50",
4505
- borderTopRadius: "xl"
4506
- }, React.createElement(Box, {
4507
- position: "relative",
4508
- height: "12",
4509
- width: "12"
4510
- }, React.createElement(Image, {
4511
- src: strapiMediaUrl(customerStory.attributes.customerLogo.img, 'medium'),
4512
- alt: customerStory.attributes.customerLogo.alt,
4513
- fill: true,
4514
- style: {
4515
- objectFit: customerStory.attributes.customerLogo.objectFit
4516
- }
4517
- }))), React.createElement(Box, {
4518
- px: "6",
4519
- pt: "12",
4520
- pb: "6"
4521
- }, React.createElement(Text, {
4522
- size: "xsMonoUppercase",
4523
- color: "gray.500",
4524
- mb: "2"
4525
- }, customerStory.attributes.customerIndustry), React.createElement(Heading, {
4526
- size: "xl"
4527
- }, customerStory.attributes.title), React.createElement(Button, {
4528
- as: Link,
4529
- href: "/customer-stories/" + customerStory.attributes.slug,
4530
- variant: "outline",
4531
- size: "sm",
4532
- mt: "12"
4533
- }, formatMessage({
4534
- id: 'sections.customerStories.more'
4535
- }))));
4600
+ }, attributes.variant === 'customerCard' && React.createElement(CustomerCard, {
4601
+ customerStory: customerStory.attributes
4602
+ }), attributes.variant === 'quoteCard' && React.createElement(CustomerQuoteCard, {
4603
+ customerStory: customerStory.attributes
4604
+ }));
4536
4605
  }))));
4537
4606
  };
4538
4607