Add transparent BG behind event popup
"X" button spacing/transparency.
This commit is contained in:
@@ -231,12 +231,12 @@ const Calendar = () => {
|
||||
|
||||
<div
|
||||
ref={containerRef}
|
||||
className="flex-1 overflow-hidden bg-gradient-to-br from-[#f5f3ff] to-[#ede9fe]"
|
||||
className={`flex-1 ${isMobile ? 'overflow-hidden' : 'overflow-y-auto'} bg-gradient-to-br from-[#f5f3ff] to-[#ede9fe]`}
|
||||
onTouchStart={handleTouchStart}
|
||||
onTouchMove={handleTouchMove}
|
||||
onTouchEnd={handleTouchEnd}
|
||||
>
|
||||
<div className={`flex ${!isMobile && 'gap-4'} h-full p-4`}>
|
||||
<div className={`flex ${!isMobile && 'gap-4'} ${isMobile ? 'h-full' : 'min-h-full'} p-4`}>
|
||||
{isMobile ? (
|
||||
<motion.div
|
||||
className="flex h-full"
|
||||
|
||||
@@ -22,14 +22,14 @@ const EventModal = ({ event, date, onClose }: EventModalProps) => {
|
||||
return (
|
||||
<AnimatePresence>
|
||||
<motion.div
|
||||
className="fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center"
|
||||
className="fixed inset-0 bg-black/50 z-50 flex items-center justify-center"
|
||||
onClick={onClose}
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
exit={{ opacity: 0 }}
|
||||
>
|
||||
<motion.div
|
||||
className="bg-white rounded-lg p-6 max-w-md w-full relative"
|
||||
className="bg-white/95 backdrop-blur-sm rounded-lg p-8 max-w-lg w-full relative"
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
initial={{ scale: 0.95 }}
|
||||
animate={{ scale: 1 }}
|
||||
@@ -37,11 +37,11 @@ const EventModal = ({ event, date, onClose }: EventModalProps) => {
|
||||
>
|
||||
<button
|
||||
onClick={onClose}
|
||||
className="absolute top-4 right-4 text-gray-500 hover:text-gray-700 transition-colors"
|
||||
className="absolute top-2 right-2 bg-transparent rounded-full p-1.5 text-gray-500 hover:text-gray-700 transition-colors"
|
||||
>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className="h-6 w-6"
|
||||
className="h-5 w-5"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
@@ -59,7 +59,7 @@ const EventModal = ({ event, date, onClose }: EventModalProps) => {
|
||||
<img
|
||||
src={event.imageUrl}
|
||||
alt={event.title}
|
||||
className="w-full h-48 object-cover rounded-lg mb-4"
|
||||
className="w-full h-56 object-cover rounded-lg mb-4 mt-2"
|
||||
/>
|
||||
)}
|
||||
<motion.h2 className="text-lg mb-4 font-sans">{event.title}</motion.h2>
|
||||
|
||||
Reference in New Issue
Block a user