mirror of
https://github.com/tjsga/tj-sga-website-react.git
synced 2025-04-18 18:50:16 -04:00
Add constants.ts
This commit is contained in:
parent
35a8cefc14
commit
719f72c032
8
src/lib/constants.ts
Normal file
8
src/lib/constants.ts
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
export const SGA_CALENDAR_URL =
|
||||||
|
'https://calendar.google.com/calendar/u/0/embed?src=mbftfg4hu7i8ueqrgcb5o7hc6k@group.calendar.google.com&ctz=America/New_York';
|
||||||
|
export const SGA_NEWSLETTER_EMBED_URL =
|
||||||
|
'https://us2.campaign-archive.com/home/?u=134be29b2a12819f7bfe30a34&id=6620cb91e2';
|
||||||
|
export const SGA_FEEDBACK_FORM_URL =
|
||||||
|
'https://docs.google.com/forms/d/e/1FAIpQLSeO8CN666WSb-jw0johyLMLb00rFz-bCtXaPeWpTSvbSqBBLw/viewform?embedded=true';
|
||||||
|
export const SGA_PREVIOUS_LEADERSHIP_URL =
|
||||||
|
'https://docs.google.com/spreadsheets/d/1a3RYdqrDi1IPG9BKWQ2xhoX3YCPQKUl_FsRLvIVEMPg/edit?usp=drive_open&ouid=0';
|
|
@ -1,8 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Hero from '../components/Hero';
|
import Hero from '../components/Hero';
|
||||||
|
import { SGA_FEEDBACK_FORM_URL } from '../lib/constants';
|
||||||
const feedbackFormURL =
|
|
||||||
'https://docs.google.com/forms/d/e/1FAIpQLSeO8CN666WSb-jw0johyLMLb00rFz-bCtXaPeWpTSvbSqBBLw/viewform?embedded=true';
|
|
||||||
|
|
||||||
export default function FeedbackPage() {
|
export default function FeedbackPage() {
|
||||||
return (
|
return (
|
||||||
|
@ -10,7 +8,7 @@ export default function FeedbackPage() {
|
||||||
<Hero heading='Feedback' />
|
<Hero heading='Feedback' />
|
||||||
<main className='text-center'>
|
<main className='text-center'>
|
||||||
<iframe
|
<iframe
|
||||||
src={feedbackFormURL}
|
src={SGA_FEEDBACK_FORM_URL}
|
||||||
style={{
|
style={{
|
||||||
width: '640px',
|
width: '640px',
|
||||||
height: '900px',
|
height: '900px',
|
||||||
|
|
|
@ -7,6 +7,9 @@ import ParagraphWithHeader from '../components/ParagraphWithHeader';
|
||||||
import StrongParagraph from '../components/StrongParagraph';
|
import StrongParagraph from '../components/StrongParagraph';
|
||||||
import sanity from '../sanity';
|
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() {
|
export default function GetInvolved() {
|
||||||
let [getInvolved, setGetInvolved] = React.useState<
|
let [getInvolved, setGetInvolved] = React.useState<
|
||||||
SanityDocument<SGA.GetInvolvedDocument> | undefined
|
SanityDocument<SGA.GetInvolvedDocument> | undefined
|
||||||
|
@ -25,7 +28,7 @@ export default function GetInvolved() {
|
||||||
<ParagraphHeader>SGA Calendar</ParagraphHeader>
|
<ParagraphHeader>SGA Calendar</ParagraphHeader>
|
||||||
|
|
||||||
<iframe
|
<iframe
|
||||||
src='https://calendar.google.com/calendar/u/0/embed?src=mbftfg4hu7i8ueqrgcb5o7hc6k@group.calendar.google.com&ctz=America/New_York'
|
src={SGA_CALENDAR_URL}
|
||||||
title='SGA Calendar'
|
title='SGA Calendar'
|
||||||
width='800'
|
width='800'
|
||||||
height='600'
|
height='600'
|
||||||
|
|
|
@ -5,6 +5,7 @@ import '../css/mission.css';
|
||||||
import BlueButtonLink from '../components/BlueButtonLink';
|
import BlueButtonLink from '../components/BlueButtonLink';
|
||||||
import Centered from '../components/Centered';
|
import Centered from '../components/Centered';
|
||||||
import ParagraphWithHeader from '../components/ParagraphWithHeader';
|
import ParagraphWithHeader from '../components/ParagraphWithHeader';
|
||||||
|
import { SGA_PREVIOUS_LEADERSHIP_URL } from '../lib/constants';
|
||||||
|
|
||||||
function MissionQuote({ text, author }) {
|
function MissionQuote({ text, author }) {
|
||||||
return (
|
return (
|
||||||
|
@ -17,9 +18,6 @@ function MissionQuote({ text, author }) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const previousLeadershipLink =
|
|
||||||
'https://docs.google.com/spreadsheets/d/1a3RYdqrDi1IPG9BKWQ2xhoX3YCPQKUl_FsRLvIVEMPg/edit?usp=drive_open&ouid=0';
|
|
||||||
|
|
||||||
export default function Mission() {
|
export default function Mission() {
|
||||||
let mission = useMission();
|
let mission = useMission();
|
||||||
|
|
||||||
|
@ -38,7 +36,7 @@ export default function Mission() {
|
||||||
<ParagraphWithHeader title='Inspiration' body={mission.inspiration} />
|
<ParagraphWithHeader title='Inspiration' body={mission.inspiration} />
|
||||||
|
|
||||||
<Centered>
|
<Centered>
|
||||||
<BlueButtonLink href={previousLeadershipLink}>
|
<BlueButtonLink href={SGA_PREVIOUS_LEADERSHIP_URL}>
|
||||||
Previous Leadership
|
Previous Leadership
|
||||||
</BlueButtonLink>
|
</BlueButtonLink>
|
||||||
</Centered>
|
</Centered>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user