|
1 | 1 | import { ReactElement } from 'react' |
2 | | -import { Box, Center, Flex, Image, Show, Text } from '@chakra-ui/react' |
| 2 | +import { Box, Flex, Image } from '@chakra-ui/react' |
3 | 3 |
|
4 | | -import landingImg from '@/assets/plumber-landing.png' |
5 | | -import mainLogo from '@/assets/plumber-logo.svg' |
| 4 | +import textlogo from '@/assets/landing/textlogo.svg' |
6 | 5 | import LoginForm from '@/components/LoginForm' |
7 | 6 |
|
8 | 7 | export default function Login(): ReactElement { |
9 | 8 | return ( |
10 | | - <Flex flex={1} alignItems="stretch" flexDir={{ base: 'column', md: 'row' }}> |
11 | | - {/* Left half of the page: Login graphic */} |
12 | | - <Flex |
13 | | - flex={1} |
14 | | - flexDir="column" |
15 | | - display={{ base: 'none', md: 'flex' }} |
16 | | - bg="primary.50" |
17 | | - color="primary.500" |
18 | | - pt="3.75rem" |
19 | | - gap={{ base: '3rem', lg: '4.5rem' }} |
20 | | - > |
21 | | - <Flex flexDir="column" gap={2} pl={11}> |
22 | | - <Text textStyle="heavy" maxW="60%"> |
23 | | - Automate your manual and repetitive tasks |
24 | | - </Text> |
25 | | - <Text textStyle="body-1" maxW="80%"> |
26 | | - A no-code tool that connects multiple applications together to |
27 | | - automate your workflows. |
28 | | - </Text> |
29 | | - </Flex> |
30 | | - |
31 | | - <Show above="md"> |
32 | | - <Center pr={8}> |
33 | | - <Image |
34 | | - src={landingImg} |
35 | | - w={{ base: '80%', lg: '60%', '2xl': '65%' }} |
36 | | - maxW="26rem" |
37 | | - /> |
38 | | - </Center> |
39 | | - </Show> |
40 | | - </Flex> |
41 | | - |
42 | | - {/* Right half of the page: Login input */} |
43 | | - <Flex flexDir="column" flex={1} gap={12} justifyContent="center" px="5vw"> |
44 | | - <Box> |
45 | | - <Image h={10} src={mainLogo} alt="plumber-logo" /> |
46 | | - </Box> |
47 | | - <LoginForm /> |
48 | | - </Flex> |
| 9 | + <Flex |
| 10 | + flexDir="column" |
| 11 | + flex={1} |
| 12 | + gap={6} |
| 13 | + justifyContent="center" |
| 14 | + px="5vw" |
| 15 | + w={{ base: '90vw', sm: '80vw', lg: '50vw' }} |
| 16 | + margin="auto" |
| 17 | + > |
| 18 | + <Box> |
| 19 | + <Image h={10} src={textlogo} alt="plumber-logo" /> |
| 20 | + </Box> |
| 21 | + <LoginForm /> |
49 | 22 | </Flex> |
50 | 23 | ) |
51 | 24 | } |
0 commit comments