File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ export default function Home() {
9393 }
9494
9595 function handleFileUpload ( e ) {
96- console . log ( e . target . files ) ;
9796 var uploadedFile = e . target . files [ 0 ] ;
9897 if ( / \. ( j p e ? g | p n g ) $ / i. test ( uploadedFile . name ) === true ) {
9998 setFileIsValid ( true ) ;
Original file line number Diff line number Diff line change 55
66export default function UploadArea ( { fileIsValid, onFileUpload } ) {
77 return (
8- < div id = "uploadArea" className = "flex justify-center mx-5 transition duration-300 ease-in-out cursor-pointer group bg-foreground/15 hover:bg-foreground/10 dark:bg-foreground dark:hover:bg-foreground/90 outline-dashed outline-gray dark:outline-gray/30 dark:hover:outline-gray/40 outline-2 outline-offset-2" >
8+ < div id = "uploadArea" className = "flex justify-center px-5 mx-5 transition duration-300 ease-in-out cursor-pointer group bg-foreground/15 hover:bg-foreground/10 dark:bg-foreground dark:hover:bg-foreground/90 outline-dashed outline-gray dark:outline-gray/30 dark:hover:outline-gray/40 outline-2 outline-offset-2" >
99 < label htmlFor = "dropzone" className = "flex flex-col justify-center text-center cursor-pointer" >
1010 < UploadIcon className = "mx-auto w-12 h-12 transition duration-300 ease-in-out rotate-3 group-hover:rotate-0 text-foreground/50 dark:text-gray" > </ UploadIcon >
1111 < h2 className = "mt-4 text-2xl font-bold text-foreground/50 dark:text-gray" > Click to upload or drag and drop</ h2 >
You can’t perform that action at this time.
0 commit comments