-
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
1 parent
0706f42
commit e7373a1
Showing
13 changed files
with
168 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,17 @@ import styles from './contact.css' | |
import Footer from '../../utils/footer' | ||
import { Form, FormControl, FormGroup, Col, ControlLabel, Checkbox, Button } from 'react-bootstrap' | ||
|
||
|
||
|
||
|
||
class Contact extends Component { | ||
constructor(props) { | ||
super(props) | ||
this.state = { | ||
email: '', | ||
subject: '', | ||
message: '' | ||
} | ||
this.handleScroll = this.handleScroll.bind(this) | ||
} | ||
componentDidMount() { | ||
|
@@ -35,15 +43,39 @@ class Contact extends Component { | |
}) | ||
} | ||
} | ||
handleSubmit(e) { | ||
e.preventDefault() | ||
this.setState({ | ||
email: '', | ||
subject: '', | ||
message: '' | ||
}) | ||
alert("sorry I don't have a server right now also I am out of my firebase limits so no backend for now mail me instead [email protected]") | ||
} | ||
handleEmailChange(e) { | ||
this.setState({ | ||
email: e.target.value | ||
}) | ||
} | ||
handleSubjectChange(e) { | ||
this.setState({ | ||
subject: e.target.value | ||
}) | ||
} | ||
handleMessageChange(e) { | ||
this.setState({ | ||
message: e.target.value | ||
}) | ||
} | ||
render() { | ||
const FormInstance = ( | ||
<Form horizontal> | ||
<Form horizontal onSubmit={::this.handleSubmit}> | ||
<FormGroup controlId="formHorizontalEmail"> | ||
<Col componentClass={ControlLabel} sm={2}> | ||
</Col> | ||
<Col sm={8}> | ||
<FormControl type="email" placeholder="Email" /> | ||
<FormControl type="email" placeholder="Email" value={this.state.email} onChange={::this.handleEmailChange} /> | ||
</Col> | ||
</FormGroup> | ||
|
||
|
@@ -52,15 +84,15 @@ class Contact extends Component { | |
Subject | ||
</Col> | ||
<Col sm={8}> | ||
<FormControl type="text" placeholder="Subject" /> | ||
<FormControl type="text" placeholder="Subject" value={this.state.subject} onChange={::this.handleSubjectChange} /> | ||
</Col> | ||
</FormGroup> | ||
<FormGroup controlId="formControlsTextarea"> | ||
<Col componentClass={ControlLabel} sm={2}> | ||
Message | ||
</Col> | ||
<Col sm={8}> | ||
<FormControl componentClass="textarea" placeholder="message" /> | ||
<FormControl componentClass="textarea" placeholder="message" value={this.state.message} onChange={::this.handleMessageChange} /> | ||
</Col> | ||
</FormGroup> | ||
<FormGroup> | ||
|
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
overflow: hidden; | ||
justify-content: flex-end; | ||
margin-right: 20px; | ||
margin-bottom: 5%; | ||
} | ||
|
||
.menu { | ||
|
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
Oops, something went wrong.