-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.php
More file actions
171 lines (147 loc) · 5.83 KB
/
contact.php
File metadata and controls
171 lines (147 loc) · 5.83 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
<?php include('config.php'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Contact Us - XYZ College</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/js/all.min.js"></script>
<style>
/* Global Styles */
body {
font-family: 'Poppins', sans-serif;
background-color: #f8f9fa;
color: #333;
}
/* Hero Section */
.hero {
background: linear-gradient(135deg, #007bff, #6610f2);
color: white;
padding: 70px 0;
text-align: center;
}
/* Contact Form Section */
.contact-section {
padding: 60px 0;
}
.form-control {
padding: 12px;
border-radius: 10px;
}
.btn-custom {
background-color: #007bff;
color: white;
border-radius: 50px;
padding: 10px 25px;
transition: all 0.3s ease;
}
.btn-custom:hover {
background-color: #0056b3;
transform: translateY(-3px);
}
/* Contact Info Cards */
.contact-card {
padding: 20px;
border-radius: 15px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
background-color: white;
transition: all 0.3s ease;
}
.contact-card:hover {
transform: translateY(-5px);
box-shadow: 0 0 25px rgba(0, 123, 255, 0.3);
}
/* Map Section */
.map-container {
margin-top: 40px;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
/* Footer */
footer {
background-color: #343a40;
color: white;
padding: 20px 0;
text-align: center;
margin-top: 50px;
}
</style>
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<a class="navbar-brand" href="index.php"><i class="fas fa-graduation-cap"></i> XYZ College</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="index.php">Home</a></li>
<li class="nav-item"><a class="nav-link" href="about.php">About Us</a></li>
<li class="nav-item"><a class="nav-link" href="courses.php">Courses</a></li>
<li class="nav-item"><a class="nav-link active" href="contact.php">Contact</a></li>
<li class="nav-item"><a class="btn btn-primary btn-custom" href="auth/login.php">Login</a></li>
<li class="nav-item"><a class="btn btn-success btn-custom ms-2" href="auth/register.php">Register</a></li>
</ul>
</div>
</div>
</nav>
<!-- Hero Section -->
<div class="hero">
<h1>Contact Us</h1>
<p>We’d love to hear from you. Get in touch with us today!</p>
</div>
<!-- Contact Section -->
<section class="contact-section">
<div class="container">
<div class="row">
<!-- Contact Form -->
<div class="col-md-7">
<h2 class="mb-4">📬 Send Us a Message</h2>
<form action="send_message.php" method="POST">
<div class="mb-3">
<label for="name" class="form-label">Full Name</label>
<input type="text" class="form-control" id="name" name="name" required>
</div>
<div class="mb-3">
<label for="email" class="form-label">Email Address</label>
<input type="email" class="form-control" id="email" name="email" required>
</div>
<div class="mb-3">
<label for="subject" class="form-label">Subject</label>
<input type="text" class="form-control" id="subject" name="subject" required>
</div>
<div class="mb-3">
<label for="message" class="form-label">Message</label>
<textarea class="form-control" id="message" name="message" rows="5" required></textarea>
</div>
<button type="submit" class="btn btn-custom">Send Message</button>
</form>
</div>
<!-- Contact Info -->
<div class="col-md-5">
<h2 class="mb-4">🏫 College Information</h2>
<div class="contact-card mb-3">
<h5><i class="fas fa-map-marker-alt"></i> Address</h5>
<p>XYZ College, 123 College Road, Cityville, USA</p>
</div>
<div class="contact-card mb-3">
<h5><i class="fas fa-phone-alt"></i> Phone</h5>
<p>+1 (123) 456-7890</p>
</div>
<div class="contact-card">
<h5><i class="fas fa-envelope"></i> Email</h5>
<p>info@xyzcollege.com</p>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer>
© <?= date('Y'); ?> XYZ College. All rights reserved.
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>