mirror of
https://github.com/tjsga/tj-sga-website-react.git
synced 2025-04-03 20:00:17 -04:00
1 line
6.5 KiB
Plaintext
1 line
6.5 KiB
Plaintext
{"version":3,"file":"static/js/381.a74694f0.chunk.js","mappings":"sIAEe,SAASA,EAAIC,GAMxB,IANyB,SAC5BC,EAAW,mBAAkB,QAC7BC,EAAU,cAIVF,EACA,OACCG,EAAAA,EAAAA,MAAA,OAAKC,UAAU,OAAMC,SAAA,EACpBC,EAAAA,EAAAA,KAAA,QAAMF,UAAU,eAAcC,SAAEH,KAChCI,EAAAA,EAAAA,KAAA,OACCC,IAAKN,EACLO,IAAI,aACJC,MAAO,CACNC,MAAO,QACPC,UAAW,OACXC,UAAW,eAKhB,C,wDCrBe,SAASC,EAAcb,GAMlC,IANmC,KACtCc,EAAI,SACJT,GAIAL,EACA,OAAKc,EAAKC,WAAW,SAQnBT,EAAAA,EAAAA,KAAA,KAAGQ,KAAMA,EAAME,OAAO,SAASC,IAAI,aAAab,UAAU,cAAaC,SACrEA,KAPFC,EAAAA,EAAAA,KAACY,EAAAA,GAAI,CAACC,GAAIL,EAAMV,UAAU,cAAaC,SACrCA,GAUL,C,8CCtBe,SAASe,EAAepB,GAInC,IAJoC,SACvCK,GAGAL,EACA,OAAOM,EAAAA,EAAAA,KAAA,KAAGF,UAAU,mBAAkBC,SAAEA,GACzC,C,wDCJe,SAASgB,EAAmBrB,GAMvC,IANwC,MAC3CsB,EAAK,KACLC,GAIAvB,EACA,OACCG,EAAAA,EAAAA,MAAA,OAAKM,MAAO,CAAEe,QAAS,OAAQC,UAAW,QAASpB,SAAA,EAClDC,EAAAA,EAAAA,KAAA,OAAKF,UAAU,aAAYC,UAC1BC,EAAAA,EAAAA,KAAA,QAAMF,UAAU,+BAA8BC,SAAEiB,OAEjDhB,EAAAA,EAAAA,KAAA,OAAKF,UAAU,aAAYC,UAC1BC,EAAAA,EAAAA,KAACc,EAAAA,EAAe,CAAAf,SAAEkB,QAItB,C,wFCnBe,SAASG,EAAe1B,GAInC,IAJoC,SACvCK,GAGAL,EACA,OACCM,EAAAA,EAAAA,KAAA,MAAIG,MAAO,CAAEkB,UAAW,OAAQC,aAAc,UAAWvB,SAAEA,GAE7D,C,iCCCA,MAAMwB,EACL,+HAEc,SAASC,IACvB,IAAKC,EAAaC,GAAkBC,EAAAA,WAUpC,OANAA,EAAAA,WAAgB,KACfC,EAAAA,EACEC,YAAqC,gBACrCC,KAAKJ,EAAe,GACpB,KAGF7B,EAAAA,EAAAA,MAAAkC,EAAAA,SAAA,CAAAhC,SAAA,EACCC,EAAAA,EAAAA,KAACP,EAAAA,EAAI,CAACG,QAAQ,kBACdC,EAAAA,EAAAA,MAAA,QAAMC,UAAU,cAAaC,SAAA,EAC5BC,EAAAA,EAAAA,KAACoB,EAAe,CAAArB,SAAC,kBAEjBC,EAAAA,EAAAA,KAAA,UACCC,IAAKsB,EACLP,MAAM,eACNZ,MAAM,MACN4B,OAAO,SAGRhC,EAAAA,EAAAA,KAAA,UAEAH,EAAAA,EAAAA,MAACiB,EAAAA,EAAe,CAAAf,SAAA,CAAC,sNAIbC,EAAAA,EAAAA,KAAA,KAAAD,SAAG,mBAAkB,QAGzBC,EAAAA,EAAAA,KAACoB,EAAe,CAAArB,SAAC,4CAIhB0B,EACEA,EAAYQ,KAAKC,KAAKC,IACtBnC,EAAAA,EAAAA,KAACe,EAAAA,EAAmB,CACnBC,MAAOmB,EAAInB,MACXC,KAAMkB,EAAIC,MACLD,EAAIE,OAGV,MAEHrC,EAAAA,EAAAA,KAACO,EAAAA,EAAc,CAACC,KAAK,YAAWT,SAAC,uBAIrC,C","sources":["components/Hero.tsx","components/BlueButtonLink.tsx","components/StrongParagraph.tsx","components/ParagraphWithHeader.tsx","components/ParagraphHeader.tsx","pages/involved.tsx"],"sourcesContent":["import '../css/hero.css';\r\n\r\nexport default function Hero({\r\n\timageURL = '/images/hero.jpg',\r\n\theading = 'TJHSST SGA',\r\n}: {\r\n\timageURL?: string;\r\n\theading?: string;\r\n}) {\r\n\treturn (\r\n\t\t<div className='hero'>\r\n\t\t\t<span className='hero-heading'>{heading}</span>\r\n\t\t\t<img\r\n\t\t\t\tsrc={imageURL}\r\n\t\t\t\talt='Background'\r\n\t\t\t\tstyle={{\r\n\t\t\t\t\twidth: '100vw',\r\n\t\t\t\t\tmaxHeight: '60vh',\r\n\t\t\t\t\tobjectFit: 'contain',\r\n\t\t\t\t}}\r\n\t\t\t/>\r\n\t\t</div>\r\n\t);\r\n}\r\n","import { Link } from 'react-router-dom';\r\n\r\nexport default function BlueButtonLink({\r\n\thref,\r\n\tchildren,\r\n}: {\r\n\thref: string;\r\n\tchildren: React.ReactNode;\r\n}) {\r\n\tif (!href.startsWith('http')) {\r\n\t\treturn (\r\n\t\t\t<Link to={href} className='blue-button'>\r\n\t\t\t\t{children}\r\n\t\t\t</Link>\r\n\t\t);\r\n\t} else {\r\n\t\treturn (\r\n\t\t\t<a href={href} target='_blank' rel='noreferrer' className='blue-button'>\r\n\t\t\t\t{children}\r\n\t\t\t</a>\r\n\t\t);\r\n\t}\r\n}\r\n","export default function StrongParagraph({\r\n\tchildren,\r\n}: {\r\n\tchildren: React.ReactNode;\r\n}) {\r\n\treturn <p className='strong-paragraph'>{children}</p>;\r\n}\r\n","import StrongParagraph from './StrongParagraph';\r\n\r\nexport default function ParagraphWithHeader({\r\n\ttitle,\r\n\tbody,\r\n}: {\r\n\ttitle: string;\r\n\tbody: string;\r\n}) {\r\n\treturn (\r\n\t\t<div style={{ display: 'flex', textAlign: 'left' }}>\r\n\t\t\t<div className='flex-1 p-2'>\r\n\t\t\t\t<span className='paragraph-with-header-header'>{title}</span>\r\n\t\t\t</div>\r\n\t\t\t<div className='flex-2 p-2'>\r\n\t\t\t\t<StrongParagraph>{body}</StrongParagraph>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t);\r\n}\r\n","export default function ParagraphHeader({\r\n\tchildren,\r\n}: {\r\n\tchildren: React.ReactNode;\r\n}) {\r\n\treturn (\r\n\t\t<h2 style={{ marginTop: '4rem', marginBottom: '1.5rem' }}>{children}</h2>\r\n\t);\r\n}\r\n","import { SanityDocument } from '@sanity/client';\r\nimport React from 'react';\r\nimport BlueButtonLink from '../components/BlueButtonLink';\r\nimport Hero from '../components/Hero';\r\nimport ParagraphHeader from '../components/ParagraphHeader';\r\nimport ParagraphWithHeader from '../components/ParagraphWithHeader';\r\nimport StrongParagraph from '../components/StrongParagraph';\r\nimport sanity from '../sanity';\r\n\r\nconst SGA_CALENDAR_URL =\r\n\t'https://calendar.google.com/calendar/u/0/embed?src=mbftfg4hu7i8ueqrgcb5o7hc6k@group.calendar.google.com&ctz=America/New_York';\r\n\r\nexport default function GetInvolved() {\r\n\tlet [getInvolved, setGetInvolved] = React.useState<\r\n\t\tSanityDocument<SGA.GetInvolvedDocument> | undefined\r\n\t>();\r\n\r\n\tReact.useEffect(() => {\r\n\t\tsanity\r\n\t\t\t.getDocument<SGA.GetInvolvedDocument>('get_involved')\r\n\t\t\t.then(setGetInvolved);\r\n\t}, []);\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t<Hero heading='Get Involved' />\r\n\t\t\t<main className='text-center'>\r\n\t\t\t\t<ParagraphHeader>SGA Calendar</ParagraphHeader>\r\n\r\n\t\t\t\t<iframe\r\n\t\t\t\t\tsrc={SGA_CALENDAR_URL}\r\n\t\t\t\t\ttitle='SGA Calendar'\r\n\t\t\t\t\twidth='800'\r\n\t\t\t\t\theight='600'\r\n\t\t\t\t/>\r\n\r\n\t\t\t\t<br />\r\n\r\n\t\t\t\t<StrongParagraph>\r\n\t\t\t\t\tInterested in getting involved with SGA? You can run for office, work\r\n\t\t\t\t\ton a project, or apply to a committee. If you just want to share an\r\n\t\t\t\t\tidea or concern or get to know your representatives, reach out to us\r\n\t\t\t\t\tat <b>sga@tjhsst.edu</b>!\r\n\t\t\t\t</StrongParagraph>\r\n\r\n\t\t\t\t<ParagraphHeader>\r\n\t\t\t\t\tHere are some ways to connect with SGA:\r\n\t\t\t\t</ParagraphHeader>\r\n\r\n\t\t\t\t{getInvolved\r\n\t\t\t\t\t? getInvolved.ways.map((way) => (\r\n\t\t\t\t\t\t\t<ParagraphWithHeader\r\n\t\t\t\t\t\t\t\ttitle={way.title}\r\n\t\t\t\t\t\t\t\tbody={way.text}\r\n\t\t\t\t\t\t\t\tkey={way._id}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t ))\r\n\t\t\t\t\t: null}\r\n\r\n\t\t\t\t<BlueButtonLink href='/feedback'>Give Feedback</BlueButtonLink>\r\n\t\t\t</main>\r\n\t\t</>\r\n\t);\r\n}\r\n"],"names":["Hero","_ref","imageURL","heading","_jsxs","className","children","_jsx","src","alt","style","width","maxHeight","objectFit","BlueButtonLink","href","startsWith","target","rel","Link","to","StrongParagraph","ParagraphWithHeader","title","body","display","textAlign","ParagraphHeader","marginTop","marginBottom","SGA_CALENDAR_URL","GetInvolved","getInvolved","setGetInvolved","React","sanity","getDocument","then","_Fragment","height","ways","map","way","text","_id"],"sourceRoot":""} |