Use dropzone

This commit is contained in:
Jordan Eldredge 2020-09-13 13:30:56 -07:00
parent aaffcb13bd
commit ceb0675bbc
5 changed files with 76 additions and 75 deletions

View file

@ -1,10 +1,37 @@
import React from "react";
import { HEADING_HEIGHT } from "./constants";
function DropTarget() {
function DropTarget({ getInputProps }) {
return (
<div style={{ color: "white", marginTop: HEADING_HEIGHT }}>
<h1>Drop</h1>
<div
style={{
position: "absolute",
backgroundColor: "rgba(0, 0, 0, 0.8)",
top: HEADING_HEIGHT,
left: 0,
bottom: 0,
right: 0,
display: "flex",
}}
>
<div
style={{
margin: 20,
flexGrow: 1,
border: "8px dashed #FFF",
borderRadius: 20,
color: "grey",
textAlign: "center",
vericalAlign: "middle",
display: "flex",
justifyContent: "center",
flexDirection: "column",
fontSize: 30,
}}
>
Drop Skins Here
<input {...getInputProps} />
</div>
</div>
);
}