mirror of
https://github.com/tjsga/tj-sga-website-react.git
synced 2025-04-03 20:00:17 -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 Hero from '../components/Hero';
|
||||
|
||||
const feedbackFormURL =
|
||||
'https://docs.google.com/forms/d/e/1FAIpQLSeO8CN666WSb-jw0johyLMLb00rFz-bCtXaPeWpTSvbSqBBLw/viewform?embedded=true';
|
||||
import { SGA_FEEDBACK_FORM_URL } from '../lib/constants';
|
||||
|
||||
export default function FeedbackPage() {
|
||||
return (
|
||||
|
@ -10,7 +8,7 @@ export default function FeedbackPage() {
|
|||
<Hero heading='Feedback' />
|
||||
<main className='text-center'>
|
||||
<iframe
|
||||
src={feedbackFormURL}
|
||||
src={SGA_FEEDBACK_FORM_URL}
|
||||
style={{
|
||||
width: '640px',
|
||||
height: '900px',
|
||||
|
|
|
@ -7,6 +7,9 @@ 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
|
||||
|
@ -25,7 +28,7 @@ export default function GetInvolved() {
|
|||
<ParagraphHeader>SGA Calendar</ParagraphHeader>
|
||||
|
||||
<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'
|
||||
width='800'
|
||||
height='600'
|
||||
|
|
|
@ -5,6 +5,7 @@ import '../css/mission.css';
|
|||
import BlueButtonLink from '../components/BlueButtonLink';
|
||||
import Centered from '../components/Centered';
|
||||
import ParagraphWithHeader from '../components/ParagraphWithHeader';
|
||||
import { SGA_PREVIOUS_LEADERSHIP_URL } from '../lib/constants';
|
||||
|
||||
function MissionQuote({ text, author }) {
|
||||
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() {
|
||||
let mission = useMission();
|
||||
|
||||
|
@ -38,7 +36,7 @@ export default function Mission() {
|
|||
<ParagraphWithHeader title='Inspiration' body={mission.inspiration} />
|
||||
|
||||
<Centered>
|
||||
<BlueButtonLink href={previousLeadershipLink}>
|
||||
<BlueButtonLink href={SGA_PREVIOUS_LEADERSHIP_URL}>
|
||||
Previous Leadership
|
||||
</BlueButtonLink>
|
||||
</Centered>
|
||||
|
|
Loading…
Reference in New Issue
Block a user