mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 11:04:00 +00:00
Add droptarget
This commit is contained in:
parent
332855253f
commit
b7f59a0e10
1 changed files with 39 additions and 0 deletions
39
src/DropTarget.js
Normal file
39
src/DropTarget.js
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
import React from "react";
|
||||
|
||||
function DropTarget({ getInputProps }) {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
margin: 20,
|
||||
flexGrow: 1,
|
||||
border: "8px dashed grey",
|
||||
borderRadius: 20,
|
||||
color: "grey",
|
||||
textAlign: "center",
|
||||
vericalAlign: "middle",
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
flexDirection: "column",
|
||||
}}
|
||||
>
|
||||
<div style={{ fontSize: 30, color: "white" }}>Drop Skins Here</div>
|
||||
<div
|
||||
style={{
|
||||
paddingTop: 30,
|
||||
fontSize: 20,
|
||||
paddingLeft: 25,
|
||||
paddingRight: 25,
|
||||
lineHeight: 1.3,
|
||||
maxWidth: 400,
|
||||
}}
|
||||
>
|
||||
We'll analyze them in your browser to find any that are missing from the
|
||||
museum
|
||||
</div>
|
||||
<input {...getInputProps()} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default DropTarget;
|
||||
Loading…
Add table
Add a link
Reference in a new issue