diff --git a/components/landing/character-uploader.tsx b/components/landing/character-uploader.tsx deleted file mode 100644 index 10a5ca3..0000000 --- a/components/landing/character-uploader.tsx +++ /dev/null @@ -1,100 +0,0 @@ -"use client" - -import type React from "react" -import { useState, useRef } from "react" -import { X, Upload } from "lucide-react" -import { Button } from "@/components/ui/button" -import { useToast } from "@/hooks/use-toast" -import { validateFileForUpload, generateFilePreview } from "@/lib/file-utils" - -export function CharacterUploader() { - const [preview, setPreview] = useState(null) - const [isDragging, setIsDragging] = useState(false) - const fileInputRef = useRef(null) - const { toast } = useToast() - - const handleFile = async (file: File) => { - const validation = validateFileForUpload(file, true) - if (validation.valid) { - const previewUrl = await generateFilePreview(file) - setPreview(previewUrl) - } else if (validation.error) { - toast({ - title: "Invalid file", - description: validation.error, - variant: "destructive", - duration: 4000, - }) - } - } - - const handleDrop = (e: React.DragEvent) => { - e.preventDefault() - setIsDragging(false) - const file = e.dataTransfer.files[0] - if (file) handleFile(file) - } - - const handleDragOver = (e: React.DragEvent) => { - e.preventDefault() - setIsDragging(true) - } - - const handleDragLeave = () => { - setIsDragging(false) - } - - const clearPreview = () => { - setPreview(null) - if (fileInputRef.current) { - fileInputRef.current.value = "" - } - } - - if (preview) { - return ( -
- Character preview - -
- ) - } - - return ( - - ) -} diff --git a/components/landing/style-selector.tsx b/components/landing/style-selector.tsx deleted file mode 100644 index bdaf671..0000000 --- a/components/landing/style-selector.tsx +++ /dev/null @@ -1,53 +0,0 @@ -"use client" - -import { Check } from "lucide-react" -import { Label } from "@/components/ui/label" -import { COMIC_STYLES } from "@/lib/constants" - -interface StyleSelectorProps { - style: string - setStyle: (style: string) => void -} - -export function StyleSelector({ style, setStyle }: StyleSelectorProps) { - - return ( -
- - - {/* Grid for style selection */} -
- {COMIC_STYLES.map((styleOption) => ( - - ))} -
-
- ) -}