-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontactus.html
More file actions
198 lines (170 loc) · 5.18 KB
/
contactus.html
File metadata and controls
198 lines (170 loc) · 5.18 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
line-height: 1.6;
}
.uncolored-link {
color: inherit;
text-decoration: none;
}
.banner {
text-align: center;
background-color: #ffffff;
margin: 0 auto;
}
.banner img {
max-width: 100%;
height: auto;
}
.contact-form {
padding: 40px 0;
margin: 0 10px;
}
.form-container {
max-width: 40%;
margin: 0 auto;
padding: 20px;
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.contact-form h2 {
text-align: center;
margin-bottom: 20px;
}
.form-group {
margin-bottom: 20px;
}
.form-container label {
display: block;
font-weight: bold;
}
.form-container input,
textarea {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
margin-bottom: 1rem;
resize: vertical;
}
.submit-button {
padding: 10px 20px;
background-color: #0dac30;
border: none;
color: white;
border-radius: 4px;
font-size: 1rem;
cursor: pointer;
}
.contact-info {
text-align: center;
padding: 50px 0;
background-color: #f7f7f7;
}
.contact-info h2 {
margin-bottom: 20px;
}
.vertical-line {
position: absolute;
top: 0;
right: 0;
width: 305px;
height: 148%;
background-color: #e9d1ca;
}
.text-on-line {
position: absolute;
top: 1%;
right: -320%;
transform: translateY(-50%) rotate(90deg);
color: white;
font-family: 'Gill Sans', 'Gill Sans MT', sans-serif;
-webkit-text-fill-color: transparent;
-webkit-text-stroke-width: 1.6px;
-webkit-text-stroke-color: rgb(255, 255, 255);
font-weight: 900;
text-transform: lowercase;
font-size: 158px;
white-space: nowrap;
}
</style>
<script>
function validate() {
var name = document.myform.name.value;
var email = document.myform.email.value;
var phone = document.myform.phone.value;
var atpos = email.indexOf("@");
var dotpos = email.lastIndexOf(".");
if (name == "" || phone == "" || email == "") {
alert("Please fill everything");
return false;
}
if (phone.length !== 10 || isNaN(phone)) {
alert("Phone number is not correct.");
return false;
}
if (atpos < 1 || (dotpos - atpos) < 2) {
alert("Please enter a correct email ID.");
return false;
}
return true;
}
</script>
</head>
<body>
<div class="vertical-line">
<div class="text-on-line">#############makemegetfit</div>
</div>
<div class="banner">
<img src="images.png" alt="Welcome to our Contact Us page">
<h1>Get in Touch With Us</h1>
<p>
We're here to answer any questions you may have.
</p>
</div>
<div class="contact-form">
<div class="form-container">
<h2>Your Details</h2>
<form name="myform" onsubmit="return validate()">
<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="text" id="email" name="email">
</div>
<div class="form-group">
<label for="phone">Phone:</label>
<input type="text" id="phone" name="phone">
</div>
<div class="form-group">
<label for="message">Message:</label>
<textarea id="message" name="message" rows="4" required></textarea>
</div>
<button type="submit" class="submit-button">Submit</button>
</form>
</div>
</div>
<div class="contact-info">
<h2>Contact Information</h2>
<address>
getfit<br>
Kathirvel Complex<br>
Pollachi Main Road,<br>
Tamil Nadu 641050<br>
Phone: <a href="tel:9955337722">9955337722</a><br>
Email: <a href="mailto:getfit@gmail.com">getfit@gmail.com</a>
</address>
</div>
</body>
</html>