Skip to content

Commit

Permalink
Worked on APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
xsebastianx committed Jan 11, 2021
1 parent 232e693 commit 59fdaf5
Show file tree
Hide file tree
Showing 17 changed files with 406 additions and 79 deletions.
2 changes: 1 addition & 1 deletion client/.eslintcache

Large diffs are not rendered by default.

Binary file added client/src/Assests/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/Assests/fb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/Assests/gp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/src/Assests/tw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions client/src/Pages/Community/Community.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import './Community.css';
import axios from 'axios';
import MyMapComponent from '../../components/GoogleMap/GoogleMap';
import Schools from '../../components/School/School';
import Realtor from '../../components/Realtor/Realtor';
import Reps from '../../components/Cicero/Cicero';
function Community() {
const [mapKey, setMapKey] = useState();
Expand All @@ -20,6 +21,7 @@ function Community() {
</div>
<MyMapComponent mapKey={mapKey} />
<Schools></Schools>
<Realtor></Realtor>
<Reps />
</>
);
Expand Down
164 changes: 162 additions & 2 deletions client/src/Pages/SignIn/SignIn.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,163 @@
.signin {
margin-top: 80px;
* {
margin: 0;
padding: 0;
font-family: sans-serif;
}
.hero {
height: 100vh;
width: 100vw;
background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
url(../../Assests/home.jpeg);
background-position: center;
background-size: cover;
position: relative;
margin-top: -35px;
}
.form-box {
width: 400px;
height: 100vh;
position: relative;
margin: 6% auto;
background: #fff;
padding: 5px;
overflow: hidden;
}
.button-box {
width: 220px;
margin: 35px auto;
position: relative;
box-shadow: 0 0 20px 9px #ff61241f;
border-radius: 30px;
}
.toggle-btn {
padding: 10px 30px;
cursor: pointer;
background: transparent;
border: 0;
outline: none;
position: relative;
color: orange;
}
#btn {
top: 0;
left: 0;
position: absolute;
width: 110px;
height: 100%;
background: #0f2027; /* fallback for old browsers */
background: -webkit-linear-gradient(
to right,
#2c5364,
#203a43,
#0f2027
); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(
to right,
#2c5364,
#203a43,
#0f2027
); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
border-radius: 30px;
transition: 0.5s;
}
.social-icons {
margin: 30px auto;
text-align: center;
}
.social-icons img {
width: 30px;
margin: 0 12px;
box-shadow: 0 0 20px 0 #7f7f7f3d;
cursor: pointer;
border-radius: 50%;
}
.input-group {
top: 180px;
position: absolute;
width: 280px;
transition: 0.5s;
}
.input-field {
width: 100%;
padding: 10px 0;
margin: 5px 0;
border-left: 0;
border-top: 0;
border-right: 0;
border-bottom: 1px solid #999;
outline: none;
background: transparent;
}
.submit-btn {
width: 85%;
padding: 10px 30px;
cursor: pointer;
display: block;
margin: auto;
background: linear-gradient();
border: 0;
outline: none;
border-radius: 30px;
}
.check-box {
margin: 30px 10px 30px 0;
/* display:flex;
flex-direction: column; */
}
span {
color: #777;
font-size: 12px;
bottom: 68px;
position: absolute;
}
.form-control label {
display: inline-block;
margin-bottom: 5px;
}
.form-control input {
border: 2px solid #f0f0f0;
border-radius: 4px;
display: block;
font-family: inherit;
font-size: 14px;
padding: 10px;
width: 100%;
}
.form-control input:focus {
outline: 0;
border-color: #777;
}
.form-control.success input {
border-color: #2ecc71;
}
.form-control.error input {
border-color: #e74c3c;
}
.form-control i {
visibility: hidden;
position: absolute;
top: 40px;
right: 10px;
}
.form-control.success i.fa-check-circle {
color: #2ecc71;
visibility: visible;
}
.form-control.error i.fa-exclamation-circle {
color: #e74c3c;
visibility: visible;
}
.form-control small {
color: #e74c3c;
position: absolute;
bottom: 0;
left: 0;
visibility: hidden;
}
.form-control.error small {
visibility: visible;
}

.pro-check {
padding: 10px;
}
16 changes: 16 additions & 0 deletions client/src/Pages/SignIn/SignIn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const x = document.getElementById('login');
const y = document.getElementById('register');
const z = document.getElementById('btn');
function register() {
console.log(x);
x.style.left = '-400px';
y.style.left = '50px';
z.style.left = '110px';
}
function login() {
x.style.left = '50px';
y.style.left = '450px';
z.style.left = '0px';
}

export { register, login };
185 changes: 123 additions & 62 deletions client/src/Pages/SignIn/SignIn.jsx
Original file line number Diff line number Diff line change
@@ -1,66 +1,127 @@
import React from 'react';
import React, { useState } from 'react';

import './SignIn.css';
import fb from '../../Assests/fb.png';
import tw from '../../Assests/tw.png';
import gp from '../../Assests/gp.png';
import { register, login } from './SignIn';

const SignIn = () => {
const handleRegister = (event) => {
console.log(event.target);
};
const [checked, setChecked] = useState(false);

const handleCheck = () => {
setChecked(!checked);
console.log(checked);
};

return (
<>
<div className="hero">
<div className="form-box">
<div className="button-box">
<div id="btn"></div>
<button type="button" className="toggle-btn" onClick={login}>
Log In
</button>
<button type="button" className="toggle-btn" onClick={register}>
Register
</button>
</div>
<div className="social-icons">
<img src={fb} />
<img src={tw} />
<img src={gp} />
</div>
<form id="login" className="input-group">
<label>Username</label>
<input
type="text"
className="input-field"
placeholder="Username"
required
></input>
<label>Email</label>
<input
type="email"
className="input-field"
placeholder="Email"
required
></input>
<label>Password</label>
<input
type="text"
className="input-field"
placeholder="Enter Password"
required
></input>

<button type="submit" className="submit-btn">
Log In
</button>
</form>
<form id="register" className="input-group">
<label>Username</label>
<input
type="text"
className="input-field"
placeholder="Username"
required
></input>
<label>Email</label>
<input
type="email"
className="input-field"
placeholder="Email"
required
></input>
<label>Password</label>
<input
type="password"
className="input-field"
placeholder="Enter Password"
required
></input>

<label className="pro-check">I would like to be a Pro</label>
<input
type="checkbox"
className="check-boxpro"
onClick={handleCheck}
></input>

function SignIn() {
// return (
// <div className="signin">
// <h1>Sign In Page</h1>
// <div class="hero">
// <div class="form-box">
// <div class="button-box">
// <div id="btn">
// <div>
// </div>
// <div class="social-icons"> <img src="fb.png" />
// <img src="tw.png" />
// <img src="gp.png" />
// </div>
// <form id="login" class="input-group">
// <input
// type="text"
// class="input-field"
// placeholder="User Id"
// required
// />
// <input
// type="text"
// class="input-field"
// placeholder="Enter Password"
// required
// />
// <input type="checkbox" class="check-box" /><span
// >Remember Password</span
// >
// <button type="submit" class="submit-btn">Login</button>
// </form>
// <form id="register" class="input-group">
// <input
// type="text"
// class="input-field"
// placeholder="User Id"
// required
// />
// <input
// type="text"
// class="input-field"
// placeholder="Enter Password"
// required
// />
// <input type="checkbox" class="check-box" /><span
// >I agree to the terms & conditions</span
// >
// <button type="submit" class="submit-btn">Register</button>
// </form>
// </div>
// </div>
// <form>
// <label>Email</label>
// <input></input>
// <label>Password</label>
// <input></input>
// </form>
// </div>
// );
}
{checked && (
<div>
<input
type="text"
className="input-field"
placeholder="Business Name"
required
></input>
<input
type="text"
className="input-field"
required
placeholder="Type of Business"
></input>
<input
type="text"
className="input-field"
required
placeholder="Phone Number"
></input>
</div>
)}
<button type="submit" className="submit-btn">
Register
</button>
</form>
</div>
</div>
</>
);
};

export default SignIn;
4 changes: 1 addition & 3 deletions client/src/components/Cicero/Cicero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ const Reps = ({ history }) => {
<div>
<form className="form-container" name="city" onSubmit={handleAddress}>
<div className="TopBar">
<h2>
Your <span>REPS</span>
</h2>
<h2>Your Reps</h2>
<div className="search-container">
<input
type="text"
Expand Down
Loading

0 comments on commit 59fdaf5

Please sign in to comment.