mirror of
https://github.com/tjsga/tj-sga-website-react.git
synced 2025-04-21 03:50:18 -04:00
65 lines
1.7 KiB
TypeScript
65 lines
1.7 KiB
TypeScript
import { SanityDocument } from '@sanity/client';
|
|
import React from 'react';
|
|
import BlueButtonLink from '../components/BlueButtonLink';
|
|
import Hero from '../components/Hero';
|
|
import ParagraphHeader from '../components/ParagraphHeader';
|
|
import ParagraphWithHeader from '../components/ParagraphWithHeader';
|
|
import StrongParagraph from '../components/StrongParagraph';
|
|
import sanity from '../sanity';
|
|
|
|
const SGA_CALENDAR_URL =
|
|
'https://calendar.google.com/calendar/u/0/embed?src=mbftfg4hu7i8ueqrgcb5o7hc6k@group.calendar.google.com&ctz=America/New_York';
|
|
|
|
export default function GetInvolved() {
|
|
let [getInvolved, setGetInvolved] = React.useState<
|
|
SanityDocument<SGA.GetInvolvedDocument> | undefined
|
|
>();
|
|
|
|
React.useEffect(() => {
|
|
sanity
|
|
.getDocument<SGA.GetInvolvedDocument>('get_involved')
|
|
.then(setGetInvolved);
|
|
}, []);
|
|
|
|
return (
|
|
<>
|
|
<Hero heading='Get Involved' />
|
|
<main className='text-center'>
|
|
<ParagraphHeader>SGA Calendar</ParagraphHeader>
|
|
|
|
<iframe
|
|
src={SGA_CALENDAR_URL}
|
|
title='SGA Calendar'
|
|
width='800'
|
|
height='600'
|
|
/>
|
|
|
|
<br />
|
|
|
|
<StrongParagraph>
|
|
Interested in getting involved with SGA? You can run for office, work
|
|
on a project, or apply to a committee. If you just want to share an
|
|
idea or concern or get to know your representatives, reach out to us
|
|
at <b>sga@tjhsst.edu</b>!
|
|
</StrongParagraph>
|
|
|
|
<ParagraphHeader>
|
|
Here are some ways to connect with SGA:
|
|
</ParagraphHeader>
|
|
|
|
{getInvolved
|
|
? getInvolved.ways.map((way) => (
|
|
<ParagraphWithHeader
|
|
title={way.title}
|
|
body={way.text}
|
|
key={way._id}
|
|
/>
|
|
))
|
|
: null}
|
|
|
|
<BlueButtonLink href='/feedback'>Give Feedback</BlueButtonLink>
|
|
</main>
|
|
</>
|
|
);
|
|
}
|