Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | import React from "react"; import styled from "styled-components"; import { UploadIcon } from "ui/icons/Icons"; export const DropZone = styled.div.attrs((_props) => ({ children: <UploadIcon />, }))` position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000; background: rgba(0, 0, 0, 0.8); color: #fff; display: flex; align-items: center; justify-content: center; pointer-events: none; svg { fill: #fff; width: 100px; height: 100px; } `; |