-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcities.php
More file actions
311 lines (267 loc) · 7.61 KB
/
cities.php
File metadata and controls
311 lines (267 loc) · 7.61 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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
<?php
session_start();
$conn = mysqli_connect("localhost", "root", "", "tourism");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>About Us | Tourism Information System</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet">
<style>
/* ===== General ===== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
←

     
RecentFavourites
 
New
barber_point
information_schema
Library
LMS
medpoint}
body {
background: linear-gradient(to right, #e0f7fa, #f0f0f5);
color: #333;
line-height: 1.6;
}
a { text-decoration: none; }
/* ===== Navbar ===== */
nav {
background-color: #00695c;
padding: 12px 0;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
nav ul {
display: flex;
justify-content: center;
list-style: none;
flex-wrap: wrap;
align-items: center;
}
nav ul li {
margin: 5px;
color: white;
}
.username {
font-weight: bold;
color: #ffeb3b;
margin-left: 10px;
}
nav ul li a {
color: white;
text-decoration: none;
padding: 10px 20px;
font-weight: 600;
border-radius: 8px;
transition: 0.3s;
}
nav ul li a:hover {
background-color: #004d40;
}
/* ===== Hero Section ===== */
.hero {
height: 50vh;
background: url('images/nepal_hero.jpg') no-repeat center center/cover;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: #fff;
position: relative;
}
.hero h1 {
font-size: 36px;
font-weight: 700;
background: linear-gradient(135deg, #DC143C, #003893);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
padding: 20px 30px;
border-radius: 15px;
box-shadow: 0 8px 20px rgba(0,0,0,0.4);
line-height: 1.2;
transition: transform 0.3s ease;
}
.hero h1:hover { transform: scale(1.05); }
/* ===== Section Title ===== */
.section-title {
padding: 20px 50px;
color: white;
font-size: 36px;
font-weight: 700;
text-align: center;
margin: 50px auto 30px;
box-shadow: 0 12px 35px rgba(0,0,0,0.25);
background: linear-gradient(270deg, #DC143C, #003893, #DC143C);
background-size: 600% 600%;
animation: gradientMove 6s ease infinite;
}
@keyframes gradientMove {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
.section-title::after {
content: "";
display: block;
width: 150px;
height: 6px;
background: #ffffff;
margin: 15px auto 0;
border-radius: 5px;
}
.section-title:hover { transform: scale(1.05); transition: transform 0.3s ease; }
/* ===== About Section ===== */
.about-section {
max-width: 1000px;
margin: 40px auto;
padding: 0 20px;
text-align: justify;
font-size: 16px;
color: #444;
}
.about-section p {
margin-bottom: 20px;
}
.highlight {
color: #DC143C;
font-weight: 700;
}
/* ===== Destinations Cards ===== */
.destinations {
display: flex;
flex-wrap: wrap;
gap: 25px;
justify-content: center;
padding: 20px 15px;
}
.card {
width: 300px;
background: #fff;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
transition: transform 0.4s ease, box-shadow 0.4s ease;
display: flex;
flex-direction: column;
}
.card:hover {
transform: translateY(-10px) scale(1.05);
box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.card img {
width: 100%;
height: 200px;
object-fit: cover;
transition: transform 0.4s ease;
}
.card:hover img {
transform: scale(1.1);
}
.card-content {
padding: 20px;
flex: 1;
}
.card-content h3 {
color: #00695c;
margin-bottom: 12px;
font-size: 20px;
font-weight: 700;
}
.card-content p {
font-size: 14px;
color: #555;
margin-bottom: 12px;
}
.card-content a {
display: inline-block;
margin-top: 10px;
padding: 8px 18px;
background-color: #00796b;
color: white;
border-radius: 25px;
font-size: 14px;
font-weight: 600;
transition: 0.3s;
}
.card-content a:hover {
background-color: #004d40;
}
/* ===== Footer ===== */
footer {
padding: 25px;
text-align: center;
background-color: #00695c;
color: #fff;
font-weight: 600;
margin-top: 50px;
box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}
/* ===== Responsive ===== */
@media screen and (max-width: 1000px) {
.card { width: 45%; }
}
@media screen and (max-width: 600px) {
.card { width: 90%; }
.hero h1 { font-size: 28px; }
.section-title { font-size: 28px; }
.about-section { font-size: 15px; }
}
</style>
</head>
<body>
<!-- Navbar -->
<nav>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="contacts.php">Contact</a></li>
<?php if (isset($_SESSION["username"])) { ?>
<li class="username"><?php echo $_SESSION["username"]; ?></li>
<li><a href="logout.php">Logout</a></li>
<?php } else { ?>
<?php } ?>
</ul>
</nav>
<!-- About Section -->
<section class="about-section">
<p>Welcome to our <span class="highlight">Tourism Information System</span>, your complete guide to exploring the natural beauty and cultural richness of Nepal. Our platform provides travelers, tourists, and locals with comprehensive details about destinations, hotels, activities, and cultural events.</p>
<p>Nepal is a land of <span class="highlight">majestic mountains, serene lakes, and lush forests</span>. From the towering Himalayas to the spiritual city of Lumbini, the bustling streets of Kathmandu, and the peaceful lakes of Pokhara, our system ensures you have all the information you need to plan your journey efficiently.</p>
<p>With features like <span class="highlight">destination descriptions, accommodation details, cultural insights, and interactive navigation</span>, our goal is to make exploring Nepal easier, safer, and more enjoyable. Whether you are an adventurer, culture enthusiast, or spiritual seeker, our platform is your perfect travel companion.</p>
</section>
<!-- Popular Destinations Section -->
<h2 class="section-title">Popular Destinations</h2>
<section class="destinations">
<?php
$sql = "SELECT * FROM destination";
$result = mysqli_query($conn, $sql);
while ($row = mysqli_fetch_assoc($result)) { ?>
<div class="card">
<img src="<?php echo $row["imageURL"]; ?>" alt="<?php echo $row[
"destination"
]; ?>">
<div class="card-content">
<h3><?php echo $row["destination"]; ?></h3>
<p><?php echo $row["description"]; ?></p>
<a href="destinations.php?query=<?php echo $row[
"destinationID"
]; ?>">View More</a>
</div>
</div>
<?php }
?>
</section>
<!-- Footer -->
<footer>
<p>© 2025 Tourism Information System | Designed by Ishim Ghimire</p>
</footer>
</body>
</html>