diff --git a/src/components/SpotlightCard.jsx b/src/components/SpotlightCard.jsx index 99be2ce..2d78cbb 100644 --- a/src/components/SpotlightCard.jsx +++ b/src/components/SpotlightCard.jsx @@ -1,6 +1,6 @@ import React, { useRef, useState } from 'react'; -export const SpotlightCard = ({ children, className = "", spotlightColor = "rgba(255, 255, 255, 0.25)" }) => { +export const SpotlightCard = ({ children, className = "", spotlightColor = "rgba(255, 255, 255, 0.25)", rounded = "rounded-3xl" }) => { const divRef = useRef(null); const [position, setPosition] = useState({ x: 0, y: 0 }); const [opacity, setOpacity] = useState(0); @@ -30,6 +30,11 @@ export const SpotlightCard = ({ children, className = "", spotlightColor = "rgba setOpacity(0); }; + // Calculate inner rounding based on outer rounding + // If rounded-3xl (24px), inner should be ~22px + // If rounded-none (0px), inner should be 0px + const innerRounded = rounded === "rounded-none" ? "rounded-none" : "rounded-[22px]"; + return (
+
{/* Surface Shine (Subtle top sheen) */}
- + {/* Header */}
@@ -294,7 +294,7 @@ const PropertyDetailDrawer = ({ isOpen, onClose, data, newLocation, onSave, load