Skip to content

Commit 0051e12

Browse files
authored
Merge pull request #19 from swastijain132005/bihar-culture-map-update
Bihar tourism map and image addition and ui fix
2 parents 74e618a + a2fd7e9 commit 0051e12

File tree

9 files changed

+328
-24
lines changed

9 files changed

+328
-24
lines changed
1.03 MB
Loading
2.51 MB
Loading
2.87 MB
Loading
1.9 MB
Loading
905 KB
Loading
6.06 MB
Loading

bihar-culture-landing/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ <h2>Bihar Culture</h2>
2424
<a href="festivals.html" class="nav-link">Festivals & Traditions</a>
2525
<a href="tourism.html" class="nav-link">Travel & Tourism</a>
2626
<a href="modern.html" class="nav-link">Modern Bihar</a>
27+
28+
29+
2730
</div>
2831
</nav>
2932

@@ -70,6 +73,10 @@ <h3>Modern Bihar</h3>
7073
<p>Learn about contemporary developments, educational institutions, and the progressive face of modern Bihar.</p>
7174
<span class="explore-link">Explore Modern Bihar →</span>
7275
</div>
76+
77+
78+
79+
7380
</section>
7481

7582
<section class="highlights-section">

bihar-culture-landing/style.css

Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,3 +509,202 @@ footer {
509509
.feature-card img:hover {
510510
transform: scale(1.03); /* ✅ Adds subtle hover zoom */
511511
}
512+
513+
514+
/* Theme Toggle Button */
515+
.theme-toggle-wrapper {
516+
display: flex;
517+
align-items: center;
518+
}
519+
520+
.theme-toggle-btn {
521+
background: var(--white);
522+
border: 2px solid var(--primary-color);
523+
border-radius: 50px;
524+
padding: 0.5rem 1rem;
525+
cursor: pointer;
526+
display: flex;
527+
align-items: center;
528+
justify-content: center;
529+
gap: 0.5rem;
530+
font-size: 1.2rem;
531+
transition: all 0.3s ease;
532+
box-shadow: var(--shadow);
533+
}
534+
535+
.theme-toggle-btn:hover {
536+
background: var(--primary-color);
537+
color: var(--white);
538+
transform: translateY(-2px);
539+
box-shadow: var(--shadow-hover);
540+
}
541+
542+
.theme-toggle-btn .sun,
543+
.theme-toggle-btn .moon {
544+
display: inline-block;
545+
transition: transform 0.3s ease;
546+
}
547+
548+
/* Optional: Animate icon swap */
549+
body.dark-mode .theme-toggle-btn .sun {
550+
transform: rotate(180deg) scale(0);
551+
}
552+
body.dark-mode .theme-toggle-btn .moon {
553+
transform: rotate(360deg) scale(1);
554+
}
555+
556+
557+
/* Locations Grid */
558+
.locations-grid {
559+
display: grid;
560+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
561+
gap: 2rem;
562+
margin: 3rem 0;
563+
}
564+
565+
.location-card {
566+
background: var(--white);
567+
border-radius: var(--border-radius);
568+
box-shadow: var(--shadow);
569+
padding: 1rem;
570+
text-align: center;
571+
transition: var(--transition);
572+
}
573+
574+
.location-card img {
575+
width: 100%;
576+
height: 180px;
577+
object-fit: cover;
578+
border-radius: var(--border-radius);
579+
margin-bottom: 1rem;
580+
}
581+
582+
.location-card h3 {
583+
color: var(--primary-color);
584+
margin-bottom: 0.5rem;
585+
}
586+
587+
.location-card p {
588+
color: var(--text-light);
589+
font-size: 0.95rem;
590+
margin-bottom: 1rem;
591+
}
592+
593+
.map-link {
594+
display: inline-block;
595+
color: var(--primary-color);
596+
text-decoration: none;
597+
font-weight: 600;
598+
}
599+
600+
.map-link i {
601+
margin-right: 5px;
602+
}
603+
604+
.location-card:hover {
605+
transform: translateY(-5px);
606+
box-shadow: var(--shadow-hover);
607+
}
608+
609+
/* Quiz Section */
610+
.quiz-section {
611+
background: var(--white);
612+
padding: 2rem;
613+
margin: 3rem 0;
614+
border-radius: var(--border-radius);
615+
box-shadow: var(--shadow);
616+
}
617+
618+
.quiz-section h2 {
619+
color: var(--primary-color);
620+
text-align: center;
621+
margin-bottom: 1.5rem;
622+
}
623+
624+
.quiz-form {
625+
display: flex;
626+
flex-direction: column;
627+
gap: 1rem;
628+
}
629+
630+
.quiz-actions {
631+
display: flex;
632+
justify-content: center;
633+
gap: 1rem;
634+
margin-top: 1rem;
635+
}
636+
637+
.quiz-btn {
638+
padding: 0.7rem 1.5rem;
639+
border: none;
640+
border-radius: 50px;
641+
background: var(--primary-color);
642+
color: var(--white);
643+
font-weight: 600;
644+
cursor: pointer;
645+
transition: var(--transition);
646+
}
647+
648+
.quiz-btn:hover {
649+
background: var(--secondary-color);
650+
}
651+
652+
.reset-btn {
653+
background: var(--light-color);
654+
color: var(--text-dark);
655+
}
656+
657+
.quiz-result {
658+
margin-top: 1rem;
659+
text-align: center;
660+
font-weight: 600;
661+
font-size: 1.1rem;
662+
color: var(--accent-color);
663+
}
664+
665+
666+
.locations-grid {
667+
display: grid;
668+
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
669+
gap: 20px;
670+
padding: 20px;
671+
}
672+
673+
.location-card {
674+
background: #fff;
675+
border-radius: 12px;
676+
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
677+
text-align: center;
678+
overflow: hidden;
679+
transition: transform 0.3s ease;
680+
}
681+
682+
.location-card:hover {
683+
transform: scale(1.03);
684+
}
685+
686+
.location-card img {
687+
width: 100%;
688+
height: 180px;
689+
object-fit: cover;
690+
}
691+
692+
.map-section h2 {
693+
text-align: center;
694+
margin-bottom: 10px;
695+
}
696+
697+
698+
/* Ensure navbar stays above everything */
699+
.main-navigation {
700+
position: sticky; /* or fixed, if you want it always visible */
701+
top: 0;
702+
z-index: 1000; /* higher than map */
703+
background: white; /* so map or content doesn’t show through */
704+
}
705+
706+
/* Prevent map from overlapping navbar */
707+
#bihar-map {
708+
z-index: 1 !important;
709+
position: relative;
710+
}

0 commit comments

Comments
 (0)