Skip to content

Commit

Permalink
Merge pull request #8 from AJTKS/request
Browse files Browse the repository at this point in the history
Request
  • Loading branch information
jun-brro authored May 20, 2024
2 parents bbca9c2 + 44b761e commit 25c0e40
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Components/UploadButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ const UploadButton: React.FC<UploadButtonProps> = ({ onDrop }) => {
});

return (
<div className="relative w-52 h-16 bg-green-500 flex justify-center items-center">
<div className="relative w-52 h-16">
<div
{...getRootProps()}
className="flex justify-center items-center w-full h-full text-white text-lg font-normal cursor-pointer"
className={`flex justify-center items-center w-full h-full text-white text-lg font-normal cursor-pointer rounded-lg transition duration-200 ease-in-out ${
isDragActive ? "bg-green-400" : "bg-green-500"
} hover:bg-green-600 active:bg-green-700 active:scale-95`}
style={{ fontFamily: "Inter" }}
>
<input {...getInputProps()} />
{isDragActive ? (
<p>Drop the files here...</p>
) : (
<p onClick={open}>Select the Audio</p>
)}
<p onClick={open}>
{isDragActive ? "Drop the files here..." : "Select the Audio"}
</p>
</div>
</div>
);
Expand Down

0 comments on commit 25c0e40

Please sign in to comment.