-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e37217b
commit b90e039
Showing
5 changed files
with
94 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
const UploadIcon = () => { | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="32" | ||
height="32" | ||
fill="none" | ||
viewBox="0 0 61 61" | ||
> | ||
<path | ||
fill="#3C9" | ||
d="M48.91 46.347h-3.005c-.973 0-1.758.785-1.758 1.758 0 .972.785 1.757 1.758 1.757h3.006c.972 0 1.758-.785 1.758-1.757a1.76 1.76 0 00-1.758-1.758zm-9.011 0H9.325c-.973 0-1.758.785-1.758 1.758 0 .972.785 1.757 1.758 1.757h30.574c.973 0 1.758-.785 1.758-1.757a1.76 1.76 0 00-1.758-1.758z" | ||
></path> | ||
<path | ||
fill="#FFB89A" | ||
d="M49.801 55.546H14.376a2.558 2.558 0 01-2.55-2.549c0-1.4 1.15-2.549 2.55-2.549H49.8c1.4 0 2.55 1.149 2.55 2.55 0 1.4-1.143 2.548-2.55 2.548z" | ||
></path> | ||
<path | ||
fill="#45484C" | ||
d="M47.288 24.427h-7.39c-.972 0-1.757.785-1.757 1.758 0 .972.785 1.758 1.758 1.758h7.395a4.366 4.366 0 014.359 4.359v16.482a4.366 4.366 0 01-4.36 4.36H14.51a4.366 4.366 0 01-4.36-4.36V32.302a4.366 4.366 0 014.36-4.36h8.162c.973 0 1.758-.785 1.758-1.757 0-.973-.785-1.758-1.758-1.758H14.51c-4.341 0-7.875 3.533-7.875 7.875v16.482c0 4.342 3.534 7.875 7.875 7.875h32.778c4.341 0 7.875-3.533 7.875-7.875V32.302c0-4.342-3.534-7.875-7.875-7.875z" | ||
></path> | ||
<path | ||
fill="#45484C" | ||
d="M22.122 16.37l6.96-6.96v32.279c0 .972.786 1.757 1.758 1.757.973 0 1.758-.785 1.758-1.757V9.409l6.961 6.961c.346.346.791.516 1.242.516.451 0 .903-.17 1.242-.516a1.758 1.758 0 000-2.484l-8.771-8.772a3.423 3.423 0 00-2.432-1.007c-.92 0-1.78.357-2.431 1.007l-8.772 8.772a1.758 1.758 0 002.485 2.484z" | ||
></path> | ||
</svg> | ||
); | ||
}; | ||
|
||
export default UploadIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import UploadIcon from "../icons/upload"; | ||
|
||
type Props = {}; | ||
|
||
const Uploader = ({}: Props) => { | ||
return ( | ||
<div className="flex items-center justify-center w-full"> | ||
<label | ||
htmlFor="dropzone-file" | ||
className="flex flex-col items-center justify-center w-full h-64 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 dark:hover:bg-bray-800 hover:bg-gray-100 " | ||
> | ||
<div className="flex flex-col items-center justify-center pt-5 pb-6"> | ||
<div className="animate-bounce"> | ||
<UploadIcon /> | ||
</div> | ||
|
||
<p className="mb-2 text-sm"> | ||
<span className="font-semibold">Click to upload</span> or drag and | ||
drop | ||
</p> | ||
<p className="text-xs">SVG, PNG or JPG</p> | ||
</div> | ||
<input id="dropzone-file" type="file" className="hidden" /> | ||
</label> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Uploader; |