Skip to content

Commit 06c3c8e

Browse files
committed
Add fallback tab filtering and complete projects page transformation
1 parent 1e56a23 commit 06c3c8e

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

projects.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,31 @@ <h3 class="matrix-project-title">The Premier League Oracle</h3>
815815
// Add loaded class when page is ready
816816
window.addEventListener('DOMContentLoaded', function() {
817817
document.body.classList.add('loaded');
818+
819+
// Simple tab filtering fallback
820+
const tabs = document.querySelectorAll('.matrix-tab-button');
821+
const cards = document.querySelectorAll('.matrix-project-card');
822+
823+
tabs.forEach(tab => {
824+
tab.addEventListener('click', function() {
825+
const category = this.dataset.category;
826+
827+
// Update active tab
828+
tabs.forEach(t => t.classList.remove('active'));
829+
this.classList.add('active');
830+
831+
// Filter cards
832+
cards.forEach(card => {
833+
if (category === 'all' || card.dataset.category === category) {
834+
card.style.display = 'flex';
835+
card.classList.remove('matrix-hidden');
836+
} else {
837+
card.style.display = 'none';
838+
card.classList.add('matrix-hidden');
839+
}
840+
});
841+
});
842+
});
818843
});
819844
</script>
820845
<!-- Matrix Rain Effect -->

0 commit comments

Comments
 (0)