-
Notifications
You must be signed in to change notification settings - Fork 0
/
Upload.jsx
38 lines (35 loc) · 1.04 KB
/
Upload.jsx
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
28
29
30
31
32
33
34
35
36
37
38
import { Button, Container, HStack, Input, VStack } from '@chakra-ui/react';
import React from 'react';
import { AiOutlineCloudUpload } from 'react-icons/ai';
const Upload = () => {
return (
<Container maxW={'container.xl'} h={'100vh'} p={'16'}>
<VStack color={'purple.500'} h={'full'} justifyContent={'center'}>
<AiOutlineCloudUpload size={'10vmax'} />
<form>
<HStack>
<Input
required
type={'file'}
css={{
'&::file-selector-button': {
border: 'none',
width: 'calc(100% + 36px)',
height: '100%',
marginLeft: '-18px',
color: 'purple',
backgroundColor: 'white',
cursor: 'pointer',
},
}}
/>
<Button colorScheme={'purple'} type={'submit'}>
Upload
</Button>
</HStack>
</form>
</VStack>
</Container>
);
};
export default Upload;