forked from iamrahulmahato/master-web-development
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
126 lines (109 loc) · 4.12 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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us Page</title>
</head>
<style>
.card {
width: 50%; /* Set a specific width */
margin: 10px auto; /* Center horizontally with automatic margins */
padding: 20px; /* Add padding */
margin-bottom: 70px;
border: 1px solid #ccc; /* Optional: Add a border */
border-radius: 8px; /* Optional: Add rounded corners */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optional: Add shadow */
background-color: #c2c4c7;
}
.card-header {
color: #080808;
padding:1px 10px 1px 10px;
margin:1px 10px 6px 10px;
text-align: center;
width: 90%;
border-bottom: px solid #ddd;
border-radius: 6px;
}
.card-header h1 {
font-size: 40px;
}
.card-body {
display: flex;
justify-content: space-between; /* Form on the left and image on the right */
align-items: flex-start; /* Align content to the top */
background-color: #c2c4c7;
}
.form-section {
width: 50%; /* Width for the form section */
}
.image-section {
width: 50%; /* Width for the image section */
display: flex;
justify-content: center; /* Center the image */
align-items: center;
}
.image-section img {
max-width: 100%; /* Make sure image does not exceed its container width */
height: auto;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 10px;
}
input, textarea {
width: 100%; /* Adjust width for better alignment */
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
textarea {
height: 100px; /* Adjust height for textarea */
}
button[type="submit"] {
background-color: fa2b4d;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
button[type="submit"]:hover {
background-color: #ff032d;
}
</style>
<body>
<section id="contact us" style="padding-top:30px">
<div class="card pb-5 pt-1">
<div class="card-header">
<h1>Contact Us</h1>
</div>
<div class="card-body">
<div class="form-section">
<form>
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" placeholder="Your name">
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Your email">
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea id="message" name="message" placeholder="Your message"></textarea>
</div>
<button type="submit">Send</button>
</form>
</div>
<div class="image-section">
<img src="./7725176.jpg" alt="Contact Image"style="max-width: 80%; height: auto; max-height: 500px;">
</div>
</div>
</div>
</section>
</body>
</html>