forked from iamrahulmahato/master-web-development
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
171 lines (150 loc) · 6.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="icon" href="./faviconicon.png" type="image/png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us</title>
<title>Contact Us Page</title>
<link rel="shortcut icon" href="./faviconicon.png" type="image/x-icon">
</head>
<style>
body {
font-family: 'Arial', sans-serif; /* Clean font */
background-color: #f0f0f0; /* Light background for contrast */
color: #333; /* Default text color */
margin: 0; /* Reset margins */
padding: 0; /* Reset padding */
transition: background-color 0.3s; /* Smooth background transition */
}
.card {
width: 50%; /* Original width */
margin: 10px auto; /* Center horizontally */
padding: 20px; /* Padding inside card */
margin-bottom: 70px; /* Space below the card */
border: 1px solid #ddd; /* Card border */
border-radius: 8px; /* Rounded corners */
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Shadow effect */
background-color: #ffffff; /* White background */
transition: transform 0.3s; /* Card hover effect */
}
.card:hover {
transform: translateY(-5px); /* Lift card on hover */
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover */
}
.card-header {
text-align: center; /* Center header text */
padding: 10px; /* Header padding */
background-color: #fa2b4d; /* Header background color */
color: white; /* White text */
border-radius: 8px 8px 0 0; /* Round top corners */
}
.card-header h1 {
font-size: 32px; /* Original font size */
margin: 0; /* Remove default margin */
}
.card-body {
display: flex; /* Flexbox for layout */
justify-content: space-between; /* Space between form and image */
align-items: flex-start; /* Align items at the top */
padding: 20px; /* Body padding */
}
.form-section {
width: 50%; /* Form section width */
padding-right: 10px; /* Space between form and image */
}
.image-section {
width: 50%; /* Image section width */
display: flex; /* Flexbox for centering */
justify-content: center; /* Center the image */
align-items: center; /* Align image vertically */
}
.image-section img {
max-width: 90%; /* Responsive image */
height: auto; /* Maintain aspect ratio */
border-radius: 5px; /* Slight rounding */
transition: transform 0.3s; /* Image hover effect */
}
.image-section img:hover {
transform: scale(1.05); /* Scale image on hover */
}
.form-group {
margin-bottom: 20px; /* Space between form groups */
}
label {
display: block; /* Block for better layout */
margin-bottom: 5px; /* Space below label */
font-weight: bold; /* Bold labels for visibility */
color: #555; /* Slightly lighter color for labels */
transition: color 0.3s, transform 0.3s; /* Transition for label hover effect */
}
label:hover {
color: #fa2b4d; /* Change label color on hover */
transform: scale(1.05); /* Slightly scale label */
}
input, textarea {
width: 100%; /* Full width inputs */
padding: 10px; /* Padding for inputs */
border: 1px solid #ccc; /* Border for inputs */
border-radius: 5px; /* Rounded corners */
font-size: 16px; /* Font size for inputs */
transition: border-color 0.3s, box-shadow 0.3s; /* Transition for inputs */
}
input:focus, textarea:focus {
border-color: #fa2b4d; /* Change border color on focus */
box-shadow: 0 0 5px rgba(250, 43, 77, 0.5); /* Shadow on focus */
outline: none; /* Remove outline */
}
textarea {
height: 100px; /* Height for textarea */
resize: vertical; /* Allow vertical resizing only */
}
button[type="submit"] {
background-color: #fa2b4d; /* Button color */
color: #fff; /* White text */
padding: 10px 20px; /* Padding for button */
border: none; /* No border */
border-radius: 5px; /* Rounded corners */
cursor: pointer; /* Pointer cursor */
font-size: 16px; /* Font size for button */
transition: background-color 0.3s, transform 0.2s; /* Button transitions */
}
button[type="submit"]:hover {
background-color: #ff032d; /* Darker shade on hover */
transform: translateY(-2px); /* Lift button on hover */
}
</style>
</head>
<body>
<section id="contact" style="padding-top:30px;">
<div class="card">
<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" required>
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Your email" required>
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea id="message" name="message" placeholder="Your message" required></textarea>
</div>
<button type="submit">Send</button>
</form>
</div>
<div class="image-section">
<img src="./7725176.jpg" alt="Contact Image">
</div>
</div>
</div>
</section>
</body>
</html>