1import{r as o,j as e,L as l}from"./app-BH0zvs3H.js";import{y as m}from"./index-Ynou36bb.js";import{d as s}from"./dayjs.min-Bs7mfVWn.js";import{l as d,a as x}from"./advancedFormat-iA9nBSz7.js";function b({schema:i,content:h,data:a}){const[r,c]=o.useState([]);return s.extend(d),s.extend(x),o.useEffect(()=>{(async()=>{try{const n=await axios.get("/api/event-news/secondary");c(n.data||[])}catch{m.error("An error occurred while loading news")}})()},[]),e.jsx("section",{className:"container mx-auto py-20 px-8 md:px-16 bg-white",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-6 text-center",children:[e.jsx("h2",{dangerouslySetInnerHTML:{__html:a?.title??""},className:"text-3xl md:text-5xl font-bold text-gray-800 mb-4"}),e.jsx("p",{dangerouslySetInnerHTML:{__html:a?.subTitle??""},className:" text-[#6B7280] my-10 text-2xl font-[200] max-w-2xl mx-auto"}),e.jsxs("div",{className:"flex gap-4 justify-end mb-10",children:[e.jsx(l,{href:"/news",className:"bg-[#1B1464] text-white font-semibold px-6 py-2 rounded hover:bg-[#0f0b3d] transition",children:"VIEW ALL NEWS"}),e.jsx(l,{href:"/events",className:"bg-[#1B1464] text-white font-semibold px-6 py-2 rounded hover:bg-[#0f0b3d] transition",children:"VIEW ALL EVENTS"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-10",children:r.length>0?r.slice(0,3).map(t=>e.jsxs("div",{className:"text-left",children:[e.jsx("img",{src:t.photo_url?t.photo_url:t.image?t.image:"/logos/brookstoneLogo.svg",alt:"Event 1",className:"rounded-lg mb-4 w-full h-56 object-cover"}),e.jsxs("p",{className:"text-sm text-[#222222] uppercase tracking-wide",children:[t.body?"News":"Event"," -"," ",s(t.feed_date).format("D MMMM YYYY")]}),e.jsx("span",{className:"inline-block uppercase bg-[#EAB803] text-gray-900 text-xs font-semibold px-2 py-1 rounded mt-1",children:t?.institution?.short_name}),e.jsx("h3",{dangerouslySetInnerHTML:{__html:t.title},className:"mt-3 font-bold text-lg text-gray-900"})]})):e.jsx("div",{className:"text-center col-span-3",children:"There are no events or news at the moment, check back later"})})]})})}export{b as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.