Showing
1 changed file
with
22 additions
and
5 deletions
| 1 | import React from "react"; | 1 | import React from "react"; |
| 2 | import styled from "styled-components"; | 2 | import styled from "styled-components"; |
| 3 | +import { Link } from "react-router-dom"; | ||
| 3 | import { Helmet } from "react-helmet"; | 4 | import { Helmet } from "react-helmet"; |
| 5 | +import Header from "../../Components/Header"; | ||
| 4 | import Input from "../../Components/Input"; | 6 | import Input from "../../Components/Input"; |
| 5 | import Button from "../../Components/Button"; | 7 | import Button from "../../Components/Button"; |
| 6 | import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | 8 | import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; |
| ... | @@ -13,6 +15,7 @@ import { | ... | @@ -13,6 +15,7 @@ import { |
| 13 | 15 | ||
| 14 | const Wrapper = styled.div` | 16 | const Wrapper = styled.div` |
| 15 | width: 100%; | 17 | width: 100%; |
| 18 | + height: 100vh; | ||
| 16 | display: flex; | 19 | display: flex; |
| 17 | flex-direction: column; | 20 | flex-direction: column; |
| 18 | justify-content: center; | 21 | justify-content: center; |
| ... | @@ -36,7 +39,7 @@ const StateChanger = styled(Box)` | ... | @@ -36,7 +39,7 @@ const StateChanger = styled(Box)` |
| 36 | margin-bottom: 15px; | 39 | margin-bottom: 15px; |
| 37 | `; | 40 | `; |
| 38 | 41 | ||
| 39 | -const Link = styled.span` | 42 | +const ToggleSpan = styled.span` |
| 40 | cursor: pointer; | 43 | cursor: pointer; |
| 41 | color: #0652dd; | 44 | color: #0652dd; |
| 42 | `; | 45 | `; |
| ... | @@ -63,7 +66,7 @@ const Form = styled(Box)` | ... | @@ -63,7 +66,7 @@ const Form = styled(Box)` |
| 63 | 66 | ||
| 64 | const SocialLogin = styled(Box)` | 67 | const SocialLogin = styled(Box)` |
| 65 | display: flex; | 68 | display: flex; |
| 66 | - svg { | 69 | + a { |
| 67 | &:not(:last-child) { | 70 | &:not(:last-child) { |
| 68 | margin-right: 20px; | 71 | margin-right: 20px; |
| 69 | } | 72 | } |
| ... | @@ -82,9 +85,11 @@ export default ({ | ... | @@ -82,9 +85,11 @@ export default ({ |
| 82 | phoneNum, | 85 | phoneNum, |
| 83 | onSubmit, | 86 | onSubmit, |
| 84 | }) => ( | 87 | }) => ( |
| 88 | + <> | ||
| 89 | + <Header /> | ||
| 85 | <Wrapper> | 90 | <Wrapper> |
| 86 | <TitleContainer> | 91 | <TitleContainer> |
| 87 | - <Title>KhuChat</Title> | 92 | + <Title>Linker</Title> |
| 88 | </TitleContainer> | 93 | </TitleContainer> |
| 89 | <Form> | 94 | <Form> |
| 90 | {action === "logIn" ? ( | 95 | {action === "logIn" ? ( |
| ... | @@ -122,20 +127,32 @@ export default ({ | ... | @@ -122,20 +127,32 @@ export default ({ |
| 122 | {action === "logIn" ? ( | 127 | {action === "logIn" ? ( |
| 123 | <> | 128 | <> |
| 124 | Don't you have an account ? | 129 | Don't you have an account ? |
| 125 | - <Link onClick={() => setAction("signUp")}> Sign Up </Link> | 130 | + <ToggleSpan onClick={() => setAction("signUp")}> |
| 131 | + {" "} | ||
| 132 | + Sign Up{" "} | ||
| 133 | + </ToggleSpan> | ||
| 126 | </> | 134 | </> |
| 127 | ) : ( | 135 | ) : ( |
| 128 | <> | 136 | <> |
| 129 | Did you have an account ? | 137 | Did you have an account ? |
| 130 | - <Link onClick={() => setAction("logIn")}> Log in </Link> | 138 | + <ToggleSpan onClick={() => setAction("logIn")}> Log in </ToggleSpan> |
| 131 | </> | 139 | </> |
| 132 | )} | 140 | )} |
| 133 | </StateChanger> | 141 | </StateChanger> |
| 134 | <SocialLogin> | 142 | <SocialLogin> |
| 143 | + <Link to="/facebook"> | ||
| 135 | <FontAwesomeIcon icon={faFacebook} /> | 144 | <FontAwesomeIcon icon={faFacebook} /> |
| 145 | + </Link> | ||
| 146 | + <Link to="/google"> | ||
| 136 | <FontAwesomeIcon icon={faGoogle} /> | 147 | <FontAwesomeIcon icon={faGoogle} /> |
| 148 | + </Link> | ||
| 149 | + <Link to="/twitter"> | ||
| 137 | <FontAwesomeIcon icon={faTwitter} /> | 150 | <FontAwesomeIcon icon={faTwitter} /> |
| 151 | + </Link> | ||
| 152 | + <Link to="/github"> | ||
| 138 | <FontAwesomeIcon icon={faGithub} /> | 153 | <FontAwesomeIcon icon={faGithub} /> |
| 154 | + </Link> | ||
| 139 | </SocialLogin> | 155 | </SocialLogin> |
| 140 | </Wrapper> | 156 | </Wrapper> |
| 157 | + </> | ||
| 141 | ); | 158 | ); | ... | ... |
-
Please register or login to post a comment