@@ -293,7 +293,7 @@ export default function Page() {
293293 return (
294294 < main className = "mx-auto max-w-3xl px-4 py-8" >
295295 < div className = "flex h-[calc(100vh-90px)] flex-col justify-center px-6 font-play" >
296- < div className = "2xl:my-15 flex flex-col " >
296+ < div className = "2xl:my-15 flex flex-col items-center " >
297297 { previews . length === 0 && (
298298 < fieldset className = "mb-4 w-full max-w-md rounded-lg border-2 border-gray-300 p-4 pr-8" >
299299 < div className = "flex w-full flex-col 2xl:gap-y-4" >
@@ -364,33 +364,34 @@ export default function Page() {
364364 </ fieldset >
365365 ) }
366366
367- < Dropzone
368- onDrop = { onDrop }
369- accept = { {
370- "image/*" : [ ".jpeg" , ".jpg" , ".png" , ".gif" , ".bmp" , ".webp" ] ,
371- "application/pdf" : [ ".pdf" ] ,
372- } }
373- multiple = { true }
374- >
375- { ( { getRootProps, getInputProps } ) => (
376- < div
377- className = "relative h-20 w-20 flex-shrink-0 cursor-pointer"
378- { ...getRootProps ( ) }
379- >
380- < input { ...getInputProps ( ) } />
381- < div className = "absolute left-4 top-4 h-16 w-16 rounded-2xl bg-violet-950" />
382- < div className = "absolute left-0 top-0 h-10 w-10 rounded-[20px] bg-violet-950" />
383- < div className = "absolute left-1 top-1 flex h-8 w-8 items-center rounded-[20px] bg-black/50" />
384- < div className = "absolute left-9 top-9 text-2xl text-white" >
385- < FiPlus className = "h-7 w-7" />
386- </ div >
387- < div className = "absolute left-4 top-3 text-xs font-semibold text-white" >
388- { previews . length }
367+ { previews . length > 0 && (
368+ < Dropzone
369+ onDrop = { onDrop }
370+ accept = { {
371+ "image/*" : [ ".jpeg" , ".jpg" , ".png" , ".gif" , ".bmp" , ".webp" ] ,
372+ "application/pdf" : [ ".pdf" ] ,
373+ } }
374+ multiple = { true }
375+ >
376+ { ( { getRootProps, getInputProps } ) => (
377+ < div
378+ className = "relative h-20 w-20 flex-shrink-0 cursor-pointer"
379+ { ...getRootProps ( ) }
380+ >
381+ < input { ...getInputProps ( ) } />
382+ < div className = "absolute left-4 top-4 h-16 w-16 rounded-2xl bg-violet-950" />
383+ < div className = "absolute left-0 top-0 h-10 w-10 rounded-[20px] bg-violet-950" />
384+ < div className = "absolute left-1 top-1 flex h-8 w-8 items-center rounded-[20px] bg-black/50" />
385+ < div className = "absolute left-9 top-9 text-2xl text-white" >
386+ < FiPlus className = "h-7 w-7" />
387+ </ div >
388+ < div className = "absolute left-4 top-3 text-xs font-semibold text-white" >
389+ { previews . length }
390+ </ div >
389391 </ div >
390- </ div >
391- ) }
392- </ Dropzone >
393-
392+ ) }
393+ </ Dropzone >
394+ ) }
394395 { previews . length > 0 && (
395396 < section className = "mt-6 flex w-full flex-col items-center" >
396397 < div className = "flex w-max gap-4" >
0 commit comments