Skip to content

Commit 082eacc

Browse files
Small fixes
1 parent 78fa7de commit 082eacc

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/app/page.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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 (/\.(jpe?g|png)$/i.test(uploadedFile.name) === true) {
9998
setFileIsValid(true);

src/components/UploadArea.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55

66
export 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>

0 commit comments

Comments
 (0)