Skip to content

Commit 280eca2

Browse files
committed
contact form
1 parent e3c33d8 commit 280eca2

4 files changed

Lines changed: 41 additions & 47 deletions

File tree

src/Components/Footer/Footer.jsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import React from 'react';
2-
import './Footer.css';
32

43
export default function Footer() {
54
return (
6-
<footer className="footer mt-auto py-3 bg-light">
7-
<div className="container">
5+
<React.Fragment>
6+
<footer className="card-footer">
87
<span className="text-muted">@Jsons WebDev 2020</span>
9-
</div>
10-
</footer>
8+
</footer>
9+
</React.Fragment>
1110
)
1211
}

src/Components/Pages/Contact.jsx

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -15,38 +15,43 @@ const Contact = () => {
1515
<small>Let us know what kind of support you want</small>
1616
</div>
1717
<div className="col-6 mx-auto" id="form">
18-
<Form>
19-
<Form.Row>
20-
<Col>
21-
<Form.Label>Full Name</Form.Label>
22-
<Form.Control type="text" placeholder="Enter name" required />
23-
<Form.Text className="text-muted">
24-
Please Enter your full name
25-
</Form.Text>
26-
</Col>
27-
</Form.Row>
28-
<Form.Row>
29-
<Col>
30-
<Form.Label>Email address</Form.Label>
31-
<Form.Control type="email" placeholder="Enter email" required />
32-
<Form.Text className="text-muted">
33-
We'll never share your email with anyone else.
34-
</Form.Text>
35-
</Col>
36-
</Form.Row>
37-
<Form.Row>
38-
<Col>
39-
<Form.Label>Your Business</Form.Label>
40-
<Form.Control type="text" placeholder="Describe your business" required />
41-
<Form.Text className="text-muted">
42-
We will provide our service based on type of business you have
43-
</Form.Text>
44-
</Col>
45-
</Form.Row>
46-
<Button variant="primary" type="submit" onClick={formSubmit}>
47-
Send Feedback
48-
</Button>
49-
</Form>
18+
<form className="row g-3">
19+
<div className="col-md-6">
20+
<label htmlFor="firstName" class="form-label">First Name</label>
21+
<input type="text" class="form-control" placeholder="Joe" id="firstName" name="fname" />
22+
</div>
23+
<div className="col-md-6">
24+
<label htmlFor="lastName" className="form-label">Last Name</label>
25+
<input type="text" className="form-control" placeholder="Lee" id="lastName" name="lname" />
26+
</div>
27+
<div class="col-12">
28+
<label htmlFor="email" class="form-label">Email</label>
29+
<input type="email" class="form-control" placeholder="j.lee@email.com" id="email" name="email" />
30+
</div>
31+
<div class="col-12">
32+
<label htmlFor="phonenumber" class="form-label">Contact Number</label>
33+
<input type="text" class="form-control" placeholder="Contact Number (optional)" id="phonenumber" name="contact" />
34+
</div>
35+
<div class="col-12">
36+
<label htmlFor="businesstype" class="form-label">Business</label>
37+
<input type="text" class="form-control" placeholder="Drugs & Chemist" id="businesstype" name="business" />
38+
</div>
39+
<div class="col-12">
40+
<label htmlFor="message" class="form-label">Service</label>
41+
<textarea type="text" class="form-control" placeholder="What's service you want from us" id="message" name="message"></textarea>
42+
</div>
43+
<div class="col-md-6">
44+
<label htmlFor="inputCity" class="form-label">City</label>
45+
<input type="text" class="form-control" id="inputCity" />
46+
</div>
47+
<div class="col-md-6">
48+
<label for="inputZip" class="form-label">Zip</label>
49+
<input type="text" class="form-control" id="inputZip" />
50+
</div>
51+
<div class="col-12">
52+
<button type="submit" class="btn btn-primary">Your Feddback</button>
53+
</div>
54+
</form>
5055
</div>
5156
</div>
5257
</div>

src/Components/Pages/Pages.css

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Components/Pages/Pages.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@ $navbar_color: #b753fe;
7070
}
7171
}
7272

73-
#form {
74-
margin: 10px auto;
75-
padding: 10px 5px 0 5px;
76-
}
7773

7874
.carousel-item img {
7975
object-fit: cover;

0 commit comments

Comments
 (0)