-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.php
230 lines (198 loc) · 8 KB
/
contact.php
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<style>
.container {
min-height: 87vh;
}
#ques {
min-height: 433px;
}
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'Roboto', sans-serif;
}
.wrapper {
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.background-container {
width: 100%;
min-height: 100vh;
display: flex;
}
.bg-1 {
flex: 1;
background-color: white;
}
.bg-2 {
flex: 1;
background-color: white;
}
.about-container {
width: 85%;
min-height: 80vh;
position: absolute;
background-color: white;
box-shadow: 24px 24px 30px whitesmoke;
display: flex;
justify-content: center;
align-items: center;
padding: 20px 40px;
border-radius: 5px;
}
.image-container {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
}
.image-container img {
width: 500px;
height: 500px;
margin: 20px;
border-radius: 10px;
}
.text-container {
flex: 1;
display: flex;
justify-content: center;
align-items: flex-start;
flex-direction: column;
font-size: 22px;
}
.text-container h1 {
font-size: 70px;
padding: 20px 0px;
}
.text-container a {
text-decoration: none;
padding: 12px;
margin: 50px 0px;
background-color: #0d6efd;
border: 2px solid transparent;
color: white;
border-radius: 5px;
transition: .3s all ease;
}
.text-container a:hover {
background-color: transparent;
color: black;
border: 2px solid #0d6efd;
}
@media screen and (max-width: 1600px) {
.about-container {
width: 90%;
}
.image-container img {
width: 400px;
height: 400px;
}
.text-container h1 {
font-size: 50px;
}
}
@media screen and (max-width: 1100px) {
.about-container {
flex-direction: column;
}
.image-container img {
width: 300px;
height: 300px;
}
.text-container {
align-items: center;
}
}
</style>
<link href="css/bootstrap.min.css" rel="stylesheet">
<title>Recyippee</title>
</head>
<body>
<?php include 'partials/_dbconnect.php'; ?>
<?php include 'partials/_header.php'; ?>
<div class="wrapper">
<div class="background-container">
<div class="bg-1"></div>
<div class="bg-2"></div>
</div>
<div class="about-container">
<div class="image-container">
<img src="images/logo.jpg" alt="">
</div>
<div class="text-container">
<h1>Contact Us</h1>
<p>Feel free to write to us in case of any suggestion or complaints<br> Just click on the button below fill the form and we will get back to you as soon as possible</p>
<a href="" data-bs-toggle="modal" data-bs-target="#myModal">Contact Us</a>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="margin-top:80px;">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="myModalLabel">Contact Us Form</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<!-- form start -->
<form action="handlecontact.php" method="post">
<table class="table table-hover table-bordered">
<tbody>
<td>First Name:</td>
<td><input type="text" class="form-control" name="fname" placeholder="First Name" /></td>
</tr>
<tr>
<td>Last Name</td>
<td><input type="text" class="form-control" name="lname" placeholder="Last Name" /></td>
</tr>
<tr>
<td>Age Group:</td>
<td>
<div class="radio">
<label><input type="radio" name="agegroup" value="below18">Below 18</label>
</div>
<div class="radio">
<label><input type="radio" name="agegroup" value="18-35">18-35</label>
</div>
<div class="radio">
<label><input type="radio" name="agegroup" value="35-60">35-60</label>
</div>
<div class="radio">
<label><input type="radio" name="agegroup" value="60+">60+</label>
</div>
</td>
</tr>
<tr>
<td>E-mail Id</td>
<td>
<input class="form-control" type="email" id="email" name="email" placeholder="[email protected]" />
</td>
</tr>
<tr>
<td>Your message</td>
<td><input type="text" class="form-control" name="message" placeholder="message" /></td>
</tr>
</tbody>
</table>
<input type="submit" name="submit" class="btn btn-primary my-2" value="Send message">
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include 'partials/_footer.php'; ?>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="css/bootstrap.bundle.min.js"></script>
</body>
</html>