Showing
1 changed file
with
37 additions
and
18 deletions
... | @@ -2,7 +2,6 @@ import React from "react"; | ... | @@ -2,7 +2,6 @@ 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 { Link } from "react-router-dom"; |
4 | import { Helmet } from "react-helmet"; | 4 | import { Helmet } from "react-helmet"; |
5 | -import Header from "../../Components/Header"; | ||
6 | import Input from "../../Components/Input"; | 5 | import Input from "../../Components/Input"; |
7 | import Button from "../../Components/Button"; | 6 | import Button from "../../Components/Button"; |
8 | import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | 7 | import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; |
... | @@ -12,6 +11,7 @@ import { | ... | @@ -12,6 +11,7 @@ import { |
12 | faGithub, | 11 | faGithub, |
13 | faGoogle, | 12 | faGoogle, |
14 | } from "@fortawesome/free-brands-svg-icons"; | 13 | } from "@fortawesome/free-brands-svg-icons"; |
14 | +import loginBackground from "../../Imgs/login-background4.jpg"; | ||
15 | 15 | ||
16 | const Wrapper = styled.div` | 16 | const Wrapper = styled.div` |
17 | width: 100%; | 17 | width: 100%; |
... | @@ -20,6 +20,19 @@ const Wrapper = styled.div` | ... | @@ -20,6 +20,19 @@ const Wrapper = styled.div` |
20 | flex-direction: column; | 20 | flex-direction: column; |
21 | justify-content: center; | 21 | justify-content: center; |
22 | align-items: center; | 22 | align-items: center; |
23 | + background-image: url(${loginBackground}); | ||
24 | + background-size: cover; | ||
25 | +`; | ||
26 | + | ||
27 | +const SubWrapper = styled.div` | ||
28 | + background-color: rgba(57, 65, 74, 0.5); | ||
29 | + border-radius: 7px; | ||
30 | + padding: 5%; | ||
31 | + display: flex; | ||
32 | + flex-direction: column; | ||
33 | + justify-content: center; | ||
34 | + align-items: center; | ||
35 | + color: white; | ||
23 | `; | 36 | `; |
24 | 37 | ||
25 | const Box = styled.div` | 38 | const Box = styled.div` |
... | @@ -40,8 +53,9 @@ const StateChanger = styled(Box)` | ... | @@ -40,8 +53,9 @@ const StateChanger = styled(Box)` |
40 | `; | 53 | `; |
41 | 54 | ||
42 | const ToggleSpan = styled.span` | 55 | const ToggleSpan = styled.span` |
56 | + margin-left: 5px; | ||
43 | cursor: pointer; | 57 | cursor: pointer; |
44 | - color: #0652dd; | 58 | + color: #079992; |
45 | `; | 59 | `; |
46 | 60 | ||
47 | const Form = styled(Box)` | 61 | const Form = styled(Box)` |
... | @@ -75,6 +89,10 @@ const SocialLogin = styled(Box)` | ... | @@ -75,6 +89,10 @@ const SocialLogin = styled(Box)` |
75 | opacity: 0.8; | 89 | opacity: 0.8; |
76 | `; | 90 | `; |
77 | 91 | ||
92 | +const StyledLink = styled(Link)` | ||
93 | + color: white; | ||
94 | +`; | ||
95 | + | ||
78 | export default ({ | 96 | export default ({ |
79 | action, | 97 | action, |
80 | setAction, | 98 | setAction, |
... | @@ -86,10 +104,12 @@ export default ({ | ... | @@ -86,10 +104,12 @@ export default ({ |
86 | onSubmit, | 104 | onSubmit, |
87 | }) => ( | 105 | }) => ( |
88 | <> | 106 | <> |
89 | - <Header /> | ||
90 | <Wrapper> | 107 | <Wrapper> |
108 | + <SubWrapper> | ||
91 | <TitleContainer> | 109 | <TitleContainer> |
110 | + <StyledLink to="/"> | ||
92 | <Title>Linker</Title> | 111 | <Title>Linker</Title> |
112 | + </StyledLink> | ||
93 | </TitleContainer> | 113 | </TitleContainer> |
94 | <Form> | 114 | <Form> |
95 | {action === "logIn" ? ( | 115 | {action === "logIn" ? ( |
... | @@ -111,13 +131,8 @@ export default ({ | ... | @@ -111,13 +131,8 @@ export default ({ |
111 | <form onSubmit={onSubmit}> | 131 | <form onSubmit={onSubmit}> |
112 | <Input placeholder={"Email"} type="email" {...email} /> | 132 | <Input placeholder={"Email"} type="email" {...email} /> |
113 | <Input placeholder={"UserName"} {...username} /> | 133 | <Input placeholder={"UserName"} {...username} /> |
114 | - <Input placeholder={"PhoneNumber"} {...phoneNum} /> | ||
115 | <Input placeholder={"Password"} type="password" {...password} /> | 134 | <Input placeholder={"Password"} type="password" {...password} /> |
116 | - <Input | 135 | + <Input placeholder={"PhoneNumber"} {...phoneNum} /> |
117 | - placeholder={"Password for validation"} | ||
118 | - type="password" | ||
119 | - {...password2} | ||
120 | - /> | ||
121 | <Button text={"Sign Up"} /> | 136 | <Button text={"Sign Up"} /> |
122 | </form> | 137 | </form> |
123 | </> | 138 | </> |
... | @@ -135,24 +150,28 @@ export default ({ | ... | @@ -135,24 +150,28 @@ export default ({ |
135 | ) : ( | 150 | ) : ( |
136 | <> | 151 | <> |
137 | Did you have an account ? | 152 | Did you have an account ? |
138 | - <ToggleSpan onClick={() => setAction("logIn")}> Log in </ToggleSpan> | 153 | + <ToggleSpan onClick={() => setAction("logIn")}> |
154 | + {" "} | ||
155 | + Log in{" "} | ||
156 | + </ToggleSpan> | ||
139 | </> | 157 | </> |
140 | )} | 158 | )} |
141 | </StateChanger> | 159 | </StateChanger> |
142 | <SocialLogin> | 160 | <SocialLogin> |
143 | - <Link to="/facebook"> | 161 | + <StyledLink to="/facebook"> |
144 | <FontAwesomeIcon icon={faFacebook} /> | 162 | <FontAwesomeIcon icon={faFacebook} /> |
145 | - </Link> | 163 | + </StyledLink> |
146 | - <Link to="/google"> | 164 | + <StyledLink to="/google"> |
147 | <FontAwesomeIcon icon={faGoogle} /> | 165 | <FontAwesomeIcon icon={faGoogle} /> |
148 | - </Link> | 166 | + </StyledLink> |
149 | - <Link to="/twitter"> | 167 | + <StyledLink to="/twitter"> |
150 | <FontAwesomeIcon icon={faTwitter} /> | 168 | <FontAwesomeIcon icon={faTwitter} /> |
151 | - </Link> | 169 | + </StyledLink> |
152 | - <Link to="/github"> | 170 | + <StyledLink to="/github"> |
153 | <FontAwesomeIcon icon={faGithub} /> | 171 | <FontAwesomeIcon icon={faGithub} /> |
154 | - </Link> | 172 | + </StyledLink> |
155 | </SocialLogin> | 173 | </SocialLogin> |
174 | + </SubWrapper> | ||
156 | </Wrapper> | 175 | </Wrapper> |
157 | </> | 176 | </> |
158 | ); | 177 | ); | ... | ... |
-
Please register or login to post a comment