|
1 |
| -import React, { useState, useEffect, Fragment } from "react"; |
2 |
| -import { connect } from "react-redux"; |
3 |
| -import { login } from "../../actions/authAction"; |
4 |
| -import { removeNav } from "../../actions/navAction"; |
5 |
| -import { loadProfile } from "../../actions/profileAction"; |
6 |
| -import { Link } from "react-router-dom"; |
7 |
| -import i from "../../utils/mediaQ"; |
8 |
| - |
9 |
| -// Assets import |
10 |
| -import auth from "../../assets/auth.jpg"; |
11 |
| -import Alert from "../alerts/Alert"; |
12 | 1 | import {
|
13 | 2 | Box,
|
| 3 | + Button, |
14 | 4 | Flex,
|
15 | 5 | Heading,
|
| 6 | + HStack, |
16 | 7 | Image,
|
17 |
| - Text, |
18 | 8 | Input,
|
19 |
| - HStack, |
20 |
| - Button, |
| 9 | + Text, |
21 | 10 | } from "@chakra-ui/react";
|
| 11 | +import React, { Fragment, useEffect, useState } from "react"; |
| 12 | +import { connect } from "react-redux"; |
| 13 | +import { Link } from "react-router-dom"; |
| 14 | +import { login } from "../../actions/authAction"; |
| 15 | +import { removeNav } from "../../actions/navAction"; |
| 16 | +import { loadProfile } from "../../actions/profileAction"; |
| 17 | +// Assets import |
| 18 | +import auth from "../../assets/auth.jpg"; |
| 19 | +import i from "../../utils/mediaQ"; |
| 20 | +import Alert from "../alerts/Alert"; |
22 | 21 |
|
23 | 22 | const Login = ({
|
24 | 23 | auth: { isAuthenticated },
|
@@ -68,13 +67,14 @@ const Login = ({
|
68 | 67 | return (
|
69 | 68 | <Fragment>
|
70 | 69 | <Box w={i() ? "calc(100% - 700px)" : ""}>
|
71 |
| - <Flex alignItems="center" flexDirection="column" pt="2.5rem"> |
| 70 | + <Flex alignItems="center" flexDirection="column" pt="2.5rem" mt="3rem"> |
72 | 71 | <Heading as="h1">Welcome to DevHelp</Heading>
|
73 | 72 | <Text
|
74 |
| - color="#00000080" |
75 | 73 | px={i() ? "" : "60px"}
|
76 | 74 | fontSize={i() ? "" : "14px"}
|
77 | 75 | textAlign="center"
|
| 76 | + mt="1rem" |
| 77 | + fontSize="20px" |
78 | 78 | >
|
79 | 79 | DevHelp has a pool of highly experienced developers in their
|
80 | 80 | respective tech stacks
|
@@ -112,15 +112,14 @@ const Login = ({
|
112 | 112 | <Button
|
113 | 113 | isLoading={loading}
|
114 | 114 | loadingText="Logging In"
|
115 |
| - colorScheme="blackAlpha" |
116 | 115 | w={i() ? "450px" : "280px"}
|
117 | 116 | type="submit"
|
118 | 117 | onClick={onSubmit}
|
119 | 118 | >
|
120 | 119 | Login
|
121 | 120 | </Button>
|
122 | 121 | </Flex>
|
123 |
| - <Flex justifyContent="center"> |
| 122 | + <Flex justifyContent="center" mt="2rem"> |
124 | 123 | New user?{" "}
|
125 | 124 | <Link to="sign-up">
|
126 | 125 | <Text ml="5px" color="#0066ff">
|
|
0 commit comments