Skip to content

Commit

Permalink
fall 2023 barcrawl sales (#97)
Browse files Browse the repository at this point in the history
* add fall 2023 bar crawl shirt

* Add current events

* fix events

---------

Co-authored-by: Dev Singh <[email protected]>
  • Loading branch information
jlevine18 and devksingh4 authored Oct 30, 2023
1 parent f2c4c9f commit 7e227c5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 16 deletions.
Binary file added public/img/bar_crawl_fa23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 15 additions & 14 deletions src/components/Hero/events.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
[
{
"title": "Game Night",
"description": "Come out for a night of games, friends, food, and fun! Dinner will be provided!",
"date": "08/30/2023 17:30:00 (CST)",
"description": "Beat your favorite infra chair at games such as Spades and Power Grid!",
"date": "11/04/2023 17:30:00 (CST)",
"location": "ACM Room (1104 Siebel)",
"locationLink": "https://goo.gl/maps/wNCKLPyyp47wQUSY7",
"paidEventId": ""
},
{
"title": "ACM x WCS Field Day",
"description": "Have fun under the (shade) and sun! There will be food, large group competitions, small games, and opportunities to win prizes.",
"date": "08/31/2023 17:30:00 (CST)",
"location": "Illini Grove",
"locationLink": "https://goo.gl/maps/gm2EPeed6gqUcGoH8",
"paidEventId": ""
"title": "Bar Crawl",
"description": "Join ACM and meet your fellow members as we visit KAMS, Joe's, and Legends on our semesterly bar crawl! Get a free t-shirt with sign-up! Alcohol will be provided by ACM to members over 21 wearing bar crawl t-shirts.",
"date": "11/09/2023 19:00:00 (CST)",
"location": "Murphy's Pub",
"locationLink": "https://maps.app.goo.gl/ZGaNLdSNr2LhrpHJA",
"paidEventId": "fa23_barcrawl"
},
{
"title": "ACM Open House",
"description": "Come learn about everything you can get involved with at ACM, including our Special Interest Groups, Committees and Partner Orgs! Afterwards, grab some free pizza and talk with SIGs and other ACM members.",
"date": "09/05/2023 18:30:00 (CST)",
"location": "CIF 0027/0035",
"locationLink": "https://goo.gl/maps/qQ9UpXHt2Y5U4zkG9",
"paidEventId": ""
"title": "Weekly Happy Hour",
"description": "Join ACM and chat with some of your fellow members! Enjoy free food on us as you get a chance to know your peers better!",
"date": "11/03/2023 17:00:00 (CST)",
"repeats": "Week",
"location": "Legends",
"locationLink": "https://goo.gl/maps/CXESXd3otbGZNqFP7",
"paidEventId" : ""
}
]
12 changes: 10 additions & 2 deletions src/pages/membership/Event.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,26 @@ const Event = () => {
setErrorMessage(null);
};
const metaLoader = async () => {
const url = `https://peakaueyvejduwiijhydvpwa640ehekr.lambda-url.us-east-1.on.aws/?eventid=${eventName}`;
const url = `https://ticketing.acm.illinois.edu/api/v1/event/details?eventid=${eventName}`;
axios.get(url).then(response => {
setPaidEventList(response.data);
})
.catch((error) => {
if (error.response && error.response.status === 404) {
setErrorMessage({
code: 404,
message: error.response.data.message
});
}
})
}
useEffect(() => {
metaLoader();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const purchaseHandler = () => {
setIsLoading(true);
const url = `https://lz6glqwonfyx5dcmfjtlbqd6hm0fnrrd.lambda-url.us-east-1.on.aws?netid=${netId}&eventid=${eventName}`;
const url = `https://ticketing.acm.illinois.edu/api/v1/checkout/session?netid=${netId}&eventid=${eventName}`;
axios.get(url).then(response => {
window.location.replace(response.data);
}).catch((error) => {
Expand Down

0 comments on commit 7e227c5

Please sign in to comment.