diff --git a/src/components/LogInContainer.js b/src/components/LogInContainer.js
index 219f74f..8edd08e 100644
--- a/src/components/LogInContainer.js
+++ b/src/components/LogInContainer.js
@@ -3,6 +3,7 @@ import { BrowserRouter, Route, NavLink, Switch,withRouter } from 'react-router-d
import Register from './Register';
import Login from './Login';
import Footer from './Footer';
+import styled, {css} from 'styled-components';
import '../login_reg.css';
const BaseApp = styled.div`
@@ -28,7 +29,7 @@ const AppForm = styled.div`
overflow: auto;
`;
-const PageSwitcher = styled.div`
+const PageSwitcherContainer = styled.div`
display: flex;
justify-content: flex-end;
@@ -86,44 +87,81 @@ const PageSwitcher = styled(NavLink)`
border: none;
outline: none;
display: inline-block;
- text-decoration: none;
-
- ${props = props.active ? css`
+ text-decoration: none !important;
+ &.active{
background-color: #66bfbf;
color: white;
- `: css``}
+ }
+ &:first-child {
+ border-top-left-radius: 25px;
+ border-bottom-left-radius: 25px;
+
+ }
+ &:last-child {
+ border-top-right-radius: 25px;
+ border-bottom-right-radius: 25px;
+
+ }
+`;
+
+const FormLink = styled(NavLink)`
+
+ color: #707C8B;
+ text-decoration: none !important;
+ display: inline-block;
+ font-size: 1.7em;
+ margin: 0 10px;
+ padding-bottom: 5px;
+ border: none;
+
+ &:first-child {
+ margin-left: 0;
+ }
+ &:last-child{
+ color: #707c8b;
+ }
+ &.active{
+ border-bottom: 1px solid #199087;
+ }
`;
+const FormTitle = styled.div`
+ color: #000000;
+ font-weight: 300;
+ margin-bottom: 50px;
+
+
+`;
const LogInContainer = (props) => {
return (
-
-
-
+
+
+
-
-
-
locaft
-
Sit back, let us move you
+
+
+ locaft
+ Sit back, let us move you
-
-
+
+
-
-
-
-
- Sign In
- Sign Up
-
-
- Sign In or Sign Up
-
+
+
+
+
+ Sign In
+ Sign Up
+
+
+ Sign In or Sign Up
+
@@ -132,9 +170,9 @@ const LogInContainer = (props) => {
-
+
-
+
);
diff --git a/src/components/Login.js b/src/components/Login.js
index 7a53bd2..8340352 100644
--- a/src/components/Login.js
+++ b/src/components/Login.js
@@ -4,6 +4,7 @@ import Axios from "axios";
import ErrorNotice from "./ErrorNotice";
import { Link, useHistory, withRouter } from "react-router-dom";
+import {Button, FormCenter, FormField, FormLabel, FormInput, FormLink } from './miscellaneous/Styles'
const Login = () => {
const [email, setEmail] = useState();
@@ -34,27 +35,34 @@ const Login = () => {
};
return (
-
+
{error && (
setError(undefined)} />
)}
-
+
);
}
diff --git a/src/components/NavBar.js b/src/components/NavBar.js
index 6af545e..cbe454d 100644
--- a/src/components/NavBar.js
+++ b/src/components/NavBar.js
@@ -15,7 +15,7 @@ const Header = styled.header`
justify-content: space-between;
align-items: center;
transition: 0.6s;
- padding: 10px 15px;
+ padding: 5px 15px;
z-index: 100000;
font-family: Ubuntu;
@@ -126,7 +126,7 @@ export default function NavBar() {
Home
About
- Services
+ Pricing
Contact us
{userData.user ? (
diff --git a/src/components/PricingPlan.js b/src/components/PricingPlan.js
index 66042c7..7d7de40 100644
--- a/src/components/PricingPlan.js
+++ b/src/components/PricingPlan.js
@@ -3,9 +3,9 @@ import NavBar from './NavBar';
import Footer from './Footer';
import styled,{css} from 'styled-components';
import UserContext from "../context/UserContext";
-import Payment from "./Payment";
import { useHistory } from "react-router-dom";
import Axios from 'axios';
+import { Button } from './miscellaneous/Styles';
const size = {
mobileS: '320px',
@@ -165,37 +165,13 @@ const Actions = styled.div`
display: flex;
flex-direction: column;
-`;
-const Button = styled.a`
-
- display: inline-block;
- margin: 15px auto;
- padding: 8px 20px;
- color: #009578;
- background: #ffffff;
- border-radius: 5px;
- border: 1px solid #009578;
- text-transform: uppercase;
- letter-spacing: 0.02em;
- font-weight: bold;
- text-align: center;
- cursor: pointer;
-
- &:hover {
-
- background: #009578;
- color: white !important;
-
- }
-
-
`;
const Heading = styled.h1`
- color: #66bfbf;
+ color: #309975;
margin-left: 20px;
margin-top: 100px;
-
+ font-weight: bold;
`;
@@ -210,6 +186,7 @@ const submit = async (props) => {
props.preventDefault();
try {
const id = userData.user.id;
+ console.log("Id " + id)
const pricingRes = await Axios.put(
"https://server-locaft.herokuapp.com/users/update", {
id,
@@ -312,7 +289,13 @@ const submit = async (props) => {
-
+
): (