diff --git a/src/components/drag-drop-container.tsx b/src/components/drag-drop-container.tsx index 1a6a762..db1d2da 100644 --- a/src/components/drag-drop-container.tsx +++ b/src/components/drag-drop-container.tsx @@ -1,3 +1,7 @@ +"use client"; + +import { AnimatePresence, motion } from "framer-motion"; +import { FileUp } from "lucide-react"; import type { ReactNode } from "react"; import { toast } from "sonner"; import { IMAGE_EXTENSIONS } from "@/lib/constants"; @@ -46,7 +50,7 @@ export const DragDropContainer = ({ } else if (fileType === "image" && onImageDrop) { onImageDrop(file); } else { - toast.warning("Please drop an .ics file or an image"); + toast.warning("Drop an .ics file or an event screenshot"); } } }; @@ -57,15 +61,33 @@ export const DragDropContainer = ({ onDragOver={handleDragOver} onDragLeave={handleDragLeave} onDrop={handleDrop} - className={`p-4 min-h-[80vh] flex flex-col rounded border-2 border-dashed transition ${ - isDragOver ? "border-blue-500 bg-blue-50" : "border-gray-700" - }`} + className="relative flex flex-col" > + + {isDragOver && ( + +
+ + + Drop .ics or image here + +
+
+ )} +
+ {children} -
-
- Drag & Drop *.ics or an event screenshot here -
+ +
+

+ Drag & drop .ics files or event screenshots +

);