sdy

update auth style

......@@ -2,7 +2,6 @@ import React from "react";
import styled from "styled-components";
import { Link } from "react-router-dom";
import { Helmet } from "react-helmet";
import Header from "../../Components/Header";
import Input from "../../Components/Input";
import Button from "../../Components/Button";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
......@@ -12,6 +11,7 @@ import {
faGithub,
faGoogle,
} from "@fortawesome/free-brands-svg-icons";
import loginBackground from "../../Imgs/login-background4.jpg";
const Wrapper = styled.div`
width: 100%;
......@@ -20,6 +20,19 @@ const Wrapper = styled.div`
flex-direction: column;
justify-content: center;
align-items: center;
background-image: url(${loginBackground});
background-size: cover;
`;
const SubWrapper = styled.div`
background-color: rgba(57, 65, 74, 0.5);
border-radius: 7px;
padding: 5%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
`;
const Box = styled.div`
......@@ -40,8 +53,9 @@ const StateChanger = styled(Box)`
`;
const ToggleSpan = styled.span`
margin-left: 5px;
cursor: pointer;
color: #0652dd;
color: #079992;
`;
const Form = styled(Box)`
......@@ -75,6 +89,10 @@ const SocialLogin = styled(Box)`
opacity: 0.8;
`;
const StyledLink = styled(Link)`
color: white;
`;
export default ({
action,
setAction,
......@@ -86,10 +104,12 @@ export default ({
onSubmit,
}) => (
<>
<Header />
<Wrapper>
<SubWrapper>
<TitleContainer>
<StyledLink to="/">
<Title>Linker</Title>
</StyledLink>
</TitleContainer>
<Form>
{action === "logIn" ? (
......@@ -111,13 +131,8 @@ export default ({
<form onSubmit={onSubmit}>
<Input placeholder={"Email"} type="email" {...email} />
<Input placeholder={"UserName"} {...username} />
<Input placeholder={"PhoneNumber"} {...phoneNum} />
<Input placeholder={"Password"} type="password" {...password} />
<Input
placeholder={"Password for validation"}
type="password"
{...password2}
/>
<Input placeholder={"PhoneNumber"} {...phoneNum} />
<Button text={"Sign Up"} />
</form>
</>
......@@ -135,24 +150,28 @@ export default ({
) : (
<>
Did you have an account ?
<ToggleSpan onClick={() => setAction("logIn")}> Log in </ToggleSpan>
<ToggleSpan onClick={() => setAction("logIn")}>
{" "}
Log in{" "}
</ToggleSpan>
</>
)}
</StateChanger>
<SocialLogin>
<Link to="/facebook">
<StyledLink to="/facebook">
<FontAwesomeIcon icon={faFacebook} />
</Link>
<Link to="/google">
</StyledLink>
<StyledLink to="/google">
<FontAwesomeIcon icon={faGoogle} />
</Link>
<Link to="/twitter">
</StyledLink>
<StyledLink to="/twitter">
<FontAwesomeIcon icon={faTwitter} />
</Link>
<Link to="/github">
</StyledLink>
<StyledLink to="/github">
<FontAwesomeIcon icon={faGithub} />
</Link>
</StyledLink>
</SocialLogin>
</SubWrapper>
</Wrapper>
</>
);
......