forked from Its-Aman-Yadav/Community-Site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact us.html
235 lines (203 loc) · 6.69 KB
/
contact us.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
<!-- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
header {
background: #333;
color: #fff;
padding: 10px 0;
text-align: center;
}
header h1 {
margin: 0;
}
main {
padding: 20px;
max-width: 800px;
margin: 20px auto;
background: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
section {
margin-bottom: 20px;
}
footer {
text-align: center;
padding: 10px 0;
background: #333;
color: #fff;
position: fixed;
width: 100%;
bottom: 0;
}
form label {
display: block;
margin-top: 10px;
}
form input, form textarea {
width: 100%;
padding: 10px;
margin-top: 5px;
}
form button {
padding: 10px 20px;
background: #333;
color: #fff;
border: none;
margin-top: 10px;
cursor: pointer;
}
.contact-info {
margin-bottom: 20px;
}
.contact-info h2, .contact-info p {
margin: 5px 0;
}
</style>
</head>
<body>
<header>
<h1>Contact Us</h1>
</header>
<main>
<section class="contact-info">
<h2>Contact Information</h2>
<p><strong>Address:</strong> Noida, Uttar Pradesh</p>
<p><strong>Community:</strong><a href="https://discord.gg/mM9qFh2uZR" class="btn"> Connect with everyone through discord</a></p>
<p><strong>Phone:</strong> +91 8527984813</p>
</section>
<section id="contact">
<h2>Get in Touch</h2>
<p>If you have any questions or would like to reach out, please fill out the form below:</p>
<form id="contact-form">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="message">Message:</label>
<textarea id="message" name="message" required></textarea>
<button type="submit">Submit</button>
</form>
</section>
</main>
<footer>
<p>© 2024 Open Source Community. All rights reserved.</p>
</footer>
<script>
document.getElementById('contact-form').addEventListener('submit', function(event) {
event.preventDefault();
alert('Thank you for your message. We will get back to you soon.');
document.getElementById('contact-form').reset();
});
</script>
</body>
</html> -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us</title>
<style>
.formbody {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background: linear-gradient(0deg, #fae69f 0%, #f1c11a 100%);
}
.formcontainer {
padding: 20px;
max-width: 800px;
margin: 40px auto;
background: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
.section-title {
text-align: center;
margin-bottom: 30px;
}
.section-title h1 {
font-size: 2.5em;
margin-bottom: 10px;
}
.section-title p {
font-size: 1.2em;
color: #666;
}
.contact-form {
padding: 20px;
background: #f9f9f9;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.contact-form .form-control {
width: 100%;
padding: 12px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 16px;
}
.contact-form .submit {
padding: 12px 20px;
background: #f1c11a;
color: black;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.contact-form .submit:hover {
background-color: #d8aa03;
transform: translateY(-2px);
}
</style>
</head>
<div class="formbody">
<main>
<section id="contact">
<div class="formcontainer">
<div class="section-title wow fadeInUp" data-wow-delay="0.3s">
<h1>Get in Touch</h1>
<p>If you have any query or for collaboration</p>
</div>
<div class="contact-form wow fadeInUp" data-wow-delay="1.0s">
<form id="contact-form" action="http://127.0.0.1:5500/send-email" method="POST" onsubmit="sendEmail(); reset(); return false;">
<div class="row">
<div class="col-md-6 col-sm-6">
<input name="name" id="name" type="text" class="form-control" placeholder="Your Name" required>
</div>
<div class="col-md-6 col-sm-6">
<input name="email" type="email" id="email" class="form-control" placeholder="Your Email" required>
</div>
<div class="col-12">
<textarea name="message" class="form-control" id="msg" placeholder="Message" rows="6" required></textarea>
</div>
<div class="col-md-offset-3 col-md-6 col-sm-offset-2 col-sm-8">
<input name="submit" type="submit" class="form-control submit" id="submit" value="SEND MESSAGE">
</div>
</div>
</form>
</div>
</div>
</section>
</main>
<script>
function sendEmail() {
alert('Email sent successfully!');
}
</script>
</div>
</html>