You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			38 lines
		
	
	
		
			892 B
		
	
	
	
		
			TypeScript
		
	
		
		
			
		
	
	
			38 lines
		
	
	
		
			892 B
		
	
	
	
		
			TypeScript
		
	
| 
											4 years ago
										 | import React from 'react'; | ||
|  | import styled from 'styled-components'; | ||
| 
											4 years ago
										 | import { Flex } from '../basic/Flex'; | ||
| 
											4 years ago
										 | import { SessionIcon } from '../icon'; | ||
| 
											5 years ago
										 | 
 | ||
| 
											5 years ago
										 | const DropZoneContainer = styled.div`
 | ||
|  |   display: inline-block; | ||
|  |   position: absolute; | ||
|  |   width: 100%; | ||
|  |   height: 100%; | ||
|  |   pointer-events: none; | ||
|  | `;
 | ||
|  | 
 | ||
|  | const DropZoneWithBorder = styled.div`
 | ||
| 
											4 years ago
										 |   border: dashed 4px var(--color-accent); | ||
|  |   background-color: var(--color-clickable-hovered); | ||
| 
											5 years ago
										 |   position: absolute; | ||
|  |   top: 0; | ||
|  |   bottom: 0; | ||
|  |   left: 0; | ||
|  |   right: 0; | ||
|  |   z-index: 20; | ||
|  |   opacity: 0.5; | ||
|  |   pointer-events: none; | ||
|  | `;
 | ||
|  | 
 | ||
|  | export const SessionFileDropzone = () => { | ||
|  |   return ( | ||
|  |     <DropZoneContainer> | ||
|  |       <DropZoneWithBorder> | ||
| 
											5 years ago
										 |         <Flex container={true} justifyContent="space-around" height="100%" alignItems="center"> | ||
| 
											4 years ago
										 |           <SessionIcon iconSize={'max'} iconType="circlePlus" /> | ||
| 
											5 years ago
										 |         </Flex> | ||
|  |       </DropZoneWithBorder> | ||
|  |     </DropZoneContainer> | ||
|  |   ); | ||
|  | }; |