Skip to content

Commit 4966dd1

Browse files
birbhCopilot
andcommitted
update the explorer button
Co-authored-by: Copilot <copilot@github.com>
1 parent 9c91f4a commit 4966dd1

10 files changed

Lines changed: 200 additions & 30 deletions

File tree

README.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,24 @@ Explore Nepal's 7 provinces, 77 districts, and rich cultural heritage with this
44

55
## Features
66

7-
- **Interactive SVG Map**: Clickable provinces with color-coded regions.
8-
- **Province Pages**: Detailed info for each province (geography, districts, culture, tourism, essentials, economy).
9-
- **UNESCO Sites**: Highlights of Nepal's World Heritage Sites.
10-
- **Cultural Highlights**: Major festivals, cuisines, and traditional dress.
11-
- **Tourist Explorer Module**: Search and filter destinations by interest, season, budget, and trip length.
7+
- **Interactive Map**: Clickable color-coded provinces and districts
8+
- **Province Pages**: Geography, districts, culture, tourism, essentials, and economy info
9+
- **Tourist Explorer**: Search and filter destinations by interest, season, budget, and trip length
10+
- **Cultural Content**: UNESCO sites, festivals, cuisines, and traditional dress
11+
- **Responsive Design**: Optimized for desktop, tablet, and mobile
12+
- **Navigation**: Floating action button and back-to-top button for easy browsing
1213

13-
- **Responsive Design**: Works on desktop and mobile.
14-
15-
16-
17-
## How to Use
18-
19-
1. Open `index.html` in your browser.
20-
2. Click any province to explore detailed pages.
21-
3. Open `explore/index.html` for the Tourist Explorer planner.
14+
## Quick Start
2215

16+
1. Open `index.html` in your browser
17+
2. Click any province to explore detailed information
18+
3. Use the Tourist Explorer button to search destinations
19+
4. Navigate with floating action and back-to-top buttons
2320

2421
## Credits
2522

