forked from PriyaGhosal/BuddyTrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
224 lines (200 loc) · 7.42 KB
/
contact.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us Form</title>
<link rel="stylesheet" href="./style.css">
<link rel="stylesheet" href="./contact.css">
<link rel="icon" href="https://img.icons8.com/?size=100&id=I24lanX6Nq71&format=png&color=000000">
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'>
<link
rel= "stylesheet"
href= "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"
integrity= "sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg=="
crossorigin= "anonymous"
referrerpolicy= "no-referrer"
/>
</head>
<style>
.card {
width: 80%;
margin: 30px auto;
padding: 20px;
margin-bottom: 70px;
border: 1px solid #ccc;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
background-color: #fff;
}
.card-header h2{
color: #fff;
padding: 15px;
margin-bottom: 20px;
text-align: center;
width: 100%;
border-bottom: 1px solid #ddd;
border-radius: 6px;
text-shadow: 2px 2px 10px gray;
}
.card-body {
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-wrap: wrap;
gap: 20px;
}
.form-section {
flex: 1;
min-width: 45%;
color: #121111;
}
.image-section {
flex: 1;
min-width: 45%;
display: flex;
justify-content: center;
align-items: center;
}
.image-section img {
max-width: 100%;
height: auto;
max-height: 500px;
}
.form-group {
margin-bottom: 20px;
color: #fff;
}
label {
display: block;
margin-bottom: 10px;
color: #1e1e1e;
}
input, textarea {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 5px;
color: #121212;
}
textarea {
height: 120px;
}
button[type="submit"] {
background-color: rgb(27, 27, 27);
color: #fff;
padding: 12px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1.5rem;
}
button[type="submit"]:hover {
background-color: black;
}
.error-message {
color: red;
font-size: 0.9em;
margin-top: 5px;
display: none;
}
@media (max-width: 768px) {
.card-body {
flex-direction: column;
}
.form-section, .image-section {
width: 100%;
min-width: 100%;
}
}
</style>
<body>
<div class="container-fluid">
<header style="background-color: black;height:85px;">
<nav style="padding: 5px;width:90%;">
<div class="logo">
<img src="img/logo.png" id="logo-web">
<h1 id="logo"><a href="#home">BuddyTrail</a></h1>
</div>
<!-- Hamburger button for mobile -->
<button class="hamburger" id="hamburger">☰</button>
<ul id="nav-list">
<!-- Close button for dropdown -->
<span class="dropdown-close-btn" id="closeBtn">×</span>
<li><a href="./index.html" class="navhover">Home</a></li>
<li><a href="team.html" class="navhover">Team</a></li>
<li><a href="index.html#deals" class="navhover">Exclusive Deals</a></li>
<li><a href="index.html#benefits" class="navhover">Benefits</a></li>
<li><a href="about.html" class="navhover">About</a></li>
<li><a href="index.html#itineraries" class="navhover">Travel Itineraries</a></li>
<li><a href="./contact.html" class="navhover">Contact</a></li>
<li><a href="index.html#reviews" class="navhover">Reviews</a></li>
<li><a href="auth.html" class="navhover">Sign In</a></li>
</ul>
<!-- Toggle Button -->
<button class="mode-toggle" id="modeToggle">
<span class="sun-icon glow"><img src="day-mode.png" alt="Light mode"></span>
<span class="moon-icon glow" style="display: none;"><img src="moon.png" alt="Dark mode"></span>
</button>
</nav>
</header>
<section id="contactus">
<div class="card pb-5 pt-1">
<div class="card-header">
<h2>Contact Us</h2>
</div>
<div class="card-body">
<div class="form-section">
<form id="contactForm">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="fullname" name="fullname" placeholder="Your name">
<span class="error-message" id="nameError"></span>
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Your email">
<span class="error-message" id="emailError"></span>
</div>
<div class="form-group">
<label for="phone">Phone Number</label>
<input type="tel" id="phone" name="phone" placeholder="Your phone number">
<span class="error-message" id="phoneError"></span>
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea id="message" name="message" placeholder="Your message"></textarea>
<span class="error-message" id="messageError"></span>
</div>
<button type="submit">Send</button>
</form>
</div>
<div class="image-section">
<img src="./image.png" alt="Contact Image" style="max-width: 80%; height: auto; max-height: 500px;">
</div>
</div>
</div>
</section>
</div>
<footer id="footer">
<div class="footer-container">
<!-- About Us Section -->
<div class="footer-column">
<h3>About Us</h3>
<p>Discover and plan affordable trips with BuddyTrail's travel companion tools.</p>
</div>
<!-- Quick Links Section -->
<div class="footer-column">
<h3>Contact Us</h3>
<p>Email: [email protected]</p>
<p>Phone: +123 456 7890</p>
</div>
</div>
<!-- Copyright -->
<div class="footer-bottom">
<p>© 2023 BuddyTrail. All rights reserved.</p>
</div>
</footer>
<script src="./contact.js"></script>
</body>
</html>