-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
205 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import React, { useState } from 'react' | ||
import { Form, Row, Col, Button } from 'react-bootstrap' | ||
|
||
const ContactUsScreen = () => { | ||
const [name, setName] = useState('') | ||
const [email, setEmail] = useState('') | ||
const [text, setText] = useState('') | ||
|
||
const submitHandler = (e) => { | ||
e.preventDefaul() | ||
} | ||
return ( | ||
<> | ||
<h1 className='text-center my-5'>Contact Us</h1> | ||
<Form onSubmit={submitHandler}> | ||
<Row> | ||
<Col md={6}> | ||
<Form.Group controlId='name' className='mb-3'> | ||
<Form.Label>Name</Form.Label> | ||
<Form.Control | ||
type='text' | ||
placeholder='Your name' | ||
value={name} | ||
onChange={(e) => setName(e.target.value)} | ||
required={true} | ||
></Form.Control> | ||
</Form.Group> | ||
</Col> | ||
|
||
<Col md={6}> | ||
<Form.Group controlId='email' className='mb-3'> | ||
<Form.Label>Email Address</Form.Label> | ||
<Form.Control | ||
type='email' | ||
placeholder='Your email address' | ||
value={email} | ||
onChange={(e) => setEmail(e.target.value)} | ||
required={true} | ||
></Form.Control> | ||
</Form.Group> | ||
</Col> | ||
</Row> | ||
|
||
<Form.Group controlId='text' className='mb-3'> | ||
<Form.Label>Message</Form.Label> | ||
<Form.Control | ||
as='textarea' | ||
placeholder='Your Message' | ||
value={text} | ||
onChange={(e) => setText(e.target.value)} | ||
required={true} | ||
></Form.Control> | ||
</Form.Group> | ||
|
||
<Button type='submit'>Send your message</Button> | ||
</Form> | ||
</> | ||
) | ||
} | ||
|
||
export default ContactUsScreen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,24 @@ | ||
import React from 'react' | ||
import { Link } from 'react-router-dom' | ||
|
||
function HomeScreen() { | ||
return <h1 className='text-center mt-5'>HomeScreen</h1> | ||
return ( | ||
<> | ||
<h1 className='text-center mt-5'>Welcome to Plasma</h1> | ||
|
||
<h4>How it works</h4> | ||
<p>Register/Login to our platform</p> | ||
<Link to='/profile'> | ||
<p>Become a donar</p> | ||
</Link> | ||
<Link to='/request'> | ||
<p>Request for blood</p> | ||
</Link> | ||
<Link to='/donars'> | ||
<p>Find donars</p> | ||
</Link> | ||
</> | ||
) | ||
} | ||
|
||
export default HomeScreen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters