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

2 lines
5.2 KiB
JavaScript

"use strict";(self.webpackChunksga_website=self.webpackChunksga_website||[]).push([[329],{96:(e,n,t)=>{t.d(n,{A:()=>s});var i=t(579);function s(e){let{children:n,...t}=e;return(0,i.jsx)("h1",{className:"my-4",...t,children:n})}},297:()=>{},336:(e,n,t)=>{t.d(n,{A:()=>s});var i=t(579);function s(e){let{imageURL:n="/images/hero.jpg",heading:t="TJHSST SGA"}=e;return(0,i.jsxs)("div",{className:"hero",children:[(0,i.jsx)("span",{className:"hero-heading",children:t}),(0,i.jsx)("img",{src:n,alt:"Background",style:{width:"100vw",maxHeight:"60vh",objectFit:"contain"}})]})}},393:(e,n,t)=>{t.d(n,{A:()=>r});var i=t(5475),s=t(579);function r(e){let{href:n,children:t}=e;return n.startsWith("http")?(0,s.jsx)("a",{href:n,target:"_blank",rel:"noreferrer",className:"blue-button",children:t}):(0,s.jsx)(i.N_,{to:n,className:"blue-button",children:t})}},1329:(e,n,t)=>{t.r(n),t.d(n,{default:()=>j});t(5043);var i=t(336),s=(t(297),t(4030)),r=t(393),a=t(579);function l(){let e=(0,s.A)();return(0,a.jsx)("section",{className:"text-center",children:(0,a.jsxs)("div",{className:"mission-box",children:[(0,a.jsxs)("p",{className:"mission-landing-page-text",children:["\u201c",null===e||void 0===e?void 0:e.vision,"\u201d"]}),(0,a.jsx)(r.A,{href:"/mission",children:"Our Mission"})]})})}var d=t(5475),o=t(7060),c=t(5649),h=t(96);function g(){var e;const n=(null!==(e=(0,o.A)("*[_type == 'article'] | order (publish_date desc, title) [0...3]"))&&void 0!==e?e:[]).map((e=>(0,a.jsx)(c.A,{article:e},e._id)));return(0,a.jsxs)("div",{children:[(0,a.jsx)(h.A,{children:"Recent News"}),n,(0,a.jsx)(d.N_,{to:"/news",children:"All News"})]})}function m(){return(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("div",{className:"col flex-2",children:(0,a.jsx)(g,{})}),(0,a.jsx)("div",{className:"col flex-1",children:(0,a.jsx)(l,{})})]})}function u(e){let{children:n}=e;return(0,a.jsx)("h3",{style:{margin:"1em 0px",fontSize:"1.75rem",fontWeight:500},children:n})}function x(e){let{title:n,content:t,imageUrl:i,infoUrl:s}=e;return(0,a.jsxs)("div",{style:{textAlign:"center",padding:"0px 17px",flex:1},children:[(0,a.jsx)(u,{children:n}),(0,a.jsx)("img",{src:i,alt:n}),(0,a.jsx)("p",{className:"strong-paragraph",children:t}),(0,a.jsx)(r.A,{href:s,children:"MORE INFO"})]})}const f=[{imageUrl:"/images/segments/news-and-happenings.jpg",infoUrl:"/news",title:"News and Happenings",content:"Read about SGA initiatives, goals, and progress from SGA officers, as well as from other student leaders, students, and student organizations."},{imageUrl:"/images/segments/who-we-are.jpg",title:"Who We Are",infoUrl:"/officers",content:"Learn about your representatives, and how they're working to advance the common agenda that SGA has set to improve your experience at TJ."},{imageUrl:"/images/segments/get-involved.jpg",infoUrl:"/involved",title:"Get Involved",content:"Any questions or concerns? Have an idea for how SGA could be doing more to advocate for students? Want to get involved? Contact Us!"}];function p(){return(0,a.jsx)("div",{className:"d-flex",children:f.map((e=>(0,a.jsx)(x,{...e},e.title)))})}function j(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.A,{}),(0,a.jsxs)("main",{children:[(0,a.jsx)(p,{}),(0,a.jsx)("hr",{}),(0,a.jsx)(m,{})]})]})}},3213:(e,n,t)=>{t.d(n,{A:()=>r});var i=t(5475),s=t(579);function r(e){let{href:n,children:t,target:r}=e;return n.startsWith("http")?(0,s.jsx)("a",{href:n,className:"clickable-link",target:r,children:t}):(0,s.jsx)(i.N_,{to:n,className:"clickable-link",children:t})}},4030:(e,n,t)=>{t.d(n,{A:()=>r});var i=t(5043),s=t(3628);const r=function(){let[e,n]=i.useState();return i.useEffect((()=>{s.A.getDocument("mission").then(n)}),[]),e}},4757:()=>{},5649:(e,n,t)=>{t.d(n,{A:()=>d});t(5043),t(4757);var i=t(8294),s=t(3213),r=t(579);function a(e){let{paddingLeft:n,paddingRight:t,marginTop:i,marginBottom:s,children:a}=e;return(0,r.jsx)("div",{style:{display:"flex",flexDirection:"row",paddingLeft:n,paddingRight:t,marginTop:i,marginBottom:s},children:a})}function l(e){let{children:n,flex:t,paddingLeft:i,paddingRight:s,paddingTop:a,paddingBottom:l,paddingX:d,paddingY:o}=e;return null!=d&&(i=s=d),null!=o&&(a=l=o),(0,r.jsx)("div",{style:{flex:t,paddingLeft:i,paddingRight:s,paddingTop:a,paddingBottom:l},children:n})}function d(e){var n;let{article:t}=e,d=null;var o;t.thumbnail&&(d=(0,r.jsx)("img",{src:null!==(o=(0,i.A)(t.thumbnail).url())&&void 0!==o?o:void 0,alt:t.title}));const c="/news/"+t._id+"/"+t.title.toLowerCase().replace(/ /g,"-");return(0,r.jsxs)(a,{marginTop:"4em",marginBottom:"4em",children:[(0,r.jsx)(l,{flex:1,paddingY:"0.5em",paddingRight:"1em",children:d}),(0,r.jsxs)(l,{flex:3,paddingY:"0.5em",paddingRight:"1em",children:[(0,r.jsx)(s.A,{href:c,target:"_blank",children:(0,r.jsx)("h3",{style:{margin:"0px"},children:t.title})}),(0,r.jsx)("i",{className:"text-sm",children:t.publish_date}),(0,r.jsx)("br",{}),(0,r.jsx)("i",{children:null!==(n=t.author)&&void 0!==n?n:"No author"}),(0,r.jsx)("br",{}),(0,r.jsx)("p",{children:t.summary})]})]})}},7060:(e,n,t)=>{t.d(n,{A:()=>r});var i=t(5043),s=t(3628);function r(e,n){let[t,r]=i.useState();return i.useEffect((()=>{s.A.fetch(e,n).then(r)}),[e,n]),t}},8294:(e,n,t)=>{t.d(n,{A:()=>l});var i=t(138),s=t.n(i),r=t(3628);const a=s()(r.A);function l(e){return a.image(e)}}}]);
//# sourceMappingURL=329.582d6296.chunk.js.map