Update theme styles, scripts, and front page template

This commit is contained in:
NixReaper
2026-08-29 21:59:07 -05:00
parent e62bfce047
commit 4429e30c39
3 changed files with 333 additions and 20 deletions
+22
View File
@@ -9,3 +9,25 @@
toggle.setAttribute('aria-expanded', isOpen ? 'true' : 'false');
});
})();
(function () {
var tabs = document.querySelectorAll('.showcase-tab');
if (!tabs.length) return;
tabs.forEach(function (tab) {
tab.addEventListener('click', function () {
var targetId = tab.getAttribute('data-tab-target');
tabs.forEach(function (t) {
t.classList.remove('is-active');
t.setAttribute('aria-selected', 'false');
});
tab.classList.add('is-active');
tab.setAttribute('aria-selected', 'true');
document.querySelectorAll('.showcase-panel').forEach(function (panel) {
panel.classList.toggle('is-active', panel.id === 'tab-' + targetId);
});
});
});
})();