cortex-react-components 1.18.1 → 1.19.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/{chunk-PGGLOICR.mjs → chunk-2XFMQU5T.mjs} +1 -1
- package/dist/chunk-BZXTRZ4N.mjs +1 -0
- package/dist/index.js +5 -4
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/sections/BlogListSection.d.ts +10 -1
- package/dist/sections/BlogListSection.js +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.js +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/index.d.ts +2 -0
- package/dist/sections/index.js +2 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-X4DBWIT7.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"./chunk-MGZHZWWG.mjs";import{a as
|
|
1
|
+
import{a as m}from"./chunk-MGZHZWWG.mjs";import{a as n}from"./chunk-VYJK4R76.mjs";import{a as l}from"./chunk-UESKYRNK.mjs";import{a as r}from"./chunk-KML6U7IE.mjs";import v from"next/image";import{FaEnvelope as x,FaPhoneFlip as h}from"react-icons/fa6";import{Fragment as N,jsx as e,jsxs as t}from"react/jsx-runtime";function H(s){let{sectionHeading:d,image:a}=s;return t(N,{children:[e("section",{className:"section-padding-primary",children:e("div",{className:"",children:e("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:e("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:t("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[t("div",{children:[e("h2",{className:"text-pretty text-4xl font-semibold tracking-tight text-accent",children:"Locations"}),e("p",{className:"mt-4 text-base/7 text-foreground",children:"We have multiple locations across the UK where we are based. These are our key locations."})]}),e("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:s.locations&&s.locations.map((i,c)=>{var o;return t("div",{className:"rounded-2xl p-10 border",children:[e("h3",{className:"text-base/7 font-semibold text-accent",children:i.title}),t("address",{className:"mt-3 space-y-1 text-sm/6 not-italic text-foreground",children:[(o=i.location.split(","))==null?void 0:o.map((p,g)=>e("p",{children:p},g))," ",i.mails&&t("p",{className:"flex items-center space-x-2",children:[e(x,{className:"pr-2 text-accent size-auto"}),e("span",{children:i.mails[0]})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&t("p",{className:"flex items-center space-x-2",children:[e(h,{className:"pr-2 text-accent size-auto"}),i.phoneNumbers[0]]})]})]},c)})})]})})})})}),e("section",{className:"section-padding-primary",children:t("div",{className:"relative py-[60px]",children:[e("div",{className:"absolute left-0 top-0 z-1 h-full w-full overflow-hidden bg-red-500 md:w-[56%] md:rounded-r-5",children:e(v,{src:a.src,alt:a.alt,fill:!0,className:"object-cover",sizes:"(min-width: 768px) 60vw, 100vw",placeholder:"blur",blurDataURL:r})}),e(l,{children:e("div",{className:"ml-auto md:w-1/2",children:t("div",{className:"relative z-[2] rounded-5 bg-white p-10 shadow-1 dark:bg-accent-700 lg:p-[60px]",children:[e("div",{className:"mb-30px",children:e(n,{...d})}),e(m,{})]})})})]})})]})}export{H as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as g,b as m,c,e as d}from"./chunk-D76EO57Z.mjs";import{a as p}from"./chunk-WISCWNL2.mjs";import{a as u}from"./chunk-UESKYRNK.mjs";import{a as o}from"./chunk-NIQ4466A.mjs";import v from"next/image";import{FaArrowRight as x}from"react-icons/fa6";import{jsx as e,jsxs as r}from"react/jsx-runtime";var h={links:[{label:"Genarel consturction",href:""},{label:"Business Advice",href:""},{label:"Stock market",href:""},{label:"Regular start",href:""},{label:"Regular start",href:""}]};function N({links:a}){return e("div",{className:"space-y-5 rounded-5 bg-accent-100 p-8 dark:bg-accent-700 lg:p-10",children:r(g,{children:[e(m,{children:e(c,{children:"Categories"})}),e(d,{children:a&&a.length>0&&e("nav",{"aria-label":"footer links navigation",children:e("ul",{className:"grid gap-2.5 ",children:a.map((s,l)=>r("li",{className:"flex items-center gap-2.5 pt-2.5 first:pt-0",children:[e("span",{className:"grid h-3 w-3 place-items-center border border-accent",children:e("span",{className:"block h-0.5 w-0.5 bg-accent"})}),e(p,{href:s.href,className:y,children:s.label})]},l))})})})]})})}var f=o("grid h-[65px] w-[65px] place-items-center border border-[#3b3b3b] font-secondary text-base font-bold text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground"),y=o("transition-colors duration-400 hover:text-primary ease-in-out");function O({blogs:a,pages:s}){return e("section",{className:"section-padding-primary",children:e(u,{children:r("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[e("div",{children:a&&a.length>0&&r("div",{className:"grid gap-10 lg:gap-20",children:[a.map((l,t)=>e(C,{post:l,id:t},t)),e("div",{children:r("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[Array.from({length:s.totalPages},(l,t)=>t<4||t===s.totalPages-1?e("li",{children:e("a",{className:f,href:"#","aria-label":`pagination button ${t+1}`,role:"button",children:t+1})},t):t===4?e("li",{children:e("span",{className:"pagination-ellipsis",children:"..."})},t):null),s.totalPages>4&&e("li",{children:e("a",{className:o(f,"border-accent bg-accent text-accent-foreground"),href:"#","aria-label":"pagination button",role:"button",children:e(x,{})})})]})})]})}),e("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:e(N,{...h})})]})})})}var C=({post:a,id:s})=>{let{slug:l,image:t,authors:b,categories:P,title:k,description:w,publishedAt:L}=a;return r("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[r("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[t&&e(v,{src:t.src,alt:t.alt,width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),e("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),r("div",{children:[r("div",{className:"flex items-center gap-x-4 text-xs",children:[e("time",{dateTime:a.publishedAt.toISOString(),className:"text-foreground",children:a.publishedAt.toDateString()}),a.categories.map((i,n)=>e("a",{href:`#${i}`,className:"relative z-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:i},n))]}),r("div",{className:"group relative max-w-xl",children:[e("h3",{className:"mt-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:r("a",{href:a.slug,children:[e("span",{className:"absolute inset-0"}),a.title]})}),e("p",{className:"mt-5 text-sm/6 text-foreground",children:a.description})]}),e("div",{className:"mt-6 flex flex-wrap lg:border-t gap-y-2 border-gray-200 dark:border-gray-700 pt-6",children:b.map((i,n)=>r("div",{className:"relative flex items-center gap-x-4",children:[i.image?e("img",{alt:i.image.alt,src:i.image.src,className:"size-10 rounded-full bg-gray-50"}):e("div",{className:"size-10 rounded-full bg-gray-50"})," ",e("div",{className:"text-sm/6",children:r("p",{className:"text-foreground pr-6",children:[e("span",{className:"absolute inset-0"}),i.name]})})]}))})]})]},s)};export{O as a};
|