Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

register page created #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 24 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"react-dom": "^16.13.1",
"react-draft-wysiwyg": "^1.14.5",
"react-dropzone-component": "^3.2.0",
"react-google-button": "^0.7.1",
"react-image-crop": "^8.6.5",
"react-jvectormap": "0.0.16",
"react-metismenu": "^1.4.0",
Expand Down
2 changes: 2 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import SignUp from './components/Authentication/signup';
import ForgotPassword from './components/Authentication/forgotpassword';
import NotFound from './components/Authentication/404';
import Maintenance from './components/Authentication/maintenance';
import Register from './components/Authentication/register'
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';

class App extends Component {
Expand All @@ -26,6 +27,7 @@ class App extends Component {
<Route path="/forgotpassword" component={ForgotPassword} />
<Route path="/notfound" component={NotFound} />
<Route path="/maintenance" component={Maintenance} />
<Route path="/register" component={Register} />
<Route component={Layout} />
</Switch>
</Router>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Authentication/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export default class Login extends Component {
<form className="form-auth-small m-t-20" action="/">
<div className="form-group">
<label htmlFor="signin-email" className="control-label sr-only">Email</label>
<input type="email" className="form-control round" id="signin-email" defaultValue="[email protected]" placeholder="Email" />
<input type="email" className="form-control round" id="signin-email" placeholder="Email" required/>
</div>
<div className="form-group">
<label htmlFor="signin-password" className="control-label sr-only">Password</label>
<input type="password" className="form-control round" id="signin-password" defaultValue="thisisthepassword" placeholder="Password" />
<input type="password" className="form-control round" id="signin-password" placeholder="Password" required />
</div>
<div className="form-group clearfix">
<label className="fancy-checkbox element-left">
Expand Down
90 changes: 90 additions & 0 deletions src/components/Authentication/register.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
import React, { Component } from 'react';
import { Link } from 'react-router-dom';

export default class register extends Component{
render() {
return (
<>
<div className="container-fluid social">
<div class="pattern">
<span class="red"></span>
<span class="indigo"></span>
<span class="blue"></span>
<span class="green"></span>
<span class="orange"></span>
</div>
<div className="auth-main particles_js">
<div className="auth_div vivify popIn">
<div className="card">
<div className="body">
<div className="auth_brand">
<p className="lead" align="center">Getting started</p>
</div>
<div className="form-group">
<input type="text" className="form-control round" placeholder="First Name" id="fname" required />
</div>
<div className="form-group">
<input type="text" className="form-control round" placeholder="Last Name" id="lname" required />
</div>
<div className="form-group">
<label for="batch">Batch of:</label><br></br>
<select name="Batch" id="batch" placeholder="Batch" >
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012">2012</option>
<option value="2013">2013</option>
<option value="2014">2014</option>
<option value="2015">2015</option>
<option value="2016">2016</option>
<option value="2017">2017</option>
<option value="2018">2018</option>
<option value="2019">2019</option>
<option value="2020">2020</option>
<option value="2021">2021</option>
<option value="2022">2022</option>
<option value="2023">2023</option>
<option value="2024">2024</option>
<option value="2025">2025</option>
</select>
</div>
<div className="form-group">
<label for="major">Major:</label><br></br>
<select name="Major" id="major" placeholder="Major" >
<option value="ugcse">B.Tech. CSE</option>
<option value="ugece">B.Tech. ECE</option>
<option value="ugeee">B.Tech. EEE</option>
<option value="pgcse">M.Tech. CSE</option>
<option value="pgece">M.Tech. ECE</option>
<option value="pgeee">M.Tech. EEE</option>
<option value="phdcse">Ph.D. CSE</option>
<option value="phdece">Ph.D. ECE</option>
<option value="phdeee">Ph.D. EEE</option>
<option value="phdme">Ph.D. ME</option>
</select>
</div>
<div className="form-group">
<label for="gender">Gender: </label><br></br>
<select name="Gender" id="gender" placeholder="Gender" required>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select>
</div>
<div className="form-group">
<label for="dob">Date of Birth: </label><br></br>
<input type="date" id="dob" />
</div>
<div>
<Link to="/">
<button type="submit" className="btn btn-primary btn-round btn-block">Submit</button>
</Link>
</div>
</div>
</div>
</div>
</div>
</div>
</>
);
}
}
9 changes: 6 additions & 3 deletions src/components/Authentication/signup.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component } from 'react';
import { Link } from 'react-router-dom';


export default class SignUp extends Component {
render() {
return (
Expand Down Expand Up @@ -29,11 +30,13 @@ export default class SignUp extends Component {
<div className="form-group">
<input type="password" className="form-control round" placeholder="Password" />
</div>
<button type="submit" className="btn btn-primary btn-round btn-block">Register</button>
<Link to="/register">
<button type="submit" className="btn btn-primary btn-round btn-block">Register</button>
</Link>
</form>
<div className="separator-linethrough"><span>OR</span></div>
<button className="btn btn-round btn-signin-social"><i className="fa fa-facebook-official facebook-color"></i> Sign in with Facebook</button>
<button className="btn btn-round btn-signin-social"><i className="fa fa-twitter twitter-color"></i> Sign in with Twitter</button>
<button className="btn btn-round btn-signin-social"><i className="fa fa-google google-color"></i> Sign in with Google</button>
<button className="btn btn-round btn-signin-social"><i className="fa fa-linkedin linkedin-color"></i> Sign in with LinkedIn</button>
</div>
</div>
</div>
Expand Down
8 changes: 8 additions & 0 deletions src/components/Route.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ import Dialogs from './Components/Dialogs';
import ListGroup from './Components/ListGroup';
import MediaObject from './Components/MediaObject';
import Nestable from './Components/Nestable';
import Register from './Authentication/register';

const Routes = [
{
Expand Down Expand Up @@ -603,6 +604,13 @@ const Routes = [
pageTitle: "Tables",
component: Signup
},
{
path: "/register",
name: 'register',
exact: true,
pageTitle: "Tables",
component: Register
},
{
path: "/forgotpassword",
name: 'forgotpassword',
Expand Down
5 changes: 5 additions & 0 deletions src/components/Shared/metisMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,11 @@ const metisMenu = [
"label": "Maintenance",
"to": "/maintenance"
},
{
"id":61,
"label": "Register",
"to": "/register"
}
]
},
{
Expand Down