26-
- Created by **Biraj Bhattarai**
27-
- Icons and images: [Pixabay](https://pixabay.com/) and project assets
23+
Created by Biraj Bhattarai | Icons & images: [Pixabay](https://pixabay.com/) and project assets
2824

2925
---
3026

31-
Enjoy exploring Nepal!
27+
Explore Nepal today!

css/style.css

Lines changed: 131 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,24 @@ a {
243243
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
244244
}
245245

246+
/* Tourist Explorer Button */
247+
.navbar a[href*="explore"] {
248+
background: var(--primary-red);
249+
color: white;
250+
padding: 0.6rem 1.2rem;
251+
border-radius: 6px;
252+
font-weight: 600;
253+
box-shadow: var(--shadow);
254+
position: relative;
255+
overflow: hidden;
256+
}
257+
258+
.navbar a[href*="explore"]:hover, .navbar a[href*="explore"]:focus {
259+
background: #B81130;
260+
transform: translateY(-2px);
261+
box-shadow: var(--shadow-hover);
262+
}
263+
246264
.navbar a:focus-visible,
247265
.back-button:focus-visible,
248266
.reset-btn:focus-visible,
@@ -268,18 +286,19 @@ body[class*="province-"] .navbar a.is-active {
268286
right: 1rem;
269287
bottom: 1rem;
270288
border: 0;
271-
border-radius: 999px;
289+
border-radius: 6px;
272290
background: var(--primary-blue);
273291
color: #fff;
274-
font-weight: 700;
275-
padding: 0.65rem 1rem;
292+
font-weight: 600;
293+
padding: 0.6rem 1rem;
294+
font-size: 0.9rem;
276295
box-shadow: var(--shadow);
277296
cursor: pointer;
278297
opacity: 0;
279298
visibility: hidden;
280299
transform: translateY(8px);
281300
transition: var(--transition);
282-
z-index: 60;
301+
z-index: 70;
283302
}
284303

285304
.back-to-top.visible {
@@ -288,15 +307,115 @@ body[class*="province-"] .navbar a.is-active {
288307
transform: translateY(0);
289308
}
290309

291-
/* ============================================= */
292-
/* Main Page Styles */
293-
/* ============================================= */
310+
.back-to-top:hover, .back-to-top:focus {
311+
transform: translateY(-2px);
312+
box-shadow: var(--shadow-hover);
313+
}
314+
315+
/* Floating Explorer Button */
316+
.floating-action-btn {
317+
position: fixed;
318+
bottom: 5rem;
319+
right: 1rem;
320+
width: 55px;
321+
height: 55px;
322+
background: var(--primary-red);
323+
color: white;
324+
border: none;
325+
border-radius: 50%;
326+
font-size: 1.6rem;
327+
box-shadow: var(--shadow);
328+
cursor: pointer;
329+
display: flex;
330+
align-items: center;
331+
justify-content: center;
332+
text-decoration: none;
333+
z-index: 60;
334+
transition: all 0.3s ease;
335+
animation: float-gentle 3s ease-in-out infinite;
336+
}
337+
338+
.floating-action-btn:hover, .floating-action-btn:focus {
339+
transform: translateY(-5px);
340+
box-shadow: var(--shadow-hover);
341+
animation: none;
342+
}
343+
344+
@keyframes float-gentle {
345+
0%, 100% {
346+
transform: translateY(0px);
347+
}
348+
50% {
349+
transform: translateY(-10px);
350+
}
351+
}
352+
353+
@media (max-width: 768px) {
354+
.floating-action-btn {
355+
width: 50px;
356+
height: 50px;
357+
font-size: 1.4rem;
358+
bottom: 4.5rem;
359+
right: 0.8rem;
360+
}
361+
362+
.back-to-top {
363+
bottom: 0.8rem;
364+
right: 0.8rem;
365+
padding: 0.5rem 0.8rem;
366+
font-size: 0.85rem;
367+
}
368+
}
369+
294370
.map-container {
295371
max-width: 1200px;
296372
margin: 2rem auto;
297373
padding: 0 1rem;
298374
}
299375

376+
/* Featured Explorer Section */
377+
.featured-explorer {
378+
background-color: var(--card-bg);
379+
border-radius: 8px;
380+
padding: 2rem;
381+
margin: 2rem 0;
382+
box-shadow: var(--shadow);
383+
}
384+
385+
.featured-explorer h3 {
386+
color: var(--primary-red);
387+
font-size: 1.2rem;
388+
margin-bottom: 1rem;
389+
}
390+
391+
.featured-explorer p {
392+
color: var(--text-dark);
393+
max-width: 80ch;
394+
margin-bottom: 1.5rem;
395+
line-height: 1.6;
396+
}
397+
398+
.featured-cta {
399+
display: inline-block;
400+
padding: 0.8rem 1.5rem;
401+
background: var(--primary-red);
402+
color: white;
403+
border: none;
404+
border-radius: 6px;
405+
font-weight: 600;
406+
font-size: 0.95rem;
407+
cursor: pointer;
408+
text-decoration: none;
409+
transition: var(--transition);
410+
box-shadow: var(--shadow);
411+
}
412+
413+
.featured-cta:hover, .featured-cta:focus {
414+
transform: translateY(-2px);
415+
box-shadow: var(--shadow-hover);
416+
background: #B81130;
417+
}
418+
300419
.about-grid {
301420
display: grid;
302421
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
@@ -729,9 +848,8 @@ body[class*="province-"] .navbar a.is-active {
729848
display: block;
730849
}
731850

732-
/* ============================================= */
851+
733852
/* Culture Section */
734-
/* ============================================= */
735853
.culture-tabs {
736854
margin-top: 2rem;
737855
}
@@ -1271,9 +1389,9 @@ body[class*="province-"] .navbar a.is-active {
12711389
padding-top: 0.5rem;
12721390
}
12731391

1274-
/* ============================================= */
1392+
12751393
/* Footer Styles */
1276-
/* ============================================= */
1394+
12771395
.footer {
12781396
background-color: var(--primary-blue);
12791397
color: var(--primary-white);
@@ -1481,3 +1599,5 @@ body[class*="province-"] .navbar a.is-active {
14811599
}
14821600
}
14831601

1602+
1603+

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ <h3>Did You Know?</h3>
8080
</div>
8181
</section>
8282

83+
<!-- Featured Travel Explorer -->
84+
<section class="featured-explorer">
85+
<div class="container">
86+
<h3>Explore Beyond the Map</h3>
87+
<p>The Tourist Explorer helps you plan your trip based on season, budget, and travel interests. Complement the interactive map with practical destination recommendations.</p>
88+
<a href="explore/index.html" class="featured-cta">Visit Tourist Explorer</a>
89+
</div>
90+
</section>
91+
8392
<section id="map" class="section map-section">
8493
<div class="container">
8594
<h2>Interactive Map of Nepal</h2>
@@ -316,6 +325,10 @@ <h3>Provinces</h3>
316325
<p>&copy; Interactive Nepal Map Project | Designed for Nepal</p>
317326
</div>
318327
</footer>
328+
329+
330+
<a href="explore/index.html" class="floating-action-btn" title="Plan your Nepal trip - Tourist Explorer" aria-label="Go to Tourist Explorer">🗺️</a>
331+
319332
<button class="back-to-top" type="button" aria-label="Back to top">Top</button>
320333
<script>
321334
(async function loadNepalMap() {

provinces/province1.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
}
1717

1818
/* Province-specific colors */
19-
.highlight-card h4,
19+
.highlight-card h4 {
20+
color: #B8860B !important;
21+
}
22+
2023
.tourism-content h3 {
2124
color: var(--province-1);
2225
}
@@ -349,6 +352,11 @@ <h3>Key Attractions</h3>
349352
</div>
350353
</footer>
351354
<script src="province-enhancements.js" defer></script>
355+
356+
<!-- Floating Explorer Button -->
357+
<a href="../explore/index.html" class="floating-action-btn" title="Plan your Nepal trip - Tourist Explorer" aria-label="Go to Tourist Explorer">🗺️</a>
358+
359+
<button class="back-to-top" type="button" aria-label="Back to top">Top</button>
352360
</body>
353361
</html>
354362

provinces/province2.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,5 +345,10 @@ <h3>Key Attractions</h3>
345345
</div>
346346
</footer>
347347
<script src="province-enhancements.js" defer></script>
348+
349+
<!-- Floating Explorer Button -->
350+
<a href="../explore/index.html" class="floating-action-btn" title="Plan your Nepal trip - Tourist Explorer" aria-label="Go to Tourist Explorer">🗺️</a>
351+
352+
<button class="back-to-top" type="button" aria-label="Back to top">Top</button>
348353
</body>
349354
</html>

provinces/province3.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,5 +349,10 @@ <h3>Key Attractions</h3>
349349
</div>
350350
</footer>
351351
<script src="province-enhancements.js" defer></script>
352+
353+
<!-- Floating Explorer Button -->
354+
<a href="../explore/index.html" class="floating-action-btn" title="Plan your Nepal trip - Tourist Explorer" aria-label="Go to Tourist Explorer">🗺️</a>
355+
356+
<button class="back-to-top" type="button" aria-label="Back to top">Top</button>
352357
</body>
353358
</html>

provinces/province4.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
}
1717

1818
/* Province-specific colors */
19-
.highlight-card h4,
19+
.highlight-card h4 {
20+
color: #7CB342 !important; /* Darker green for better readability */
21+
}
22+
2023
.tourism-content h3 {
2124
color: var(--province-4);
2225
}
@@ -347,5 +350,10 @@ <h3>Key Attractions</h3>
347350
</div>
348351
</footer>
349352
<script src="province-enhancements.js" defer></script>
353+
354+
<!-- Floating Explorer Button -->
355+
<a href="../explore/index.html" class="floating-action-btn" title="Plan your Nepal trip - Tourist Explorer" aria-label="Go to Tourist Explorer">🗺️</a>
356+
357+
<button class="back-to-top" type="button" aria-label="Back to top">Top</button>
350358
</body>
351359
</html>

provinces/province5.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,5 +348,10 @@ <h3>Key Attractions</h3>
348348
</div>
349349
</footer>
350350
<script src="province-enhancements.js" defer></script>
351+
352+
<!-- Floating Explorer Button -->
353+
<a href="../explore/index.html" class="floating-action-btn" title="Plan your Nepal trip - Tourist Explorer" aria-label="Go to Tourist Explorer">🗺️</a>
354+
355+
<button class="back-to-top" type="button" aria-label="Back to top">Top</button>
351356
</body>
352357
</html>

provinces/province6.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,5 +347,10 @@ <h3>Key Attractions</h3>
347347
</div>
348348
</footer>
349349
<script src="province-enhancements.js" defer></script>
350+
351+
<!-- Floating Explorer Button -->
352+
<a href="../explore/index.html" class="floating-action-btn" title="Plan your Nepal trip - Tourist Explorer" aria-label="Go to Tourist Explorer">🗺️</a>
353+
354+
<button class="back-to-top" type="button" aria-label="Back to top">Top</button>
350355
</body>
351356
</html>

provinces/province7.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,5 +345,10 @@ <h3>Key Attractions</h3>
345345
</div>
346346
</footer>
347347
<script src="province-enhancements.js" defer></script>
348+
349+
<!-- Floating Explorer Button -->
350+
<a href="../explore/index.html" class="floating-action-btn" title="Plan your Nepal trip - Tourist Explorer" aria-label="Go to Tourist Explorer">🗺️</a>
351+
352+
<button class="back-to-top" type="button" aria-label="Back to top">Top</button>
348353
</body>
349354
</html>

0 commit comments

Comments
 (0)