tj-sga-website-react/oldbuild/20250314/build/static/js/958.f1d3f46a.chunk.js
2025-03-14 15:33:32 -04:00

2 lines
1.6 KiB
JavaScript

"use strict";(self.webpackChunksga_website=self.webpackChunksga_website||[]).push([[958],{336:(e,i,n)=>{n.d(i,{A:()=>a});var t=n(579);function a(e){let{imageURL:i="/images/hero.jpg",heading:n="TJHSST SGA"}=e;return(0,t.jsxs)("div",{className:"hero",children:[(0,t.jsx)("span",{className:"hero-heading",children:n}),(0,t.jsx)("img",{src:i,alt:"Background",style:{width:"100vw",maxHeight:"60vh",objectFit:"contain"}})]})}},4757:()=>{},7060:(e,i,n)=>{n.d(i,{A:()=>s});var t=n(5043),a=n(3628);function s(e,i){let[n,s]=t.useState();return t.useEffect((()=>{a.A.fetch(e,i).then(s)}),[e,i]),n}},8294:(e,i,n)=>{n.d(i,{A:()=>r});var t=n(138),a=n.n(t),s=n(3628);const l=a()(s.A);function r(e){return l.image(e)}},8958:(e,i,n)=>{n.r(i),n.d(i,{default:()=>u});n(5043);var t=n(579);function a(e){let{children:i}=e;return(0,t.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:i})}var s=n(336),l=n(8294),r=n(9760),c=n.n(r);n(4757);function d(e){let{initiative:i}=e,n=null;return i.thumbnail&&(n=(0,l.A)(i.thumbnail).url()),(0,t.jsxs)("div",{className:"d-flex my-4",children:[(0,t.jsx)("div",{className:"article-row-thumbnail",children:n?(0,t.jsx)("img",{src:n,alt:i.name}):null}),(0,t.jsxs)("div",{className:"article-row-content",children:[(0,t.jsx)("h3",{className:"header",children:i.name}),(0,t.jsx)(c(),{blocks:i.content})]})]})}var h=n(7060);function u(){var e;let i=null!==(e=(0,h.A)('*[_type == "initiative"]'))&&void 0!==e?e:[];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.A,{heading:"Initiatives"}),(0,t.jsx)("main",{children:(0,t.jsx)(a,{children:i.map((e=>(0,t.jsx)(d,{initiative:e})))})})]})}}}]);
//# sourceMappingURL=958.f1d3f46a.chunk.js.map