From 105646c469420dc1c4bff8388d61571a877b3480 Mon Sep 17 00:00:00 2001 From: Nicole Zonnenberg Date: Mon, 17 Jul 2023 15:11:48 -0400 Subject: [PATCH] add event modal --- .../assets/styles/components/schedule.scss | 7 +++ frontend/components/FaveCard.tsx | 49 +++++++++++-------- 2 files changed, 35 insertions(+), 21 deletions(-) diff --git a/frontend/assets/styles/components/schedule.scss b/frontend/assets/styles/components/schedule.scss index eb7f6d93..bcbbb9d8 100644 --- a/frontend/assets/styles/components/schedule.scss +++ b/frontend/assets/styles/components/schedule.scss @@ -22,6 +22,7 @@ .badge-container { display: flex; + flex-wrap: wrap; padding: 15px 5px 0 5px; } @@ -71,6 +72,12 @@ font-size: 15px; } + .badges-and-details { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + } + .fave-badge { border-radius: 5px 5px; display: flex; diff --git a/frontend/components/FaveCard.tsx b/frontend/components/FaveCard.tsx index 41a62424..c40227eb 100644 --- a/frontend/components/FaveCard.tsx +++ b/frontend/components/FaveCard.tsx @@ -14,6 +14,8 @@ import DoNotDisturbIcon from '@mui/icons-material/DoNotDisturb'; import CalendarMonthIcon from '@mui/icons-material/CalendarMonth'; import DesignServicesIcon from '@mui/icons-material/DesignServices'; +import EventModal from '@/components/EventModal'; + import { NewEvent } from '@/assets/interfaces'; import findEvent from '@/helpers/findEvent'; @@ -37,6 +39,7 @@ export default function FaveCard ({ favoriteEvent }: { favoriteEvent: NewEvent } endTime, gameId, gameSystem, + id, location, materials, room, @@ -119,27 +122,31 @@ export default function FaveCard ({ favoriteEvent }: { favoriteEvent: NewEvent } {descriptionShort} - - {!ticketsAvailable && ( -
- Event Sold Out -
- )} - {endDate != startDate && ( -
- Ends on a Different Day -
- )} - {materials && ( -
- Materials Required -
- )} - {tournament && ( -
- Tournament -
- )} + +
+ {!ticketsAvailable && ( +
+ Event Sold Out +
+ )} + {endDate != startDate && ( +
+ Ends on a Different Day +
+ )} + {materials && ( +
+ Materials Required +
+ )} + {tournament && ( +
+ Tournament +
+ )} +
+ +