From cf1f697c702759650dbb3d90495651db5a17aec7 Mon Sep 17 00:00:00 2001 From: kanchan sharma Date: Tue, 7 Apr 2026 22:26:57 +0530 Subject: [PATCH 1/4] feat: add offline purchase information for DJ Evening event --- src/views/events/EventDetailView.js | 36 ++++++++++++++++++++++++++++ src/views/home/DJHighlightSection.js | 12 ++++++++++ 2 files changed, 48 insertions(+) diff --git a/src/views/events/EventDetailView.js b/src/views/events/EventDetailView.js index d00622f..87abadd 100644 --- a/src/views/events/EventDetailView.js +++ b/src/views/events/EventDetailView.js @@ -710,6 +710,42 @@ export default function EventDetailView() { )} + {/* Passes Info - Only for DJ Evening */} + {event.department_id === 17 && ( + + + + + + + + Purchase Information + + + + Passes will be sold offline. + + + )} + {/* Brief */} {details.brief && ( + + Passes will be sold offline + + )} From dd68c2e92efedd5bfe5818b83e663944a7f899f4 Mon Sep 17 00:00:00 2001 From: kanchan sharma Date: Tue, 7 Apr 2026 23:34:04 +0530 Subject: [PATCH 3/4] updated the event section --- src/pages/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/pages/index.js b/src/pages/index.js index 8cd6f88..cb1244d 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -9,7 +9,6 @@ import HeroSection from 'src/views/home/HeroSection' import SponsorsSection from 'src/views/home/SponsorsSection' import FeaturedEvents from 'src/views/home/FeaturedEvents' -import DJHighlightSection from 'src/views/home/DJHighlightSection' import PublicFooter from 'src/views/home/PublicFooter' import { fetchHomeData } from 'src/store/slices/eventsSlice' @@ -53,7 +52,6 @@ const Home = () => { {/**/} - From c1e08bab7621e338a28f274f25a6e002a85049f4 Mon Sep 17 00:00:00 2001 From: kanchan sharma Date: Tue, 7 Apr 2026 23:44:32 +0530 Subject: [PATCH 4/4] removed the dj highlight section --- src/views/home/DJHighlightSection.js | 232 --------------------------- 1 file changed, 232 deletions(-) delete mode 100644 src/views/home/DJHighlightSection.js diff --git a/src/views/home/DJHighlightSection.js b/src/views/home/DJHighlightSection.js deleted file mode 100644 index 790f91c..0000000 --- a/src/views/home/DJHighlightSection.js +++ /dev/null @@ -1,232 +0,0 @@ -import { useEffect, useState } from 'react' -import { useRouter } from 'next/router' -import Box from '@mui/material/Box' -import Container from '@mui/material/Container' -import Typography from '@mui/material/Typography' -import Button from '@mui/material/Button' -import Skeleton from '@mui/material/Skeleton' -import { alpha } from '@mui/material/styles' -import { motion } from 'framer-motion' -import { useAppPalette } from 'src/components/palette' -import Icon from 'src/components/Icon' -import axios from 'axios' - -const MotionBox = motion(Box) - -const DJ_EVENT_NAME = 'DJ EVEONICS' - -function getEventImage(event) { - if (event?.images && Array.isArray(event.images) && event.images.length > 0) { - const img = event.images[0] - return typeof img === 'string' ? img : img?.url || null - } - return null -} - -export default function DJHighlightSection() { - const c = useAppPalette() - const router = useRouter() - const [event, setEvent] = useState(null) - const [loading, setLoading] = useState(true) - - useEffect(() => { - let cancelled = false - axios - .get(`/api/events?name=${encodeURIComponent(DJ_EVENT_NAME)}&limit=1`) - .then(res => { - if (cancelled) return - const events = res.data?.data || [] - if (events.length > 0) setEvent(events[0]) - }) - .catch(() => {}) - .finally(() => { if (!cancelled) setLoading(false) }) - return () => { cancelled = true } - }, []) - - // Don't render anything if no DJ event found - if (!loading && !event) return null - - const imageUrl = event ? getEventImage(event) : null - const accent = c.primary - - return ( - - {/* Subtle background glow */} - - - - {/* Section heading */} - - - Don't Miss - - - The DJ Evening - - - - {/* Event card */} - - {/* Image */} - - {loading ? ( - - ) : imageUrl ? ( - - ) : ( - - )} - - - {/* Bottom bar with name + button */} - - {loading ? ( - <> - - - - ) : ( - <> - - {event?.name || 'DJ Evening'} - - - {event?.name === DJ_EVENT_NAME && ( - - Passes will be sold offline - - )} - - - - )} - - - - - ) -}