Backend modules from tastefully 8bd93d15: core-libs, core-session, api-gateway, mobile-api, services-auth, services-system, services-counter, services-member, services-log, services-email. solvway-admin-portal from babyboo f64d096ea, solvway-customer-portal from tastefully 8bd93d15. Copied as tracked files only. Literal secrets replaced with environment placeholders: - services-email: SMTP_PASSWORD, MAILGUN_API_KEY, SENDGRID_API_KEY, MAILJET_API_KEY, MAILJET_SECRET_KEY (optional, empty default) - services-system: JUMIO_TOKEN, JUMIO_SECRET (optional) - services-auth: USER_AUTH_API_SECRET (required); commented JWT secret removed - core-libs: JWT_TOKEN default removed (required), XXL_JOB_TOKEN default removed, ipgeolocation key read from IPGEOLOCATION_API_KEY - services-system EkycAppConfig: commented Jumio credentials removed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
86 lines
3.3 KiB
TypeScript
86 lines
3.3 KiB
TypeScript
"use client";
|
|
|
|
import { useState, useEffect } from "react";
|
|
import { motion } from "framer-motion";
|
|
import { Map } from "lucide-react";
|
|
import { useTheme } from "@/app/lib/ThemeContext";
|
|
import { type GalleryImage } from "@/app/components/ui/ImageGallery";
|
|
import EventGallerySection from "@/app/components/ui/EventGallerySection";
|
|
import { apiGet } from "@/app/lib/clientApi";
|
|
import type { CurrentEventConfig } from "@/app/lib/types";
|
|
|
|
const FLOORPLAN_META = {
|
|
id: "fp-full",
|
|
title: "Full Floor Plan",
|
|
subtitle: "Complete venue layout",
|
|
gradient: "linear-gradient(145deg, #C94D00 0%, #A83F00 100%)",
|
|
};
|
|
|
|
export default function FloorPlanPage() {
|
|
const { isDark } = useTheme();
|
|
const [images, setImages] = useState<GalleryImage[]>([]);
|
|
const [loading, setLoading] = useState(true);
|
|
|
|
useEffect(() => {
|
|
apiGet<CurrentEventConfig>("/api/event/current-config")
|
|
.then((c) => setImages(c.currentEventFloorPlan ? [{ ...FLOORPLAN_META, src: c.currentEventFloorPlan }] : []))
|
|
.catch(() => {})
|
|
.finally(() => setLoading(false));
|
|
}, []);
|
|
|
|
const t = {
|
|
text: isDark ? "#FFFFFF" : "#1a1a1a",
|
|
textMuted: isDark ? "rgba(255,255,255,0.6)" : "#6B6B6B",
|
|
card: isDark ? "rgba(255,255,255,0.06)" : "#FFFFFF",
|
|
border: isDark ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.07)",
|
|
shadow: isDark
|
|
? "0 4px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06)"
|
|
: "0 2px 16px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04)",
|
|
};
|
|
|
|
return (
|
|
<div className="min-h-full pt-5 pb-28 space-y-5" style={{ background: "var(--bg-primary)" }}>
|
|
{/* Hero */}
|
|
<motion.div
|
|
initial={{ opacity: 0, y: -10 }}
|
|
animate={{ opacity: 1, y: 0 }}
|
|
transition={{ type: "spring", stiffness: 320, damping: 26 }}
|
|
className="relative rounded-2xl overflow-hidden mx-4"
|
|
style={{
|
|
background: t.card,
|
|
border: `1px solid ${t.border}`,
|
|
boxShadow: t.shadow,
|
|
}}
|
|
>
|
|
<div className="absolute inset-0 wave-animate pointer-events-none" />
|
|
<div
|
|
className="absolute inset-y-0 right-0 w-2/3 pointer-events-none"
|
|
style={{ background: "radial-gradient(ellipse at right center, rgba(255,107,0,0.12) 0%, transparent 70%)" }}
|
|
/>
|
|
<div className="relative px-5 pt-5 pb-4">
|
|
<div className="flex items-center gap-2 mb-2">
|
|
<div
|
|
className="w-8 h-8 rounded-xl flex items-center justify-center"
|
|
style={{ background: "rgba(255,107,0,0.12)", border: "1px solid rgba(255,107,0,0.2)" }}
|
|
>
|
|
<Map strokeWidth={2} className="w-4 h-4 stroke-tastefullyOrange" />
|
|
</div>
|
|
<p className="text-xs font-black tracking-[0.2em] uppercase" style={{ color: "var(--orange-text)" }}>
|
|
Venue
|
|
</p>
|
|
</div>
|
|
<h1 className="text-3xl font-black tracking-tight leading-none" style={{ color: t.text }}>
|
|
Floor Plan
|
|
</h1>
|
|
<p className="text-sm mt-1.5" style={{ color: t.textMuted }}>
|
|
Download venue maps and find your way around
|
|
</p>
|
|
</div>
|
|
</motion.div>
|
|
|
|
{/* Gallery */}
|
|
<EventGallerySection loading={loading} images={images} emptyMessage="The floor plan will appear once an event is live." />
|
|
</div>
|
|
);
|
|
}
|