-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
138 lines (121 loc) · 4.66 KB
/
index.html
File metadata and controls
138 lines (121 loc) · 4.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Form</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"> <!-- Add Font Awesome CSS -->
<style>
body {
font-family: Arial, sans-serif;
background-color: #f3f3f3;
margin: 0;
padding: 0;
}
.container {
max-width: 800px;
margin: 0 auto;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
display: flex;
margin-top: 5%;
}
.column {
flex: 1;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}
.column:nth-child(2) {
background-image: url('https://img.freepik.com/premium-photo/contact-us-business-icon-computer-keyboard-with-globe_117856-2468.jpg'); /* Add your image URL here */
background-size: cover;
background-color: rgba(0, 0, 0, 0.9);
background-blur: 10px; /* Apply a slight blur to the background */
}
h2 {
font-size: 24px;
margin-bottom: 20px;
}
.custom-label {
font-weight: bold;
text-align: right; /* Adjust text alignment as desired */
}
input, textarea {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 5px;
}
button {
background-color: #007BFF;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
/* Add styles for icons */
.icon {
font-size: 24px;
margin-bottom: 10px;
}
/* Style the contact information in the second column */
.contact-info {
color: #fff;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
@media (max-width: 768px) {
.container {
flex-direction: column;
}
.column {
width: 100%;
border-left: none;
padding: 10px;
}
}
</style>
</style>
</head>
<body>
<div class="container">
<div class="column">
<i class="fas fa-user icon"></i>
<h2>Contact Us</h2>
<form>
<label for="name" class="custom-label">Name:</label>
<input type="text" id="name" name="name" placeholder="Enter Your Name" required>
<label for="email" class="custom-label">Email:</label>
<input type="email" id="email" name="email" placeholder="email@example.com" required>
<label for="message" class="custom-label">Message:</label>
<textarea id="message" name="message" rows="4" placeholder="Enter Your Query Here"></textarea>
<button type="submit">Submit</button>
</form>
</div>
<div class="column">
<div class="contact-info">
<h2>Contact Information</h2>
<i class="fas fa-map-marker-alt icon"></i>
<p><strong>Address:</strong> 123 Main St, City, Country</p>
<i class="fas fa-envelope icon"></i>
<p><strong>Email:</strong> <a href="mailto:info@example.com" style="color: #fff;">info@example.com</a></p>
<i class="fas fa-globe icon"></i>
<p><strong>Website:</strong> <a href="http://www.example.com" target="_blank" style="color: #fff;">www.example.com</a></p>
<p>Feel free to contact us for any inquiries or assistance.</p>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
</body>
</html>