Skip to content

Commit b2ab6c7

Browse files
Hemang360WasThatRudy
authored andcommitted
Add Venue Announement card
1 parent cd38c5d commit b2ab6c7

3 files changed

Lines changed: 86 additions & 0 deletions

File tree

components/registration/dashboard-container.tsx

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import {
1515
Check,
1616
Search,
1717
ArrowRight,
18+
MapPin,
19+
ExternalLink,
1820
} from "lucide-react";
1921
import { FormSection } from "./form-section";
2022
import { Button } from "./button";
@@ -111,6 +113,7 @@ export function DashboardContainer() {
111113
const [memberToRemove, setMemberToRemove] = useState<{ id: string; name: string } | null>(null);
112114
const [transferOwnershipDialogOpen, setTransferOwnershipDialogOpen] = useState(false);
113115
const [showWelcomeBanner, setShowWelcomeBanner] = useState(false);
116+
const [showVenueBanner, setShowVenueBanner] = useState(false);
114117

115118
const handleRespondToInvite = async (requestId: string, action: 'accept' | 'decline') => {
116119
try {
@@ -156,6 +159,9 @@ export function DashboardContainer() {
156159
if (!welcomeBannerDismissed) {
157160
setShowWelcomeBanner(true);
158161
}
162+
if (user && user.role === 'user') {
163+
setShowVenueBanner(true);
164+
}
159165

160166
if (!isAuthenticated || !user) {
161167
router.push("/login");
@@ -834,6 +840,86 @@ export function DashboardContainer() {
834840
</div>
835841
</div>
836842
)}
843+
{showVenueBanner && user && user.role === 'user' && (
844+
<div className="relative backdrop-blur-[2.5px] backdrop-filter bg-[rgba(255,77,0,0.15)] rounded-[15px] p-[20px] border border-[#ff4d00]">
845+
<div className="flex flex-col gap-[16px]">
846+
<div className="flex items-center justify-center">
847+
<h3 className="text-[26px] text-white font-semibold" style={{ fontFamily: 'var(--font-heading)' }}>
848+
Venue Announcement 🎉
849+
</h3>
850+
</div>
851+
852+
{/* Main Content: Text on Left, Images on Right */}
853+
<div className="flex flex-col md:flex-row gap-[16px] items-start">
854+
{/* Left Side - Text Content */}
855+
<div className="flex-1 flex flex-col space-y-[16px] text-white" style={{ fontFamily: 'var(--font-body)' }}>
856+
<p className="text-[28px] leading-[44px]">
857+
<span className="font-semibold text-[#ff4d00]">IndiQube South Summit</span>
858+
</p>
859+
860+
<div className="space-y-[16px] text-[14px] opacity-90 leading-[20px]">
861+
<p className="font-semibold text-[16px] text-white mb-2">How to reach?</p>
862+
863+
<div className="flex items-start gap-[8px]">
864+
<MapPin className="w-4 h-4 text-[#ff4d00] flex-shrink-0 mt-0.5" />
865+
<div>
866+
<p className="font-semibold mb-1">Metro:</p>
867+
<p>Get down at <span className="text-[#ff4d00] font-semibold">South End Circle</span> and it's a 3 min walk from there.</p>
868+
</div>
869+
</div>
870+
871+
<div className="flex items-start gap-[8px]">
872+
<MapPin className="w-4 h-4 text-[#ff4d00] flex-shrink-0 mt-0.5" />
873+
<div>
874+
<p className="font-semibold mb-1">Train:</p>
875+
<p>6 kilometers from <span className="text-[#ff4d00] font-semibold">KSR Railway Station</span>.</p>
876+
</div>
877+
</div>
878+
879+
<div className="flex items-start gap-[8px]">
880+
<MapPin className="w-4 h-4 text-[#ff4d00] flex-shrink-0 mt-0.5" />
881+
<div>
882+
<p className="font-semibold mb-1">Bus:</p>
883+
<p>6 kilometers from <span className="text-[#ff4d00] font-semibold">Majestic Bus Stand</span>.</p>
884+
</div>
885+
</div>
886+
</div>
887+
<div className="pt-[4px]">
888+
<a
889+
href="https://maps.app.goo.gl/FFzoKB9xHtp5PUEe8"
890+
target="_blank"
891+
rel="noopener noreferrer"
892+
className="inline-flex items-center gap-2 bg-[#ff4d00] hover:bg-[#ff6600] text-white font-medium px-6 py-3 rounded-xl transition-all duration-200 shadow-[0_0_15px_rgba(255,77,0,0.4)] hover:shadow-[0_0_20px_rgba(255,77,0,0.6)]"
893+
style={{ fontFamily: 'var(--font-body)' }}
894+
>
895+
<ExternalLink className="w-4 h-4" />
896+
Open in Google Maps
897+
</a>
898+
</div>
899+
</div>
900+
901+
<div className="flex-shrink-0 w-full md:w-[300px] space-y-[12px]">
902+
<div className="w-full rounded-xl overflow-hidden border border-white/10 shadow-lg">
903+
<img
904+
src="/images/ext.png"
905+
alt="IndiQube South Summit - Exterior"
906+
className="w-full h-auto object-cover"
907+
loading="lazy"
908+
/>
909+
</div>
910+
<div className="w-full rounded-xl overflow-hidden border border-white/10 shadow-lg">
911+
<img
912+
src="/images/int.png"
913+
alt="IndiQube South Summit - Interior"
914+
className="w-full h-auto object-cover"
915+
loading="lazy"
916+
/>
917+
</div>
918+
</div>
919+
</div>
920+
</div>
921+
</div>
922+
)}
837923

838924
{/* Header */}
839925
<div className="flex flex-col gap-[12px] items-center text-center">

public/images/ext.png

232 KB
Loading

public/images/int.png

235 KB
Loading

0 commit comments

Comments
 (0)