forked from lafeo/EK-IEEE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauth.jsx
36 lines (31 loc) · 1.34 KB
/
auth.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import React, {useState} from 'react';
import {Container,Row,Col, Button} from 'react-bootstrap'
import Signin from '../signin/signin';
import Signup from '../signup/signup';
import './auth.scss';
const Auth = ({logged,setLogged}) => {
const [auth,setAuth] = useState(0);
return (
<Container className="auth" fluid>
<Row className="w-100 mx-auto">
<Col className="banner text-light d-md-flex d-none align-items-center">
<div className="banner-content">
<b><h1>Get Certified</h1></b>
<p className="w-75 h5">Working as a volunteer to help others requires a skill. Enroll in our programme to become a certified volunteer. </p>
<Button href="/volunteer-info">
Enroll now
</Button>
</div>
</Col>
<Col md={5} className="d-flex justify-content-center align-items-center" >
{auth?
<Signin auth={auth} setAuth={setAuth} logged={logged} setLogged={setLogged} />
:
<Signup auth={auth} setAuth={setAuth} logged={logged} setLogged={setLogged}/>
}
</Col>
</Row>
</Container>
);
}
export default Auth;