-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-templates-workflow-tsx-10c8768c64c0db9f80c2.js
2 lines (2 loc) · 5.02 KB
/
component---src-pages-templates-workflow-tsx-10c8768c64c0db9f80c2.js
1
2
"use strict";(self.webpackChunkcode_cave=self.webpackChunkcode_cave||[]).push([[548],{216:function(e,t,l){var a=l(7462),n=l(7294),s=l(4160),r=l(8322),o=l(4471),i=l.n(o),c=l(1164),u=l(917);t.Z=e=>{let{section:t,theme:l,title:o,linkTitle:d,subTitle:m,className:f,children:x,borderT:p,borderB:g,isArrowLink:v=!0,...w}=e;const Z=l===r.Q.dark?"text-secondary-100":"text-main-100",h=l===r.Q.dark?"text-secondary-100 hover:text-secondary-70":"text-main-100 hover:text-main-10",b=l===r.Q.dark?"bg-main-100":"bg-secondary-100";return(0,u.tZ)(n.Fragment,null,p?(0,u.tZ)(i(),{className:"w-full"}):null,(0,u.tZ)("section",(0,a.Z)({className:`w-full py-16 ${b} ${f}`},w),(0,u.tZ)(c.Z,{maxWidthClass:"max-w-[1280px]",className:`flex-col items-center ${Z}`},(0,u.tZ)("div",{className:"flex justify-between w-full sm:items-center pb-8 sm:pb-14 flex-col sm:flex-row gap-5"},(0,u.tZ)("h2",{className:`text-4xl font-bold flex-1 ${Z}`},o.toUpperCase()),t?(0,u.tZ)(s.rU,{to:`/${t}`,className:`w-full sm:w-auto text-start sm:text-end text-xl font-normal cursor-pointer whitespace-nowrap ${h}`},d?d.toUpperCase():"DISCOVER MORE"," ",v?(0,u.tZ)(n.Fragment,null,"→"):null):null,m?(0,u.tZ)("p",{className:`w-full sm:w-auto flex-1 text-start sm:text-end text-xl font-normal ${Z}`},m.toUpperCase()):null),x)),g?(0,u.tZ)(i(),{className:"w-full"}):null)}},240:function(e,t,l){l.r(t),l.d(t,{Head:function(){return h},default:function(){return Z}});var a=l(7294),n=l(8032),s=l(1929),r=l(1164),o=l(917);var i=e=>{let{step:t,scroll:l,stepNumber:n,className:s}=e;const r=(0,a.useRef)(null),{0:i,1:c}=(0,a.useState)("w-[100%]");(0,a.useEffect)((()=>{if(!r.current||!window)return;const e=r.current.getBoundingClientRect().bottom;window.innerHeight>e&&c("w-0")}),[l]);const{html:u,frontmatter:{title:d}}=t;return(0,o.tZ)("div",{ref:r,className:`workflow-step relative flex w-full items-center justify-between text-main-100 gap-5 md:gap-28 max-w-4.5xl ${s}`},(0,o.tZ)("div",{className:`hidden md:block cover absolute -top-2 -bottom-2 z-10 bg-secondary-100 transition-all duration-1000 ${i}`}),(0,o.tZ)("p",{className:"text-center px-5 md:px-20 text-[88px] sm:text-[148px] font-bold shrink-0 py-4"},n),(0,o.tZ)("div",{className:"flex flex-col flex-1 gap-2.5"},(0,o.tZ)("h2",{className:"font-bold text-2xl sm:text-3xl"},d),(0,o.tZ)("div",{className:"w-full font-normal text-lg",dangerouslySetInnerHTML:{__html:u}})))},c=l(4160),u=l(8322),d=l(216);var m=e=>{let{reason:{frontmatter:{title:t},html:l},className:a}=e;return(0,o.tZ)("div",{className:`group why-us-card relative flex flex-col text-secondary-100 gap-2.5 cursor-pointer break-inside-avoid h-max ${a}`},(0,o.tZ)("h3",{className:"text-3xl"},t),(0,o.tZ)("div",{className:"text-lg text-secondary-70",dangerouslySetInnerHTML:{__html:l}}),(0,o.tZ)("div",{className:"line w-1 h-0 bg-secondary-100 absolute top-1/2 -left-5 -translate-y-1/2 transition-all duration-500 break-inside-avoid group-hover:h-full"}))};var f=e=>{var t,l,n,s,r,i,f,p,g;let{lang:v}=e;const w=(0,c.K2)(x);let Z;v in w?Z=null==w||null===(t=w[v])||void 0===t?void 0:t.nodes:null==w||null===(l=w.en)||void 0===l||l.nodes;const h=null!==(n=null==w||null===(s=w.markupData)||void 0===s||null===(r=s.nodes)||void 0===r||null===(i=r.find((e=>e.fields.language===v)))||void 0===i||null===(f=i.frontmatter)||void 0===f||null===(p=f.whyUs)||void 0===p?void 0:p.title)&&void 0!==n?n:"why us";return(0,o.tZ)(a.Fragment,null,null!==(g=Z)&&void 0!==g&&g.length?(0,o.tZ)(d.Z,{theme:u.Q.dark,title:h,borderB:!0},(0,o.tZ)("div",{className:"flex flex-col md:flex-row gap-y-5 w-full gap-x-28 max-w-4.5xl"},(0,o.tZ)("div",{className:"flex flex-1 flex-col gap-y-5 md:gap-y-14 justify-start"},Z.map(((e,t)=>t%2==0&&(0,o.tZ)(m,{key:e.id,reason:e})))),(0,o.tZ)("div",{className:"flex flex-1 flex-col gap-y-5 md:gap-y-14 justify-start"},Z.map(((e,t)=>t%2!=0&&(0,o.tZ)(m,{key:e.id,reason:e})))))):null)};const x="941943045";var p=l(9165),g=l(4471),v=l.n(g),w=l(5081);var Z=e=>{let{data:t,pageContext:{markupData:l,lang:c}}=e;const u=t.allMarkdownRemark.nodes,d=(0,n.c)(l.image),m=(0,a.useRef)(!0),{0:x,1:p}=(0,a.useState)(!1),g=()=>{p((e=>!e))};return(0,a.useEffect)((()=>{if(m.current&&window)return m.current=!1,window.addEventListener("scroll",g),()=>window.removeEventListener("scroll",g)}),[]),(0,o.tZ)(a.Fragment,null,(0,o.tZ)(s.Z,{heightClass:"lg:h-99",title:l.bannerTitle,image:d,borderBottom:!0}),(0,o.tZ)("div",{className:"bg-secondary-100"},(0,o.tZ)(r.Z,{className:"flex-col items-center relative transition-all duration-1000 py-16 gap-5 sm:gap-0"},u?u.map(((e,t)=>(0,o.tZ)(i,{key:e.id,step:e,className:"even:flex-row-reverse",scroll:x,stepNumber:t+1}))):null),(0,o.tZ)(v(),{className:"w-full"})),(0,o.tZ)(f,{lang:c}),(0,o.tZ)(w.Z,{lang:c}))};const h=e=>{let{pageContext:{markupData:t,site:l,lang:a},location:n}=e;return(0,o.tZ)(p.Ag,{title:`${t.head} | ${t.bannerTitle.toUpperCase()}`,description:l.description,siteUrl:l.siteUrl,path:n.pathname,lang:a})}},8322:function(e,t,l){l.d(t,{Q:function(){return a}});let a=function(e){return e.dark="dark",e.light="light",e}({})}}]);
//# sourceMappingURL=component---src-pages-templates-workflow-tsx-10c8768c64c0db9f80c2.js.map