Files
VITEC-website/public/_frontend/assets/vitec_usecaseshow-Il_tsmsc.js
khaccount eae40f4286 Success-story migration + new plugins + JSON/UX polish
- Success Stories: full migration from old site (48/48, audited),
  markets n:n, quotation content block, columns content block,
  pretty SEO detail URLs via SuccessStoryPathRewrite middleware,
  list/detail split (list page 4 / story page), detailUrl/backUrl
- New plugins: VITEC Locations (grid/list/map + RTE map text),
  VITEC Customer Logos (color/bw logic, only-show-selected),
  VITEC Card (one plugin for product/story/market/solution
  with reloading FlexForm + custom backend preview renderer)
- Eventlist: layout dropdown (list/grid/teaserbar) in settings
- Hero section CB: Images/Video tabs, background video + overlay
- Product JSON: full category rootline (parents), fixed missing
  ConnectionPool import (all-products crash), category tree map
- Backend preview CSS: container-query responsive (narrow columns)
- Docs: ISO architecture spec, root + extension READMEs

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-24 09:53:33 +02:00

1 line
2.2 KiB
JavaScript

import{ot as e,r as t,ut as n}from"./index-CM0zIqrs.js";var r=n(),i=e();function a(e){if(e?.length)return e.map(e=>`${e.url} ${e.descriptor}`).join(`, `)}function o({element:e,className:n,nested:o,devInfoTags:s,uid:c,spaceBefore:l,spaceAfter:u,renderElement:d}){let f=e.content?.usecase?.usecase;if(!f)return(0,i.jsx)(t,{className:n,devInfoTags:s,nested:o,uid:c,spaceBefore:l,spaceAfter:u,children:(0,i.jsx)(`div`,{})});let p=f.hero,m=p?.layout??`sm`,h=m!==`xs`,g=p?.textTheme!==`dark`,_=p?.bgImage?.url,v=a(p?.bgImage?.srcset),y=f.customerLogo?.url,b=a(f.customerLogo?.srcset),x=p?.overlayColor??`#000000`,S=p?.overlayOpacity??.4;return(0,i.jsx)(t,{className:n,devInfoTags:s,nested:o,uid:c,spaceBefore:l,spaceAfter:u,children:(0,i.jsxs)(`div`,{className:`vitec_usecaseshow__inner`,children:[h&&(0,i.jsxs)(`div`,{className:`vitec_usecaseshow__hero vitec_usecaseshow__hero--${m} ${g?`vitec_usecaseshow__hero--light`:`vitec_usecaseshow__hero--dark`}`,children:[_&&(0,i.jsx)(`img`,{className:`vitec_usecaseshow__hero-bg`,src:_,srcSet:v,sizes:`100vw`,alt:p?.bgImage?.alternative||f.title||``,loading:`eager`}),(0,i.jsx)(`div`,{className:`vitec_usecaseshow__hero-overlay`,style:{background:x,opacity:S}}),(0,i.jsxs)(`div`,{className:`vitec_usecaseshow__hero-content`,children:[y&&(0,i.jsx)(`div`,{className:`vitec_usecaseshow__logo-wrap`,children:(0,i.jsx)(`img`,{className:`vitec_usecaseshow__logo`,src:y,srcSet:b,sizes:`180px`,alt:f.customerLogo?.alternative||f.title||``})}),f.markets&&f.markets.length>0&&(0,i.jsx)(`div`,{className:`vitec_usecaseshow__markets`,children:f.markets.map(e=>(0,i.jsx)(`span`,{className:`vitec_usecaseshow__market-chip`,children:e.title},e.uid))}),f.title&&(0,i.jsx)(`h1`,{className:`vitec_usecaseshow__hero-title`,children:f.title}),f.subtitle&&(0,i.jsx)(`p`,{className:`vitec_usecaseshow__hero-subtitle`,children:f.subtitle})]})]}),f.teaser&&(0,i.jsx)(`div`,{className:`vitec_usecaseshow__teaser`,children:(0,i.jsx)(`p`,{className:`vitec_usecaseshow__teaser-text`,children:f.teaser})}),f.contentElements&&f.contentElements.length>0&&(0,i.jsx)(`div`,{className:`vitec_usecaseshow__body`,children:f.contentElements.map((e,t)=>(0,i.jsx)(r.Fragment,{children:d(e,!1)},e.id??t))})]})})}export{o as VitecUsecaseShow};