After Clicking On Block It Gets Orange But After Clicking another Block It remain Orange.
Browse files73 unmodified lines747576777879805 unmodified lines86878889909192163 unmodified lines25625725825926026126226326426526626726826973 unmodified linesdocument.getElementById('advanced-projects').classList.add('hidden');// Reset all buttonsdocument.querySelectorAll('#projects-container button').forEach(btn => {btn.classList.remove('bg-orange-500', 'text-white');btn.classList.add('hover:bg-gray-200');});5 unmodified linesevent.target.classList.add('bg-orange-500', 'text-white');event.target.classList.remove('hover:bg-gray-200');}</script><!-- About Section --><section id="about" class="py-20 bg-gray-50"><div class="container mx-auto px-6 flex flex-col md:flex-row items-center">163 unmodified lines<h2 class="text-3xl font-bold mb-12 text-center">My <span class="text-orange-500">Projects</span></h2><!-- Tab Navigation --><div class="flex justify-center mb-12"><div class="inline-flex rounded-full bg-gray-100 p-1"><button onclick="filterProjects('beginner')" class="px-6 py-2 rounded-full font-medium transition-all duration-300 bg-orange-500 text-white">Beginner</button><button onclick="filterProjects('intermediate')" class="px-6 py-2 rounded-full font-medium transition-all duration-300 hover:bg-gray-200">Intermediate</button><button onclick="filterProjects('advanced')" class="px-6 py-2 rounded-full font-medium transition-all duration-300 hover:bg-gray-200">Advanced</button></div></div><!-- Projects Container --><div id="projects-container"><!-- Beginner Projects --><div id="beginner-projects" class="mb-16">73 unmodified lines747576777879805 unmodified lines86878889909192163 unmodified lines25625725825926026126226326426526626726873 unmodified linesdocument.getElementById('advanced-projects').classList.add('hidden');// Reset all buttonsdocument.querySelectorAll('#project-filter-buttons button').forEach(btn => {btn.classList.remove('bg-orange-500', 'text-white');btn.classList.add('hover:bg-gray-200');});5 unmodified linesevent.target.classList.add('bg-orange-500', 'text-white');event.target.classList.remove('hover:bg-gray-200');}</script><!-- About Section --><section id="about" class="py-20 bg-gray-50"><div class="container mx-auto px-6 flex flex-col md:flex-row items-center">163 unmodified lines<h2 class="text-3xl font-bold mb-12 text-center">My <span class="text-orange-500">Projects</span></h2><!-- Tab Navigation --><div class="flex justify-center mb-12"><div class="inline-flex rounded-full bg-gray-100 p-1" id="project-filter-buttons"><button onclick="filterProjects('beginner')" class="px-6 py-2 rounded-full font-medium transition-all duration-300 bg-orange-500 text-white">Beginner</button><button onclick="filterProjects('intermediate')" class="px-6 py-2 rounded-full font-medium transition-all duration-300 hover:bg-gray-200">Intermediate</button><button onclick="filterProjects('advanced')" class="px-6 py-2 rounded-full font-medium transition-all duration-300 hover:bg-gray-200">Advanced</button></div></div><!-- Projects Container --><div id="projects-container"><!-- Beginner Projects --><div id="beginner-projects" class="mb-16">
index.html+4-5