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
58 lines
1.9 KiB
TypeScript
58 lines
1.9 KiB
TypeScript
"use client";
|
|
|
|
import { motion } from "framer-motion";
|
|
import { Loader2, ImageOff } from "lucide-react";
|
|
import { useTheme } from "@/app/lib/ThemeContext";
|
|
import ImageGallery, { type GalleryImage } from "@/app/components/ui/ImageGallery";
|
|
|
|
interface Props {
|
|
loading: boolean;
|
|
images: GalleryImage[];
|
|
emptyMessage: string;
|
|
}
|
|
|
|
export default function EventGallerySection({ loading, images, emptyMessage }: Props) {
|
|
const { isDark } = useTheme();
|
|
const card = {
|
|
background: isDark ? "rgba(255,255,255,0.06)" : "#FFFFFF",
|
|
border: `1px solid ${isDark ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.07)"}`,
|
|
boxShadow: isDark ? "0 4px 24px rgba(0,0,0,0.35)" : "0 2px 16px rgba(0,0,0,0.07)",
|
|
borderRadius: "1.25rem",
|
|
};
|
|
const text = isDark ? "#FFFFFF" : "#1a1a1a";
|
|
const textMuted = isDark ? "rgba(255,255,255,0.6)" : "#6B6B6B";
|
|
|
|
if (loading) {
|
|
return (
|
|
<div className="px-4">
|
|
<div className="flex justify-center py-12" style={card}>
|
|
<motion.div animate={{ rotate: 360 }} transition={{ repeat: Infinity, duration: 0.8, ease: "linear" }}>
|
|
<Loader2 strokeWidth={2} className="w-6 h-6 stroke-tastefullyOrange" />
|
|
</motion.div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
if (!images.length) {
|
|
return (
|
|
<div className="px-4">
|
|
<div className="flex flex-col items-center justify-center py-12 text-center" style={card}>
|
|
<ImageOff strokeWidth={1.5} className="w-8 h-8 mb-2" style={{ stroke: textMuted }} />
|
|
<p className="text-sm font-semibold" style={{ color: text }}>Nothing here yet</p>
|
|
<p className="text-xs mt-0.5 px-8" style={{ color: textMuted }}>{emptyMessage}</p>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<div className="px-4">
|
|
<p className="text-xs font-bold tracking-widest uppercase mb-3" style={{ color: textMuted }}>
|
|
{images.length} Available
|
|
</p>
|
|
<ImageGallery images={images} />
|
|
</div>
|
|
);
|
|
}
|