Skip to content

Commit ef8a7a6

Browse files
committed
Added signup page and login modal
1 parent 2d43a79 commit ef8a7a6

11 files changed

Lines changed: 162 additions & 37 deletions

File tree

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import './App.css';
3-
import Layout from './components/Layout/Layout';
3+
import Layout from './containers/Layout/Layout';
44

55
function App() {
66
return (

src/UI/Modal/Modal.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import React from 'react';
2+
import classes from './Modal.module.css';
3+
import Aux from '../../hoc/Auxi';
4+
5+
const Modal = (props) => {
6+
7+
return (
8+
<Aux>
9+
<Background show = { props.login } clicked = { props.close }/>
10+
<div className = { classes.Modal }
11+
style = {{
12+
transform : props.login ? 'translateY(0)' : 'translateY(-100vh)',
13+
opacity : props.login ? '1' : '0'
14+
}}>
15+
<div className = "row justify-content-right">
16+
</div>
17+
18+
<hr></hr>
19+
20+
<hr></hr>
21+
<div className="float-right">
22+
<button className = "btn btn-danger mr-2"
23+
onClick = { props.close }>Close</button>
24+
<button className = "btn btn-primary">Login</button>
25+
</div>
26+
</div>
27+
</Aux>
28+
);
29+
}
30+
31+
export default Modal;

src/UI/Modal/Modal.module.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.Modal {
2+
position: fixed;
3+
z-index: 500;
4+
background-color: white;
5+
width: 70%;
6+
border: 1px solid #ccc;
7+
padding: 16px;
8+
left: 15%;
9+
top: 30%;
10+
box-sizing: border-box;
11+
transition: all 0.3s ease-out;
12+
border-radius: 5px;
13+
}
14+
15+
.Modal .Button{
16+
padding: 5px;
17+
18+
}
19+
20+
@media (min-width: 600px) {
21+
.Modal {
22+
width: 500px;
23+
left: calc(50% - 250px);
24+
}
25+
}

src/components/AboutSection/Features/Features.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ const Features = (props) => {
99
<div className = "col-lg-3">
1010
<Feature icon = " mdi mdi-speedometer"
1111
title = "Fast"
12-
body = "Fast load times and lag free interaction, my highest priority."></Feature>
12+
body = "Fast team connect and lag free interaction, our highest priority."></Feature>
1313
</div>
1414
<div className = "col-lg-3">
1515
<Feature icon = " mdi mdi-cellphone-link"
1616
title = "Responsive"
17-
body = "My layouts will work on any device, big or small any size"></Feature>
17+
body = "Our App will work on any device, big or small any size"></Feature>
1818
</div>
1919
<div className = "col-lg-3">
2020
<Feature icon = " mdi mdi-lightbulb"
2121
title = "Intuitive"
22-
body = "Strong preference for easy to use, intuitive UX/UI."></Feature>
22+
body = "Strong preference for easy to use, ineractive creative ideas."></Feature>
2323
</div>
2424
<div className = "col-lg-3">
2525
<Feature icon = " mdi mdi-rocket"
2626
title = "Dynamic"
27-
body = "Websites don't have to be static, I love making pages come to life."></Feature>
27+
body = "Physics don't have to be static, I love making it come to life."></Feature>
2828
</div>
2929
</div>
3030
);

src/components/HomeSection/HomeSection.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
font-size: 30px;
1616
}
1717

18-
button{
18+
.home button{
1919
border: 3px solid #0096ea;
2020
border-radius: 20px;
2121
outline: none;

src/components/Layout/Layout.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/components/RegisterSection/RegisterSection.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,19 @@ const RegisterSection = () => {
1313
<div className = "container">
1414
<SectionTitle title="Register Yourself!"/>
1515
<div className = "row pt-3">
16-
<div className="col-lg-8 offset-lg-2">
16+
<div className="col-lg-10 offset-lg-1">
1717
<div className = "row">
18-
<div>
19-
<button>Login</button>
20-
<button>Signup</button>
21-
</div>
18+
2219
</div>
23-
<div className = "row">
24-
<div className = "col-lg-6">
25-
20+
<div className={classes.loginSignupBox}>
21+
<div className = "row">
22+
<div className = {classes.sidepanel+" col-lg-7"}>
2623
</div>
27-
<div className = "col-lg-6">
28-
24+
<div className = "col-lg-5">
25+
<SignupSection/>
2926
</div>
3027
</div>
28+
</div>
3129
</div>
3230
</div>
3331
</div>
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
.registerSection{
22
height: 100vh;
3-
}
3+
}
4+
5+
.registerSection .sidepanel{
6+
background: url('../../assets/images/onlineStudy.jpg');
7+
background-repeat: no-repeat;
8+
background-size: contain;
9+
background-attachment: scroll;
10+
min-height: 800px;
11+
}

src/components/RegisterSection/SignupSection/SignupSection.js

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,45 @@
11
import React from 'react';
22
import Aux from '../../../hoc/Auxi';
3+
import classes from './SignupSection.module.css';
34

45
const SignupSection = () => {
56
return (
67
<Aux>
7-
<h1>Deep</h1>
8+
<div>
9+
<div className={classes.panel+" card card-form text-center"}>
10+
<div class="card-body">
11+
<div class="card-title"><h4>Sign Up Today</h4></div>
12+
<h6>Please fill out the form</h6>
13+
<div>
14+
<form action="">
15+
<div class="form-group">
16+
<input class="form-control form-control" type="text" placeholder="Username"/>
17+
</div>
18+
19+
<div class="form-group">
20+
<input class="form-control form-control" type="email" name="" id="" placeholder="Email"/>
21+
</div>
22+
23+
<div class="form-group">
24+
<input class="form-control form-control" type="password" name="" id="" placeholder="Password"/>
25+
</div>
26+
27+
<div class="form-group">
28+
<input class="form-control form-control" type="password" name="" id="" placeholder="Confirm Password"/>
29+
</div>
30+
31+
<div class="form-group">
32+
<button class="btn btn-outline-light btn-block">Submit!</button>
33+
</div>
34+
35+
<div className="form-group">
36+
<a><button>Already a member? Login</button></a>
37+
</div>
38+
</form>
39+
</div>
40+
</div>
41+
</div>
42+
</div>
843
</Aux>
944
);
1045
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.panel{
2+
background-color: #292D2E ;
3+
}
4+
5+
6+
.panel h4{
7+
color: #646c74 ;
8+
}
9+
10+
.panel h6{
11+
color: #0096ea ;
12+
}
13+
14+
.panel button:hover{
15+
border: none;
16+
}
17+
18+
.panel a button{
19+
border: none;
20+
outline: none;
21+
background-color: #292D2E;
22+
border-radius: 5px;
23+
color: #0096ea;
24+
}
25+
26+
.panel a button:hover{
27+
color: white;
28+
}

0 commit comments

Comments
 (0)