-
Notifications
You must be signed in to change notification settings - Fork 0
/
contactUs.html
328 lines (280 loc) · 6.46 KB
/
contactUs.html
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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us - HGBaquiran College</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" rel="stylesheet">
</head>
<body>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background: url('logos/background.png') no-repeat center center fixed;
background-size: cover;
color: #333;
}
header {
width: 100vw;
/*background: rgba(0, 121, 242, 0.8);*/
color: #fff;
padding: 40px 0;
text-align: center;
}
header h1 {
margin: 0;
}
/* Menu Icon */
.menu-icon {
position: fixed;
top: 20px;
right: 20px;
font-size: 32px;
color: #fff;
cursor: pointer;
z-index: 1000;
}
/* Navigation Links */
nav ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
position: fixed;
top: 70px;
right: 20px;
background: rgba(0, 121, 242, 0.9);
border-radius: 8px;
padding: 10px;
opacity: 0;
transform: scale(0);
transition: opacity 0.3s, transform 0.3s;
z-index: 999;
}
nav ul li {
margin: 10px 0;
}
nav ul li a {
color: white;
font-size: 24px;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
transition: background 0.3s;
}
nav ul li a:hover {
background: rgba(255, 255, 255, 0.4);
}
/* Hidden Navigation */
.hidden {
opacity: 0;
pointer-events: none;
transform: scale(0);
}
/* Visible Navigation */
.visible {
opacity: 1;
pointer-events: all;
transform: scale(1);
}
main {
margin: 40px auto; /* Adds gap between main container and header/footer */
padding: 20px;
width: 80%; /* Adjust the width if necessary */
background: rgba(255, 255, 255, 0.9);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
.contact {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.contact-info {
flex: 1;
max-width: 500px;
margin-right: 20px;
}
.contact-info h3 {
margin-bottom: 20px;
}
.contact-info p {
margin-bottom: 10px;
font-size: 16px;
}
.contact-info .gmaps {
margin-top: 20px;
}
.contact form {
flex: 1;
max-width: 500px;
margin-left: 20px;
}
.contact form .form-group {
width: 400px;
margin-bottom: 20px;
}
.contact form label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.contact form input{
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
.contact form textarea {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
.contact form button {
background-color: #0080ff;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
.contact form button:hover {
background-color: #005bb5;
}
/* Make iframe responsive */
.contact-info iframe {
width: 100%;
height: 300px;
border: 0;
}
/* Footer styling */
footer {
text-align: center;
padding: 0;
margin-top: 240px;
/*background-color: #0080ff;*/
color: white;
}
footer p {
margin: 0;
}
/* Responsive Styles */
@media (max-width: 768px) {
main {
width: 90%;
}
.menu-icon {
font-size: 28px;
}
nav ul {
top: 60px;
right: 10px;
padding: 8px;
}
nav ul li a {
font-size: 20px;
width: 36px;
height: 36px;
}
.contact {
flex-direction: column;
}
}
@media (max-width: 480px) {
main {
width: 95%;
}
.menu-icon {
font-size: 24px;
}
nav ul {
top: 50px;
padding: 5px;
}
nav ul li a {
font-size: 18px;
width: 32px;
height: 32px;
}
.contact-info, .contact form {
min-width: 100%;
margin: 0;
}
.contact-info iframe {
height: 250px;
}
footer{
text-align: center;
padding: 0;
margin-top: 200px;
/*background-color: #0080ff;*/
color: white;
}
}
</style>
<header>
<nav>
<div class="menu-icon" id="menuIcon">
<i class="fas fa-bars"></i> <!-- Menu icon -->
</div>
<ul id="navLinks" class="hidden">
<li><a href="index.html" title="Home"><i class="fas fa-home"></i></a></li>
<li><a href="course.html" title="Courses"><i class="fas fa-book"></i></a></li>
<li><a href="contactUs.html" title="Contact"><i class="fas fa-envelope"></i></a></li>
<li><a href="aboutUs.html" title="About"><i class="fas fa-info-circle"></i></a></li>
</ul>
</nav>
</header>
<main>
<section class="contact">
<form action="#" method="post">
<h2>Contact Us</h2>
<p>If you have any questions or need further information, feel free to reach out to us using the form below or through our contact details.</p>
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="message">Message:</label>
<textarea id="message" name="message" rows="5" required></textarea>
</div>
<button type="submit">Send Message</button>
</form>
<div class="contact-info">
<h3>Contact Information</h3>
<p><strong>Email:</strong> [email protected]</p>
<p><strong>Phone:</strong> +123 456 7890</p>
<p><strong>Address:</strong> Centro Tumauini Maharlika Highway, HGBaquiran College, Philippines</p>
<p class="gmaps">
<iframe src="https://www.google.com/maps/embed?pb=!3m2!1sen!2sph!4v1731652225464!5m2!1sen!2sph!6m8!1m7!1sJb377HhuG0yufFNuRO_2ew!2m2!1d17.27615769961029!2d121.8090870578938!3f252.36406!4f0!5f0.7820865974627469" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
</p>
</div>
</section>
</main>
<footer>
<p>© 2024 HGBaquiran College. All rights reserved.</p>
</footer>
</body>
<script>
const menuIcon = document.getElementById('menuIcon');
const navLinks = document.getElementById('navLinks');
menuIcon.addEventListener('click', () => {
// Toggle visibility
navLinks.classList.toggle('hidden');
navLinks.classList.toggle('visible');
});
</script>
</html>