Skip to content

Commit

Permalink
feat: add maps to location info (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
glitchedmob authored Oct 11, 2024
1 parent 9097fe0 commit 18bd20d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 7 additions & 6 deletions frontend/src/components/contentBlocks/LocationBlock.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Fragment } from 'react';
import { SectionTitleBar } from '@/components/SectionTitleBar';
import { BUILDING_MAP, PARKING_MAP } from '@/config';

export interface IDetailSection {
heading: string;
Expand All @@ -13,7 +14,12 @@ export function LocationBlock() {
{
heading: 'Event Location',
content:
'<a target="_blank" href="https://maps.app.goo.gl/ZHNKbCreeTA3spxR9">405 N Jefferson Ave, Springfield, MO 65806</a>',
'<a target="_blank" href="https://maps.app.goo.gl/ZHNKbCreeTA3spxR9">405 N Jefferson Ave, Springfield, MO 65806</a><br>' +
`<a href="${BUILDING_MAP}">Building Map</a>`,
},
{
heading: 'Parking',
content: `<p>There is free on-site parking at the event location.<br><a href="${PARKING_MAP}">Parking Map</a></p>`,
},
{
heading: 'Airport',
Expand All @@ -36,11 +42,6 @@ export function LocationBlock() {
'<a target="_blank" href="https://www.marriott.com/hotels/travel/sgfts-towneplace-suites-springfield/">TownePlace Suites by Marriott Springfield</a> <br>' +
'<a target="_blank" href="https://doubletree3.hilton.com/en/hotels/missouri/doubletree-by-hilton-hotel-springfield-SGFDTDT/index.html">DoubleTree by Hilton</a>',
},
{
heading: 'Parking',
content:
'<p>There is free on-site parking at the event location.</p>',
},
];

return (
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ export const APPLE_APP_STORE_LINK =
'https://apps.apple.com/us/app/method-conf/id1498359521';
export const GOOGLE_PLAY_STORE_LINK =
'https://play.google.com/store/apps/details?id=com.sgfdevs.methodConfApp';
export const BUILDING_MAP =
'https://cms.methodconf.com/media/wixhir55/building-map.pdf';
export const PARKING_MAP =
'https://cms.methodconf.com/media/pw1lyaa4/parking-map.pdf';

export const NEWSLETTER_ENDPOINT = parseUrl(process.env.NEWSLETTER_ENDPOINT);
export const NEWSLETTER_LIST_ID = process.env.NEWSLETTER_LIST_ID;
Expand Down

0 comments on commit 18bd20d

Please sign in to comment.